Skip to content

Nano ID Generator

Generate Nano IDs: short, URL-safe random identifiers with a configurable length and alphabet. The default 21 characters from the 64-character Nano ID alphabet give about the same collision resistance as a UUID v4 in fewer characters.

Reset

Frequently asked questions

What is a Nano ID?

A random string identifier popularized by the nanoid JavaScript library. By default it uses 21 characters from an alphabet of letters, digits, underscore and dash, which are all safe in URLs and file names.

How long should the ID be?

21 characters of the default alphabet carry 126 random bits, close to a UUID v4. Shorter IDs collide sooner: halve the length and you need far fewer IDs before a collision becomes likely. Choose a length from 4 to 64.

Which alphabets are available?

The default URL-safe alphabet, alphanumeric letters and digits, lowercase letters and digits, digits only and hexadecimal. Smaller alphabets need longer IDs for the same uniqueness.

Are the characters evenly distributed?

Yes. Every character is picked with a cryptographically secure random integer in the size of the alphabet, so no character is more likely than another.

Do Nano IDs contain a timestamp?

No. They are purely random and do not sort by time. Use a ULID, KSUID or UUID v7 if you need time-ordered identifiers.

How many can I generate?

Up to 100 per request.

About OneClick Pro

OneClick Pro is a free collection of more than 150 web tools for everyday work: converting images and units, formatting and validating code, checking domains and SEO, and working with text, dates and numbers. Every tool runs without registration or subscription, and what you enter is only used to calculate your result and is never stored. Use it as a quick toolbox for one-off tasks, or bookmark the tools you rely on every day.