Dad’s Data formats tools

UUID & ULID Generator

Generate UUID v4 or ULID identifiers. Runs 100% in your browser.

Type

Count
max 100

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

36 characters8-4-4-4-12 format122 random bits

ULID

01HX9T2K3P4Q5R6S7T8V9WABCD

26 characters10 timestamp + 16 random charsLexicographically sortable

When sortability matters

IdentifierSortable by timeDatabase index friendlinessBest for
UUID v4NoModerate (random inserts scatter B-tree pages)Stateless services, distributed ID generation
ULIDYesGood (sequential inserts stay local in B-tree)Event logs, audit tables, time-ordered records

Generate a batch of UUIDs

Interactive — edit the input to see the output update
How many UUIDs (1–20)
Generated UUIDs
Note: Each run generates fresh random UUIDs using 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.

Tip: If you are building an event log, audit trail, or anything time-ordered that will grow large, ULID is the better default. For stateless services where IDs need no implied ordering, UUID v4 is the simpler choice.

Your files stay on your computer. Dad promised.

Data formats tools

Search the Data formats tools