Generate random version-4 UUIDs (universally unique identifiers) — one at a time or a batch, ready to copy.
UUIDs (Universally Unique Identifiers) generated here are version 4 — the most common type, built from randomness rather than encoding a timestamp, MAC address, or any other embedded meaning, following the RFC 4122 standard specification.
The randomness comes from your browser's built-in cryptographically secure random number generator (crypto.getRandomValues), not the weaker Math.random() used for things like coin flips or dice rolls — this matters because a UUID needs to be practically impossible to guess or collide with another generated elsewhere.
With 122 random bits (a few bits are fixed by the version and variant markers), the odds of ever generating two identical version-4 UUIDs by chance are astronomically small, which is exactly why UUIDs are the standard choice for database primary keys, session tokens, and unique identifiers in distributed systems where no central coordinator can hand out sequential IDs.
Version 4 UUIDs use 122 bits of cryptographically secure randomness (from crypto.getRandomValues, not the weaker Math.random()). The chance of ever generating a duplicate by coincidence is astronomically small — small enough that UUIDs are trusted as unique identifiers across entirely separate, uncoordinated systems.
A UUID follows a specific standardized format (RFC 4122) with fixed version and variant bits alongside the random portion, making it universally recognized and parseable by any system expecting a UUID — a generic random string has no such guaranteed structure.
Yes — version 4 UUIDs are a common and practical choice for primary keys, especially in distributed systems where multiple sources need to generate unique IDs independently without a central counter.
Generated entirely locally in your browser using crypto.getRandomValues — nothing is sent to or logged by a server.