UUID Generator
Generate UUIDs in your browser: v4 (random), v5 (namespace-based), and v7 (time-ordered), plus copy-paste code for generating them directly in your own codebase.
UUID generator tool
Generate a UUID in your code
Prefer to generate UUIDs server-side or in your own script instead of pasting from a web page? Here's the standard way in three common languages, each covered in more depth on its own page.
How this tool works
v4 UUIDs use crypto.randomUUID(), part of the Web Crypto API, which generates a random version-4 UUID from a cryptographically secure source. v5 UUIDs are deterministic: the same namespace and name always hash (via SHA-1, per RFC 4122 §4.3) to the same UUID. v7 UUIDs embed a 48-bit millisecond timestamp in the most significant bits per RFC 9562 §5.7, so they sort chronologically while remaining globally unique, increasingly the preferred choice for database primary keys over random v4. Not sure which to use? See UUID v4 vs v5 vs v7 vs ULID vs NanoID for a practical comparison.
- MDN Web Docs, Crypto: randomUUID() method, developer.mozilla.org
- IETF RFC 9562, Universally Unique IDentifiers (UUIDs), defines v6, v7, v8 and supersedes RFC 4122