UUID Collision Calculator
Collision odds for UUID, ULID and NanoID
Runs on this device · 0 B uploadedConfiguration
Identifier type
128-bit with 122 random bits (6 bits fixed for version/variant).
Collision analysis
Collision probability
9.40 × 10^-24%
3.26 quadrillion
326.92 quadrillion
2.71 × 10^18
Bits of entropy
122
Total space
5.32 × 10^36
How it works
Chance that at least two of n random IDs match in a space of N values:
P(collision) ≈ 1 − e−n(n−1) / (2N)
Up to 100,000 IDs the exact product is used instead of the approximation.
What does the UUID collision calculator compute?
UUID Collision Calculator takes an ID type (UUID v4, v7, ULID, NanoID or custom bits) and a count, and estimates the chance of at least one random duplicate.
How many UUID v4 values before a likely collision?
About 2.7 quintillion for a 50% chance, given 122 random bits and a sound random number source.
How do I read UUID v7 or ULID results?
Enter the number created within one millisecond, since timestamps separate other IDs. It uses 74 random bits for v7 and 80 for ULID.