jump totool workspace
ToolHub

Nanoid generation

Generate Nanoids using preset or custom character sets.

Runs the entire process locally
views
—
favorites
—

Length 21

character set

64

total amount

8.51e+37

1% collision

1.31e+18

approx.

41.5M yrs

Please regenerate after adjusting the parameters. The current list retains the results of the last generation.
Waiting for results to be generated

Select the parameters and perform the operation, the results will be displayed here.

Tool description and FAQ

Tool Guide

01Generate customizable random IDs

Select the length 6–64, batch size, and character set, and click Generate. The default character set is URL-safe letters, numbers, underscores, and dashes, but you can also choose numbers, hexadecimal, or custom characters.

02Custom character set

Character sets are deduplicated and support up to 256 different Unicode code points. Generate rejection sampling algorithm using official Nano ID, and then map to complete code points to avoid index bias or unpacking Emoji. With only one character, there is no randomness in the results.

03Result retention and local processing

The generation is only executed in the current browser, and the results are not uploaded or automatically saved. It needs to be regenerated after adjusting the parameters. The existing list will not be automatically replaced. Please copy or download the results before leaving or refreshing.

FAQ

Q1Why can't it be generated when the number of custom characters exceeds 256?

The official Nano ID uses byte-level sampling, and more than 256 different symbols cannot be sampled fairly by the same rules. This page is explicitly blocked to avoid displaying character spaces that are not actually extracted.

Q2What does the default character set have to do with URL security?

The default letters, numbers, _ and - can be used directly for common URL paths or parameter values. Whether the custom character set is suitable for URLs needs to be encoded and verified by yourself.

Q3Why is it possible for two builds to still produce the same result?

Random generation does not mean absolute uniqueness, and collisions are more likely to occur when the length is shorter or the character set is smaller. Please select a space that is large enough and checked for duplicates by the target system.