UUID / ULID Comparator
UUID / ULID Comparator
Analyze and compare UUID and ULID values — extract version, variant, and embedded timestamps. All computation runs in your browser.
About the UUID / ULID Comparator
Not all unique IDs are alike. A UUID's version digit tells you how it was made: v4 is purely random, v1 embeds a timestamp and node, and the newer v7 starts with a millisecond Unix timestamp so IDs sort by creation time. ULIDs are a similar time-ordered format, written as 26 Crockford Base32 characters.
This tool analyses a list of UUIDs and ULIDs — one per line — and shows each value's type, version and variant, and for time-based IDs the creation time embedded in it. It is a quick way to understand IDs you find in logs and databases, or to compare formats when choosing one for a new system.
Common uses
- Finding out when a record was created from its UUIDv7 or ULID primary key.
- Checking which UUID version a library or database generates.
- Comparing time-ordered ID formats before choosing one for a new table.
- Validating IDs received from other systems.
How to use it
- Paste one UUID or ULID per line (or click Generate samples / Try Me).
- Press Analyze.
- Review the type, version, variant and embedded timestamp for each ID.
Example
A UUIDv7 and a ULID decoded:
01890a5d-ac96-774b-bcce-b302099a8057
01ARZ3NDEKTSV4RRFFQ69G5FAV
UUID v7 (RFC 9562 variant) — created 2023-06-30 03:34:18.518 UTC
ULID — created 2016-07-30 23:54:10.259 UTC
Tips and common pitfalls
- Time-ordered IDs (UUIDv7, ULID) insert at the end of a B-tree index, which avoids the page splits and fragmentation that random v4 keys cause.
- Because v7 and ULID reveal their creation time, avoid them where that leaks information, such as public IDs for user accounts that should not reveal sign-up dates.
- UUIDv1 includes a node identifier that was historically the machine's MAC address — another reason it is rarely used today.
- A ULID converts losslessly to a 128-bit UUID, so it can be stored in a native UUID column.
Frequently asked questions
What is the difference between UUIDv7 and ULID?
Both put a 48-bit millisecond timestamp first, followed by random bits. UUIDv7 is an official standard (RFC 9562) in the usual hex-and-dash format; ULID is a community specification with a shorter, case-insensitive Base32 text form.
What is the UUID variant?
The variant bits identify the UUID layout. Almost all modern UUIDs use the RFC 4122 / RFC 9562 variant, shown by the first digit of the fourth group being 8, 9, a or b.
Can I get a timestamp from a v4 UUID?
No. Version 4 UUIDs are random and contain no time information.
Is the analysis done locally?
Yes. Everything runs in your browser.