Universally unique identifier

UUIDs (Universally unique identifiers; Java Class) are 128 bit long numbers that are used by Minecraft to distinguish between separate instances.

Representation

 * Hyphenated hexadecimal: A hexadecimal representation of the UUID, with hyphens separating the different sections into individual numbers. The hyphen are set to split the UUID into numbers of the format  with each number marking the number of hexadecimal digits fitting into the corresponding section. Further detail follows in the Technical aspects section. An example of this representation would be.
 * Because every part is evaluated as an individual number, empty digits at the start of a section can be ignored. For example,   can be evaluated as the same as.
 * Hexadecimal: The same as the hyphenated hexadecimal representation, but without the separation of the different sections. An example for this representation would be, where it is impossible for the majority of empty digits to be removed as opposed to the hyphenated hexadecimal representation.
 * Most/Least: A separation of the 64 most significant bits from the 64 least significant bits. Each of the two numbers is stored separately and uses the  data type in the game. This format is deprecated as it was used before 1.16 and was entirely replaced by the Int-array format. An example of this representation would be   paired with.
 * Int-array: A separation into four 32 bit numbers. Each part is stored in an integer array ordered from most significant to least significant. An example of this representation would be

Occurences
The following table represents the situations in which UUIDs are used in places accessible by a player:

Value range
A UUID can be expressed as a 128 bit number, which means that it supports all integer values from  to. It is important to note that this evaluation does not refer to the range of values generated by the game but instead focuses on the capacity of the format.

Hyphenated hexadecimal format section names
Hyphenated hexadecimal format UUIDs follow the pattern. (The names make sense only for version 1 and 2 UUIDs, but it has been passed onto all forms of UUIDs used.)

Versions and variants
There have been five versions of UUIDs. Versions 1 and 2 are based on current time and MAC address; versions 3 and 5 are based on hashing a string; version 4 is based on completely random generation. The "version" value occupies four bits, and is located in the UUID string format at the position indicated by an "A".

The "B" position is the variant (format) of the UUID. Depending on the specific variant, it may occupy the high 1 to 3 bits:
 * 0xx is the "variant 0" of Apollo NCS 1.5, an old type of UUID.
 * 10x is the "variant 1" of IETF RFC 4122 (Leach-Salz). It's referred to as "variant 2" by Java.
 * 110 is the "variant 2" of old Microsoft products. It's referred to as "variant 6" by Java.
 * 111 is the "reserved variant". It's referred to as "variant 7" by Java.

In Minecraft
Minecraft uses version 4, variant 1 (RFC) UUIDs, which means that the entire number with the exception of the bits used for metadata (version and variant) is randomly generated. Java's UUID.randomUUID function performs this exact task.

A table with the locations and values of the metadata:

Related tools

 * Generate a random UUID from scratch: https://www.uuidgenerator.net/version4
 * Convert different formats, with the exception of the non-hyphenated hexadecimal format: https://www.soltoder.com/mc-uuid-converter/

UUID UUID