Nano ID Generator Online

Generate compact, URL-safe unique identifiers with custom alphabet and length.

Alphabet

GENERATED IDs (1)
1_rKFDHI0cInMNIg6-SL8r

What Is a Nano ID Generator?

Nano ID is a compact, URL-safe unique identifier library. The default output is a 21-character string using A-Za-z0-9_- characters, providing ~126 bits of randomness — equivalent to UUID v4 but shorter and without hyphens. This tool lets you generate Nano IDs with configurable alphabet presets or a fully custom character set, and adjust the length from 1 to 128 characters. All generation happens in your browser.

How to Use the Nano ID Generator

  1. Set Quantity (1–100) to generate multiple IDs at once.
  2. Set Length (1–128) for the character count of each ID.
  3. Select an Alphabet preset or enter a custom character set.
  4. Click Generate to produce new IDs.
  5. Click Copy All to copy all IDs to the clipboard.

Features

  • Custom alphabet — define any character set for your IDs
  • Configurable length — 1 to 128 characters
  • Preset alphabets — default, alphanumeric, numeric, lowercase
  • Bulk generation — up to 100 IDs at once
  • Browser-only — no data sent to any server

FAQ

What is a Nano ID?

Nano ID is a tiny, secure, URL-friendly unique string ID generator. The default alphabet uses A-Za-z0-9_- (64 characters) and the default length is 21 characters, giving ~126 bits of randomness — comparable to UUID v4.

How is Nano ID different from UUID?

Nano ID is shorter (21 chars vs 36 for UUID), URL-safe by default, and supports custom alphabets and lengths. UUID v4 is a fixed 128-bit format with a standardized structure.

Can I use a custom alphabet?

Yes. Type any characters into the custom alphabet field. The alphabet must contain at least 2 unique characters.

What length should I use?

The default length of 21 with the default alphabet gives ~126 bits of randomness, sufficient for most use cases. For numeric-only IDs, use a longer length (e.g. 32+) to maintain adequate collision resistance.