Skip to content
ToolsOnDuty - free online tools
Generators

Nano ID Generator

Generate compact, URL-safe Nano IDs in bulk.

Free foreverRuns in your browserNo sign-up

Nano IDs are generated locally with a URL-safe alphabet and your browser's secure random generator.

About the Nano ID Generator

Nano ID is a tiny, URL-safe unique ID format popular in modern JavaScript projects. The default is 21 characters from a 64-symbol alphabet.

It offers collision odds similar to UUID v4 while being shorter and safe to use directly in URLs, filenames and HTML IDs.

This tool generates Nano IDs locally with your browser's secure random generator.

Key features

  • URL-safe alphabet (A-Za-z0-9 plus _ and -)
  • Custom length
  • Bulk generation
  • Secure, local generation

How to use

  1. 1Set the length and how many IDs you need.
  2. 2Click Generate.
  3. 3Copy the IDs into your project.

Examples

Default Nano ID

Produces a 21-character URL-safe ID suitable for keys, short links and element IDs.

Frequently asked questions

Is Nano ID as safe as UUID?
At the default 21 characters it has a comparable collision resistance to UUID v4, while being shorter and URL-safe.
Can I change the length?
Yes. Shorter IDs are more compact but slightly more likely to collide at very high volumes; longer IDs are safer.
Are these safe to use in URLs?
Yes. The alphabet only uses characters that are safe in URLs, filenames and HTML IDs.