UUID reference

UUID text13 sectionsUpdated

A UUID is 128 bits with 6 of them spoken for: 4 say which layout the rest follows, 2 say which standard it belongs to. Everything else on this site is a way of writing those 128 bits down.

This is the reference behind the converter: what each format on the tool actually means, which bits a version spends where, and where RFC 9562 says so. Every example was produced by the same code the converter runs.

Open the converter: UUID textNothing you paste leaves the browser.

On this page (13)
time_low 0-31time_mid 32-47version 48-51time_high 52-63variant 64-65clock_seq 66-79node 80-127

The identifier RFC 9562 uses in its own examples, taken apart. Point at any character to see which field it belongs to.

What the 128 bits are#

A UUID carries no meaning of its own beyond its layout. Four bits hold the version, two hold the variant, and the remaining 122 belong to whichever layout the version names: a clock and a node for v1, a hash for v3 and v5, milliseconds and randomness for v7, pure chance for v4.

RFC 9562 § 4.2 · Version FieldWhere the version nibble sits, and why it is the 13th hex digit

RFC 9562 § 4.1 · Variant FieldThe variant bits: 10xx is this standard, other patterns are NCS, Microsoft and reserved

GUID and UUID are the same thing#

GUID is the name Microsoft uses; UUID is the name the RFC uses. The 128 bits are identical. What differs is the byte order some Microsoft APIs use when they turn those bits into a byte array, and that difference is real enough to corrupt data if it is ignored.

The standard moved: RFC 4122 is obsolete#

RFC 9562 replaced RFC 4122 in May 2024. It kept versions 1 through 5 unchanged and added v6, v7 and v8, plus the Max UUID. Pages that still cite RFC 4122 for a v7 layout are citing a document that never described one.

RFC 9562: Universally Unique IDentifiers (UUIDs)The current standard, in full

Start here#

Making and converting in bulk#

Converting a UUID#

Reading one#

The versions, in order#

In a database#

ULID and the alternatives#

Running the tool#

Questions people actually ask#

Is a GUID the same as a UUID?

Yes. Same 128 bits, same layouts, different vocabulary. Watch the byte order when a GUID is turned into bytes by a Microsoft API: the first three groups are written little-endian there, the last two big-endian.

Which UUID version should I use?

v4 when you only need uniqueness, v7 when the identifier goes into a database index and you want it to sort by time, v5 when the identifier has to be derived from a name and be the same everywhere.

Browse the reference