Generator Settings
How many?
Regenerate
ID length:
21
characters
21 is the library default and is roughly as collision-resistant as a UUID v4.
Alphabet
Default (A-Za-z0-9_-) — 64 chars, URL-safe
URL-friendly without _ and - (62 chars)
Lowercase + digits (36 chars)
No look-alikes — omits 1lIO0 (49 chars)
No look-alikes + no vowels (avoids words)
Hexadecimal (16 chars)
Digits only (10 chars)
Uppercase + digits (36 chars)
Custom…
Prefix
Suffix
Prefixes such as
user_
or
inv_
make IDs self-describing in logs — the Stripe convention.
Output as
Plain list
JSON array
CSV
SQL INSERT values
Quoted & comma-separated
Collision calculator
IDs per hour
Acceptable risk
1%
0.1%
1 in a million
Generated IDs
Output
Entropy
Code snippets
nanoids.txt
Copy all
Download
Copy first