NanoID Generator
Generate NanoID-style random strings in your browser: preset alphabets, custom symbols, length control, and bulk output. Uses Web Crypto only—no network calls.
100% local — your data never leaves this device
IDs are built with the same rejection-sampling approach as the popular NanoID library: random bytes from crypto.getRandomValues are mapped onto your alphabet so each allowed character is equally likely.
Default NanoID length is 21. Allowed range: 1–128 characters.
Characters used: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-
Single ID
Bulk generation
You can generate between 1 and 500 IDs per batch.
How to use NanoID Generator
- 1Pick a preset alphabet or choose Custom and type the characters you want (duplicates are removed automatically).
- 2Set ID length (1–128), then click Generate ID for one value or Generate list for a batch (1–500 lines).
- 3Copy the output for APIs, databases, or tests; everything runs in your browser with no uploads.
Privacy
Random bytes come from crypto.getRandomValues. No IDs or alphabets are transmitted or stored on a server.
🔒 Processed locally in your browser. IDs are never sent to a server.