UTILS.
Private by default
nano

Nano ID Generator

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

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
— 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