UTILS.
100% in-browser
nano

Nano ID Generator

Generate compact, URL-safe, unique IDs with a custom size and alphabet.

— output appears here —

About this tool

Generate Nano IDs using unbiased random sampling from crypto.getRandomValues, entirely in your browser.

Frequently asked questions

Is the randomness uniform?
Yes, it uses rejection sampling with a bit mask so every character of the alphabet is equally likely, with no modulo bias.
Why is the default size 21?
21 characters of the 64-symbol URL-safe alphabet give a collision probability comparable to a UUID.

More tools