NanoID Generator
Create short, URL-safe unique IDs, 21 characters by default.
Quick answer: enter your details below and click Generate NanoID — your result appears instantly, right here in your browser. Nothing you enter is uploaded or stored.
N
Converters & Utilities
Enter your details below.
How to use
- Choose the ID length you need, or leave the default of 21.
- Press Generate NanoID.
- Copy the ID into your link, file name, or record.
About this tool
NanoID Generator produces compact, URL-safe identifiers that work well in links, file names, and database keys. The default length is 21 characters drawn from letters, digits, underscore, and hyphen, so the ID needs no encoding in a URL. It uses the browser or platform random source when available and falls back to plain random generation, labelled as such, when it is not.
Frequently asked questions
What makes NanoID URL-safe?
Its alphabet avoids characters that need escaping in URLs, so the ID can be pasted directly into a link.
Is a shorter ID still unique enough?
Shorter IDs have fewer combinations, so keep the default length for anything public or long-lived.