Generate NanoID-style random IDs online for tests, fixtures, or local prototypes. Choose the length, set how many IDs you need, and pick an alphabet preset. The tool generates the list instantly in your browser.
The generator uses the native browser crypto API for randomness. It is built for quick everyday development tasks, not for managing production secrets.
ID length and count
Use the Count field to generate up to 1000 IDs at once. Each generated ID appears on its own line.
The Length control determines the number of characters in each ID. You can set lengths from 1 up to 128 characters. Pick a length based on the expected volume of your actual dataset to avoid collisions.
Alphabet presets
The default option uses the standard URL-safe NanoID alphabet (letters, numbers, underscores, and hyphens).
You can also restrict the output to specific formats. Available presets include alphanumeric, lowercase with numbers, pure hex, or numbers only. Changing the preset regenerates the list immediately.
Custom alphabets
Select the custom alphabet option to define your own allowed characters. You must provide at least two unique characters.
If you enter duplicate characters in the custom field, the generator collapses them into a unique set before building the IDs.