UUID Inspector

Parses a UUID and tells you its version and variant, plus the timestamp where the version carries one. Useful when you are handed an identifier and need to know what it is and what it leaks.

Live demo · real result from this tool
Version7 — Unix-time-ordered (sortable)
Variant
RFC 9562 (standard)

Table

PropertyValue
Canonical form017f22e2-79b0-7cc3-98c4-dc0c0c07398f
Version7 — Unix-time-ordered (sortable)
VariantRFC 9562 (standard)
Timestamp2022-02-22T19:22:22.000Z (Unix ms 1645557742000)
Random bits74
Uppercase017F22E2-79B0-7CC3-98C4-DC0C0C07398F
Without hyphens017f22e279b07cc398c4dc0c0c07398f
URNurn:uuid:017f22e2-79b0-7cc3-98c4-dc0c0c07398f
Braces (Microsoft GUID){017F22E2-79B0-7CC3-98C4-DC0C0C07398F}
128-bit integer1989357241971137676463954034883508623
Base64AX8i4nmwfMOYxNwMDAc5jw==

Processed on your device — nothing is uploaded.

How to use UUID Inspector

  1. Paste the UUID.
  2. Read its version, variant and, where present, the embedded timestamp.
  3. Note whether it conforms — the version and variant digits decide it.
  4. The 13th hex digit is the version; the 17th is the variant and should be 8, 9, a or b.
  5. Version 1 embeds a MAC address and creation time — treat it as disclosing both.
  6. Parsing happens in your browser; identifiers are not transmitted.

Reading the version and variant by eye

The 13th hexadecimal digit is the version and the 17th is the variant. So in xxxxxxxx-xxxx-4xxx-8xxx-xxxxxxxxxxxx, the 4 says version 4 (random) and the 8 says the standard RFC variant — that position is always 8, 9, a or b for a conforming UUID. Once you know where to look you can identify a UUID’s version from a glance at the string, without any tool.

What each version encodes, and what it leaks

Version 1 embeds a 60-bit timestamp and the generating machine’s MAC address, which makes it sortable and makes it disclose where and when it was created — a genuine privacy consideration, and famously how the Melissa virus author was traced. Version 3 and 5 are deterministic hashes of a namespace and a name, so the same input always gives the same UUID. Version 4 is 122 random bits and reveals nothing. Version 7, standardised in 2024, puts a millisecond timestamp in the high bits with the rest random — sortable like v1 without the MAC address.

Why version matters for database keys

Random v4 keys scatter inserts across a B-tree index, which fragments it and hurts write throughput and cache locality on large tables. Time-ordered keys append instead, which is why v7 exists and why people previously invented ULIDs and similar schemes. If a table is small the difference is invisible; at tens of millions of rows it is measurable, and changing key format later is painful.

When a UUID is not a UUID

Plenty of things that look like UUIDs are not conforming ones — a random 32-hex string formatted with hyphens will fail the version and variant check, even though it works fine as an identifier. That matters when a library validates strictly and rejects an id that your system generated happily for years. Checking the version and variant digits is the quickest way to tell whether an identifier will survive strict parsing.

Frequently asked questions

How do I tell which version a UUID is?
Look at the 13th hexadecimal character, the first digit of the third group. A 4 there means version 4, a 1 means version 1, and so on. The 17th character is the variant and should be 8, 9, a or b. Paste a UUID here and both are read for you.
What is the UUID variant?
The variant bits, usually an 8, 9, a or b at the start of the fourth group, say which layout the UUID follows. Almost every UUID you meet uses the standard RFC 9562 layout, which replaced RFC 4122.
Can I get the creation time out of a UUID?
From versions 1, 6 and 7, yes: all three embed a timestamp, and the inspector decodes it to a date and time. Not from version 4, which is random, nor from versions 3 and 5, which are hashes of a namespace and a name.
Is it a problem that version 1 UUIDs contain a MAC address?
It can be. A v1 UUID discloses the generating machine's network card and the time of creation, which is information you may not intend to publish in an API response or a URL. Use version 4 where you want no metadata, or version 7 where you want sortability without the MAC address.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close