Bulk UUID / GUID Generator
Generate cryptographically secure 128-bit unique identifiers instantly in your browser.
A UUID (Universally Unique Identifier) is a 128-bit label formatted as 32 hexadecimal digits displayed in 5 groups separated by hyphens (8-4-4-4-12): xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx. Version 4 uses cryptographically random numbers (Web Crypto API crypto.randomUUID()), guaranteeing practically zero chance of duplicate collision across globally distributed database systems.
crypto.randomUUID() and crypto.getRandomValues(). Zero network requests made.
UUID Versions & Standards Comparison (RFC 4122 vs RFC 9562)
The IETF standard defines multiple UUID variants suited for distinct engineering use cases:
| Version | Source of Entropy | Predictability | Primary Use Case |
|---|---|---|---|
| v1 (Timestamp) | 60-bit timestamp + 48-bit MAC address | Predictable (leaks host MAC) | Legacy distributed systems (now deprecated). |
| v4 (Random) | 122 bits of pseudo-random CSPRNG entropy | Completely unpredictable | Session tokens, distributed microservice request IDs, general unique keys. |
| v5 (Name SHA-1) | SHA-1 hash of a namespace UUID + name | Deterministic (same input gives same UUID) | Idempotent resource identification across disparate pipelines. |
| v7 (Epoch Time-Ordered) | 48-bit Unix epoch millisecond timestamp + 74 bits random entropy | Monotonically sortable by generation time | High-write database primary keys (PostgreSQL, MySQL, CockroachDB, Spanner). |
Understanding the Math Behind UUID Collision Impossibility
For standard Version 4 UUIDs, there are $2^{122} \approx 5.3 \times 10^{36}$ unique possible combinations. By applying the Birthday Paradox approximation, the number of UUIDs $n$ required to reach a 50% collision probability $p = 0.5$ is:
To put that in perspective: If an infrastructure cluster generated 1 billion UUIDs per second continuously, it would take approximately 85 years of non-stop generation to have just a 50% probability of experiencing a single collision.