NanoID Generator API
Generate compact NanoID unique identifiers with customizable length and alphabet.
What is NanoID?
NanoID is a compact URL-safe unique ID generator using a 64-character alphabet. A 21-character NanoID provides ~126 bits of entropy, comparable to UUID v4.
How to Use
Call GET /api/v1/nanoid?length=21&count=5. Customize the alphabet via the alphabet parameter.
Try it live
Test this endpoint in the interactive console
Open Console →
Frequently Asked Questions
As unique as UUID?
21-character NanoID has ~126 bits of entropy vs UUID v4's 122 bits. Sufficient for most applications.