The four forms
All examples below are the same UUID, belonging to Notch’s account.
| Form | Example | Used in |
|---|---|---|
| Hyphenated | 069a79f4-44e9-4726-a5be-fca90e38aaf5 | Commands and target selectors, whitelist.json, ops.json, ban lists, most plugins |
| Without hyphens | 069a79f444e94726a5befca90e38aaf5 | Mojang’s web services, skin texture data |
| Int array | [I; 110787060, 1156138790, -1514210135, 238594805] | Entity and player data (NBT) since Java Edition 1.16, and /data get output |
| Most/least significant bits | UUIDMost: 475826800676128550L, UUIDLeast: -6503483008858150155L | Entity data before 1.16. Still found in old worlds and old tutorials. |
Reading a UUID
The hyphenated form follows the pattern xxxxxxxx-xxxx-Vxxx-Nxxx-xxxxxxxxxxxx:
- V, the first digit of the third group, is the version.
4means randomly generated, used for Java Edition accounts.3means generated from a name, used for offline-mode players. - N, the first digit of the fourth group, is the variant. For these UUIDs it is
8,9,aorb.
In Notch’s UUID, 4726 shows version 4 and a5be shows the variant.
Converting between forms
- Hyphenated ↔ plain: add or remove hyphens after the 8th, 12th, 16th and 20th hexadecimal digit.
- Plain → int array: split the 32 digits into four groups of 8. Read each group as a 32-bit signed integer: values of
80000000and above become negative. - Plain → most/least: split into two groups of 16 digits and read each as a 64-bit signed integer.
Uppercase and lowercase hex digits mean the same thing, but Minecraft writes them in lowercase.
Offline-mode UUIDs
A server with online-mode=false calculates a UUID from the player’s name: an MD5 hash of the text OfflinePlayer: followed by the exact name, with the version set to 3. The same method in Java code is UUID.nameUUIDFromBytes.
| Name | Offline-mode UUID |
|---|---|
Notch | b50ad385-829d-3141-a216-7e7d7539ba7f |
notch | 42653081-a90e-3475-b3d6-3550cdb43f8e |
The capitalisation changes the result, and neither matches the account UUID. The UUID Lookup shows both kinds for any name.
Bedrock Edition
Bedrock Edition identifies accounts by Xbox user ID (XUID), a number rather than a UUID. Java UUID lookups don’t apply to Bedrock players.