Unique identifiers let systems create records independently without asking a central database for the next number. UUIDs are the standard format, but newer options — time-ordered UUID v7, ULID and compact NanoID — suit different jobs better. This generator produces all four, securely and in bulk.
Uses
- Database seeds and fixtures that need realistic primary keys.
- Distributed systems creating IDs on many machines.
- Short public IDs for URLs and invite links with NanoID.
- Testing code that parses or validates UUIDs.
How to use the UUID, ULID & NanoID Generator
- Choose the ID type.
- Set how many you need, up to 1,000.
- Choose lowercase or uppercase, and the length for NanoID.
- Copy the list or download it. Click Again for a fresh batch.
Features
- UUID v4: 122 random bits, the most widely supported format.
- UUID v7 (RFC 9562): starts with a timestamp, so new IDs sort after old ones.
- ULID: 26-character, time-sortable IDs in Crockford Base32.
- NanoID: short, URL-safe IDs with configurable length.
- All randomness comes from crypto.getRandomValues.
Frequently asked questions
Should I use UUID v4 or v7 for database keys?
UUID v7 is usually better for primary keys. Because it starts with a timestamp, new rows are inserted at the end of the index instead of at random positions, which keeps databases faster. Use v4 when you don’t want creation time visible in the ID.
Can two UUIDs ever be the same?
In theory, yes; in practice, no. With 122 random bits, you’d need to generate about a billion v4 UUIDs per second for 85 years to have a 50% chance of one collision.
What is the difference between ULID and UUID v7?
Both are time-ordered with random bits. ULID is shorter as text (26 characters versus 36) and case-insensitive; UUID v7 fits standard UUID database columns and libraries.
Written by Dewan Razib