Skip to content
All references

Development reference

UUID Versions & Representations

Compare UUID representations, variants and versions, including the limits of encoded timestamps and random identifiers.

8 of 8 entries

Representation

Canonical representation

xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

A UUID contains 128 bits. Hyphens group its hexadecimal representation; case does not change the bits.

Representation

Compact, braced and URN forms

32 hex digits
{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

The inspector normalizes supported input forms to canonical lowercase text.

Structure

Version and variant are separate

Version: high nibble in the third group
Variant: leading bits of the fourth group

A version label alone does not establish a recognized structure; the variant also matters.

Versions

Version 4

Random identifier with reserved structural bits

Version 4 does not encode a creation timestamp. Browser randomUUID generates this version in a supported secure context.

Versions

Versions 1 and 6

Time-based layouts using a Gregorian-epoch timestamp

The inspector decodes supported time fields to UTC. The timestamp is data, not proof of an actual creation event.

Versions

Version 7

Unix timestamp milliseconds in the leading 48 bits

A version 7 identifier contains a timestamp portion alongside other bits. It is not a digital signature.

Special values

Nil and Max

Nil: all zero bits
Max: all one bits

These identifiers have special meanings and are identified separately by the inspector.

Validation

Structural checks are limited

Recognized shape ≠ authenticity or guaranteed uniqueness

Treat identifiers from an untrusted source as untrusted. The inspector does not verify origin or application-specific authorization.