What is a UUID?
A Universally Unique Identifier (UUID) is a 128-bit label used for information in computer systems. When generated according to standard methods, UUIDs are, for practical purposes, unique. Their uniqueness does not depend on a central registration authority.
UUIDs are heavily used as primary keys in databases, session IDs in web applications, and transaction identifiers in distributed systems.
Version 4 UUIDs
Our generator specifically creates Version 4 UUIDs. A v4 UUID is generated purely from random numbers. Out of its 128 bits, 122 bits are randomly generated, meaning there are 2122 (or 5.3 × 1036) possible variations.
The chances of generating a duplicate UUID v4 are so astronomically small that you would need to generate 1 billion UUIDs every second for 85 years to reach a 50% chance of a single collision.
Cryptographically Secure
We use the modern crypto.randomUUID() browser API to generate these IDs. This ensures the output is cryptographically secure, relying on your operating system's hardware random number generator rather than predictable pseudorandom math algorithms.