Cryptographic UUID / GUID Generator: RFC 4122 Version 4 & Version 1
Generate cryptographically secure Universally Unique Identifiers (UUID v4 / GUID) utilizing hardware CSPRNG entropy with uppercase, lowercase, and batch options.
Mathematical Proof: RFC 4122 Version 4 Random UUIDs
A standard Version 4 UUID consists of 128 bits represented as 32 hexadecimal characters across five hyphen-separated groups:
xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
- Version Bits: The 13th hexadecimal character is fixed at
4, identifying the UUID version. - Variant Bits: The 17th character is restricted to
8,9,a, orb, specifying the RFC 4122 variant. - Collision Probability: With 122 bits of pure entropy ($2^{122} approx 5.3 imes 10^{36}$ possible combinations), the mathematical probability of generating a duplicate UUID is so infinitesimal that one would need to generate 1 billion UUIDs per second for 85 years to have a 50% chance of a single collision.
CSPRNG Entropy vs. Predictable PRNGs
Standard Math.random() is deterministic and cryptographically unsafe for database keys or security tokens. This tool draws hardware noise from the browser's Web Cryptography API (window.crypto.getRandomValues()), ensuring cryptographically random bytes suitable for enterprise primary keys.
Pro Tip: Practical Application
Use UUID v4 for primary keys in distributed microservice architectures to allow nodes to generate unique IDs independently without central database coordination.