UUID & ULID Generator
Generate UUID v4 or ULID identifiers. Runs 100% in your browser.
Type
UUID v4 — 122 random bits using crypto.randomUUID(). Globally unique with negligible collision probability.
ULID — Universally Unique Lexicographically Sortable Identifier. 48-bit millisecond timestamp + 80 random bits, encoded as 26 Crockford base32 characters. Sortable and human-readable.
UUID v4 vs ULID — what to pick
Both UUID v4 and ULID are globally unique identifiers. The main difference is sortability: ULID encodes a millisecond timestamp in its first 10 characters, so a list of ULIDs sorted lexicographically is also sorted by creation time. UUIDs are random and have no inherent order.
UUID v4
f47ac10b-58cc-4372-a567-0e02b2c3d479
ULID
01HX9T2K3P4Q5R6S7T8V9WABCD
When sortability matters
| Identifier | Sortable by time | Database index friendliness | Best for |
|---|---|---|---|
| UUID v4 | No | Moderate (random inserts scatter B-tree pages) | Stateless services, distributed ID generation |
| ULID | Yes | Good (sequential inserts stay local in B-tree) | Event logs, audit tables, time-ordered records |
Generate a batch of UUIDs
crypto.randomUUID() — the same browser cryptographic API used for secure random generation.Choosing between UUID and ULID in practice
Both are safe for primary keys. UUID v4 wins on simplicity — every runtime generates them identically. ULID wins on database index efficiency, because sequential IDs cluster nearby on disk and reduce B-tree fragmentation over time. The tradeoff is entirely a storage and retrieval concern, not a security one.
Your files stay on your computer. Dad promised.