Uses crypto.getRandomValues, the same randomness source as the official nanoid library. Collision chance for 21-char IDs is negligible for ordinary use.
Frequently asked questions
What is a Nano ID?
A tiny, URL-safe unique string identifier, an alternative to UUIDs when you want shorter IDs for database keys or public URLs.
Are these IDs really random?
Yes. They are generated with crypto.getRandomValues, a cryptographically strong random source, using the official nanoid masking algorithm.
Can two IDs collide?
With the default 21 characters from a 64-symbol alphabet there are 64^21 possibilities, so collisions are practically impossible in normal use.
Preview
Related free tools
Free Base64 Encoder Decoder
Free Base64 encoder and decoder. Encode text to Base64 or decode Base64 back to text, righ
Free CSS Minifier Online
Free CSS minifier. Remove comments and whitespace from CSS to shrink file size and speed u
Free SHA-256 Hash Generator
Free SHA-256 hash generator. Hash text with SHA-256, SHA-384 or SHA-512 securely in your b