NanoID Generator
Generate compact, URL-friendly unique IDs.
Generate NanoIDs: short, URL-safe, random IDs. The default 21-character ID uses 64 characters (A–Z, a–z, 0–9, _ and -) and has about the same collision resistance as a UUID v4 while being much shorter. Choose another alphabet (numbers only, lowercase, no look-alike characters) or type your own, set the length, and make up to 1,000 at once. IDs come from your browser's cryptographic random generator.
126 bits of randomness per ID (64 symbols × 21 characters), drawn with crypto.getRandomValues and no modulo bias.
Common use cases
- Make short IDs for URLs, invites or share links
- Generate test IDs for a database
- Create order numbers or codes without confusing characters
How to use
- Choose the alphabet and length.
- Set how many you need.
- Press Generate, then copy or download them.
FAQ
How short can I go safely?
It depends on how many IDs you make. Shorter IDs and smaller alphabets raise the chance of a duplicate; 21 characters is safe for almost anything.
NanoID or UUID?
NanoID is shorter and URL-friendly. UUIDs are a standard many databases and systems expect.
Related tools
- UUID GeneratorGenerate random UUID/GUID values for unique identifiers.
- OTP GeneratorGenerate one-time passwords for authentication.
- JWT DecoderDecode JWT headers and claims, check expiry, and verify HS256, HS384 or HS512 signatures in your browser.
- Bcrypt GeneratorGenerate bcrypt password hashes with configurable rounds.
- Scrypt GeneratorGenerate scrypt key derivation hashes.
- JWT Signer DemoCreate signed JSON Web Tokens for testing: write the claims, pick HS256, HS384 or HS512, add an expiry, and…