UUID Version 4: The Standard for Globally Unique Identifiers

UUID version 4 is generated using a random or pseudo-random number generator that produces a 128-bit value, which is then represented as a 32-digit hexadecimal string. Each digit of the string can have one of 16 possible values, ranging from 0 to 9 and a to f, which gives a total of 16^32 (or about 3.4 x 10^38) possible combinations. This means that the probability of generating the same UUID twice is extremely low.

xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx

Where:

  • x: represents a hexadecimal digit (0-9, a-f)
  • y: represents one of the values 8, 9, a, or b
  • The first three groups (xxxxxxxx-xxxx-4xxx) are fixed and indicate that this is a version 4 UUID. The fourth group (yxxx) has a fixed first hexadecimal digit, but the second can be any of the values 8, 9, a, or b. The last group (xxxxxxxxxxxx) represents the randomly generated bits.

Here's an example of a UUID version 4:

d1c1f0de-96df-4f4a-9b4c-58d9c8fe68a7

To generate a UUID version 4 you can use our online tool available for free. Try to generate a UUID v4 using UUIDGen generartor.