A UUID v4 is a random 128-bit identifier that is virtually guaranteed to be unique. Generate one instantly, no signup required. Uses your browser's cryptographic random number generator for true randomness.
Random UUID v4 in one click. Cryptographically random.
Generate UUID →550e8400-e29b-41d4-a716-446655440000
Five groups of hex characters: 8-4-4-4-12 (36 characters with hyphens, 32 without).
| Position | Meaning |
|---|---|
| xxxxxxxx | Random |
| xxxx | Random |
| 4xxx | Version (4 = random) |
| yxxx | Variant (y = 8, 9, a, or b) |
| xxxxxxxxxxxx | Random |
The "4" in the third group tells you it is version 4. The first hex digit of the fourth group (8, 9, a, or b) indicates the UUID variant.
There are 5 UUID versions. v4 is the most widely used because:
crypto.randomUUID()import uuid; str(uuid.uuid4())UUID.randomUUID().toString()uuid.New().String() (google/uuid package)uuidgen or cat /proc/sys/kernel/random/uuidAll valid. For a quick UUID during development without opening a terminal, the browser tool is fastest.
UUID v4 has 122 random bits (6 bits are fixed for version and variant). The number of possible UUIDs: 2¹²² = 5.3 × 10³⁶. To have a 50% chance of collision, you need approximately 2.71 × 10¹⁸ UUIDs. That is 2.71 quintillion. If you generated 1 billion per second, it would take 85 years.
Related: Hash Generator for creating checksums, Password Generator for secure passwords, Base64 Encoder for encoding IDs in URLs.