Nano ID Generator
Generate short, URL-safe unique IDs with adjustable length, count, and alphabet.
Characters per ID, from 1 to 256. The default of 21 carries about 126 bits of randomness.
How many to generate, from 1 to 1,000.
Alphabet
The standard set of 64 symbols: A to Z, a to z, 0 to 9, hyphen, and underscore. Every ID is safe to drop into a URL, filename, or attribute.
Each ID is 21 characters drawn from a 64-symbol alphabet, so a collision is effectively impossible across billions of IDs.
Generated on your device. Nothing is uploaded.
How to generate Nano IDs online
Set the length
Choose how many characters each ID should have. The default of 21 packs about 126 bits of randomness into a compact string, and a live note shows the strength for any length.
Set the amount
Enter how many IDs you need, anywhere from 1 to 1000. The list regenerates the moment the page loads and whenever a setting changes.
Pick the alphabet
Keep the standard 64-character URL-safe alphabet, or switch to Custom and type your own set of symbols to draw from.
Copy the list
Copy to clipboard grabs every ID, one per line. Regenerate rolls a fresh batch without touching your settings.
Why use this tool
Standard URL-safe alphabet
The default 64-character alphabet uses only letters, digits, hyphen, and underscore, so an ID drops straight into a URL, filename, or attribute with no escaping.
Adjustable length and entropy
Set any length and a live note shows the bits of randomness and roughly how many IDs are possible, so you can trade a shorter string for a larger keyspace on purpose. At the default 21 characters an ID carries about 126 bits.
Custom alphabet
Switch to your own symbols, for example digits only or a set with look-alike characters removed. The entropy figure updates to match, and repeated characters are flagged because they weaken an ID.
Up to 1000 at once
One field controls the batch size, so seeding a database column or a test fixture takes a single copy instead of a thousand clicks.
Unbiased secure randomness
Every character is drawn from your browser's cryptographically secure random source with even sampling, so no symbol in the alphabet is favored over another.
Generated on your device
IDs are created locally in the tab, never fetched from a service, so there is no rate limit and no one else ever sees them.
About this tool
A Nano ID is a short, URL-safe unique identifier. This generator builds them from a 64-character alphabet of letters, digits, hyphen, and underscore, so every ID is safe to use in a link, a filename, an HTML attribute, or a database key without any escaping. The default length of 21 characters gives about 126 bits of randomness, enough that collisions are effectively impossible even across billions of IDs.
Set the length to trade size against keyspace: a shorter ID reads better in a URL, a longer one leaves more headroom. Generate anywhere from 1 to 1000 at a time and the list copies as one ID per line, ready to paste into a script or a spreadsheet column. Switch to a custom alphabet when you need digits only, a single case, or a set with look-alike characters removed, and the entropy readout updates to match what you typed.
Compared with a UUID, a Nano ID is shorter for the same practical uniqueness and uses a URL-safe character set by default, which is why it suits public-facing links and short slugs. If you instead want a readable identifier built from words, the slugify tool turns a title into a clean URL path. Everything here runs on your device, so the identifiers are never drawn from a shared server sequence and never leave the browser tab.
Frequently asked questions
- What is a Nano ID?
- A Nano ID is a compact, URL-safe unique identifier made of random characters. By default it uses a 64-character alphabet of A to Z, a to z, 0 to 9, hyphen, and underscore, and is 21 characters long, which is shorter than a UUID for the same practical uniqueness.
- How random are the IDs?
- Every character is drawn from your browser's cryptographically secure random source with even, unbiased sampling, so each symbol in the alphabet is equally likely. At the default settings an ID has about 126 bits of randomness, which makes a collision effectively impossible.
- Can I change the length and alphabet?
- Yes. Set any length and the entropy note updates to show the bits of randomness. Switch to a custom alphabet to use, for example, digits only or a set without look-alike characters. Repeated characters are flagged because they lower the randomness.
- How many can I generate at once?
- Anywhere from 1 to 1000. The list updates instantly and copies as one ID per line. Use Regenerate to roll a fresh batch without changing your settings.
- Is my data uploaded anywhere?
- No. Everything runs in your browser; nothing is sent to a server.
- How is a Nano ID different from a UUID?
- Both are collision-resistant random identifiers. A Nano ID is shorter and URL-safe by default, while a UUID has a fixed 36-character hyphenated format. Choose a Nano ID for compact, link-friendly identifiers and a UUID when a system expects that specific format.
Related tools
UUID Generator
Generate version 4 and version 7 UUIDs in bulk, with case and format options.
Password Generator
Create strong random passwords or memorable passphrases, with control over length, characters, word count, and bulk output.
Slug Generator
Turn any title or phrase into a clean, URL-friendly slug for permalinks, paths, and filenames.
API Key Generator
Generate cryptographically random API keys and tokens in hex, base62, or base64url, with control over length, an optional prefix, and bulk output.
ASCII Table Reference
The full ASCII character set with decimal, hex, octal, binary, and HTML codes. Search by code, character, or name.
Atbash Cipher
Mirror the alphabet so A swaps with Z, B with Y, and so on. Atbash is its own inverse, so one field both encodes and decodes as you type.