# 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.

## 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.

Your ad here?

[Email us](mailto:hi@dennn.is?subject=Advertising%20on%20OneClick%20Pro)

[Ad 433 tools for your AI agents through one MCP server.](https://multitaskai.com/?ref=oneclickpro)
