UUID Generator
Generate random UUID v4 and ULID identifiers in bulk, then copy them individually or all at once.
Privacy: This tool runs entirely in your browser. Your data never leaves your device and is never uploaded to any server.
How to use this UUID generator
- Choose UUID v4 or ULID.
- Set how many you need and generate them in bulk.
- Copy them one at a time, or all at once.
- Generation uses the browser crypto API; nothing is sent anywhere.
Identifier formats compared
| Format | Size | Sortable by time | Looks like |
|---|---|---|---|
| UUID v4 | 128-bit, 36 characters | No | f47ac10b-58cc-4372-a567-0e02b2c3d479 |
| UUID v7 | 128-bit, 36 characters | Yes | 01890a5d-ac96-774b-bcce-b302099a8057 |
| ULID | 128-bit, 26 characters | Yes | 01ARZ3NDEKTSV4RRFFQ69G5FAV |
| Nano ID | Configurable | No | V1StGXR8_Z5jdHi6B-myT |
| Auto-increment | Varies | Yes | 1, 2, 3, ... |
UUID v4 versus ULID
A UUID v4 is 122 random bits formatted as 36 characters. It is the safe default for a database key.
A ULID is 128 bits that begin with a millisecond timestamp, followed by randomness. That makes it sortable by creation time.
Are they actually unique?
Yes, for any realistic volume. A v4 UUID has so many possible values that generating a billion per second for decades would still leave the odds of a collision negligible.
The practical risk is not collisions, it is duplication caused by bugs — copying a value, retrying a request, or seeding a random generator badly.
Choosing between them
- Need a drop-in id that every system accepts? Use UUID v4.
- Want ids that sort chronologically without a separate timestamp column? Use ULID.
- Storing in a database index? Random ids scatter writes; time-ordered ids stay clustered.
- Never expose sequential ids if the count itself is sensitive.
Frequently asked questions
What is a UUID v4?
UUID v4 is a randomly generated 128-bit identifier, commonly used for database keys and API identifiers.
What is a ULID?
ULID is a sortable identifier that combines a timestamp with randomness, making it friendly for ordered IDs and URLs.
Are these identifiers unique?
They are generated from cryptographically secure random values, so collisions are extremely unlikely for practical use.
What is the difference between UUID v4 and v7?
Both are 128 bits. v4 is entirely random, while v7 starts with a timestamp and stays sortable. This tool generates v4 and ULID.
Why do databases prefer time-ordered ids?
Random ids scatter inserts across the whole index, which costs more disk work. Time-ordered ids append near the end and keep the index compact.
Are UUIDs safe to put in a URL?
Yes. They contain only letters, digits and hyphens, so they need no encoding.