NanoID Generator
Short, URL-safe random IDs with custom alphabets and collision probability estimates.
Collision probability across 1,000,000,000 IDs: < 1 in 10^18 (≈ 126.0 bits)
ZWCewBeInUJSRgiBrT9U9eb0wGWK7D5Wg_mfFOxLvNBAdYXd5d7i4iC3G1XfXr9ioSYI5wWRuF6xx37gYVc0-8sver5FLqtWr7Dhm-BhsWhat is NanoID?
A short, URL-safe random ID. The default alphabet has 64 symbols (A-Za-z0-9_-) and the default length is 21 — that's ≈126 bits of entropy, comparable to a UUIDv4 in less space and without dashes.
Picking a length
Use the collision-probability estimate to size the ID for your volume. For 1 billion IDs at the default alphabet, 21 characters keeps collision risk below one in a trillion.
You might also like
- ULID GeneratorGenerate Universally Unique Lexicographically Sortable Identifiers. Decodes timestamps too.
- UUID GeneratorGenerate UUID v4 (random) and v7 (time-ordered) identifiers, one or many at a time.
- .gitignore BuilderPick languages, frameworks, build tools, editors and OS — get a deduped .gitignore.
- .gitignore GeneratorBuild a .gitignore by picking from common language, framework, and OS templates.