UUID Validator & Decoder

Paste a UUID or GUID to check it and see what is inside: version, variant, timestamp and more.

Accepts hyphenated, 32 hex digits, {braces}, urn:uuid:, any case. Try a fresh v7.

Valid 789be20c-f632-475a-b7e2-683b0eb64fed

Version 4 Random
789be20cf632 random_a
4 ver
75a random_b
b7e2683b0eb64fed var + random_c
Version4 Random
VariantRFC 9562 (formerly RFC 4122 / DCE 1.1) (bits 10)

Version 4 UUIDs carry 122 random bits and no other information. There is no timestamp to recover.

Formats

Standard (lowercase) 789be20c-f632-475a-b7e2-683b0eb64fed
Uppercase 789BE20C-F632-475A-B7E2-683B0EB64FED
Microsoft GUID (braces) {789BE20C-F632-475A-B7E2-683B0EB64FED}
URN urn:uuid:789be20c-f632-475a-b7e2-683b0eb64fed
32 hex digits 789be20cf632475ab7e2683b0eb64fed
Base64 (RFC byte order) eJviDPYyR1q34mg7DrZP7Q==
128-bit integer (decimal) 160316750358765274148076073766226382829
.NET Guid.ToByteArray() (hex) 0ce29b7832f65a47b7e2683b0eb64fed
.NET Guid bytes (Base64) DOKbeDL2Wke34mg7DrZP7Q==

API: /api/decode/789be20c-f632-475a-b7e2-683b0eb64fed

How to decode a UUID

Every RFC 9562 UUID stores its version in the 13th hex digit and its variant in the top bits of the 17th digit:

xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx
             M = version (1-8)   N = variant (8, 9, a, b = RFC 9562)
Version digitMeaningContains a timestamp?
1Gregorian time-basedYes (100 ns since 1582)
2DCE SecurityPartial
3Name-based, MD5No
4RandomNo
5Name-based, SHA-1No
6Reordered Gregorian timeYes (100 ns since 1582)
7Unix Epoch timeYes (ms since 1970)
8CustomOnly if your format has one

Variant digit

BinaryHex digitVariant
0xxx0 - 7Reserved, NCS backward compatibility
10xx8 - bRFC 9562 (the standard variant)
110xc - dReserved, Microsoft backward compatibility
111xe - fReserved for future definition

The decoder never throws on odd input: unknown versions, legacy variants and the special nil (00000000-…) and max (ffffffff-…) UUIDs all produce a readable result.

Learn more in UUID versions explained.