Search for a tool or command
Create compact, URL-safe Nano IDs with a custom size and alphabet.
Nano ID is a tiny, secure, URL-friendly unique string generator - a modern alternative to UUID that produces shorter IDs by default. Generate IDs at the standard 21-character length or dial in your own size and alphabet, and watch the built-in collision estimate update as you go. All generation happens locally in your browser.
Start with the default 21 characters, or reduce it for shorter IDs. The tool shows how the collision risk changes as you shrink the size.
Keep the default URL-safe set (A–Z, a–z, 0–9, _ and -), or supply your own - for example, digits only or a set that omits ambiguous characters like 0, O, I and l.
Enter how many IDs you need and generate them instantly. Each value is unbiased across your alphabet.
Copy one ID or the entire list, then drop them into URLs, database rows, or configuration.
21 characters from the standard URL-safe alphabet.
Input
Size: 21 · Alphabet: A-Za-z0-9_-Output
V1StGXR8_Z5jdHi6B-myTA custom alphabet and smaller size for a human-friendly code.
Input
Size: 8 · Alphabet: 0123456789Output
48310297