UUID Generator
Generate UUID v4 (random) or v7 (timestamp-ordered) identifiers in your browser.
What is a UUID?
A UUID (Universally Unique Identifier, sometimes called GUID) is a 128-bit number written as 32 hex digits in the canonical 8-4-4-4-12 shape — for example a1b2c3d4-e5f6-4a7b-9c0d-1e2f3a4b5c6d. The point is that any system can mint one with no coordination and the chance of collision is negligible. v4 is fully random; v7 embeds a millisecond timestamp at the start, so v7s sort chronologically and play much nicer with database B-tree indexes than v4s.
How to use this tool
Pick a version (v4 for opaque random IDs, v7 when you want time-ordering for primary keys), choose how many you need (1-100), pick lower or UPPERCASE, and hit Regenerate. Use Copy next to a row to grab one, or Copy all to dump them all to the clipboard, one per line. v4 uses the browser's crypto.randomUUID(); v7 is built locally from a 48-bit timestamp plus 74 random bits.
v4 vs v7 — which should I use?
Use v4 for tokens, request IDs, opaque public-facing identifiers, anywhere you don't want order or timing leaked. Use v7 for primary keys in modern databases — it gives you globally-unique IDs without random-insert index thrash, and rows naturally sort by creation time. Avoid v1 (leaks MAC address) and v3/v5 (name-based, niche use). Don't truncate UUIDs to "save space" — collisions ramp up fast.
UUID versions at a glance
All UUIDs are 128 bits and look the same on the wire; the version number (the first hex digit of the third group) tells you how they were minted.
| Version | Built from | Typical use |
|---|---|---|
| v1 | Timestamp + MAC address | Legacy. Leaks host info — avoid. |
| v3 / v5 | Hash of namespace + name (MD5 / SHA-1) | Deterministic IDs from a name. Niche. |
| v4 | 122 random bits | Tokens, opaque IDs, request IDs. |
| v6 | Reordered v1 (sortable) | v1 replacement when you can't move to v7. |
| v7 | 48-bit ms timestamp + 74 random bits | Modern default for DB primary keys. |
| v8 | Custom (RFC-defined slot) | Bring-your-own scheme. |
Frequently asked questions
Are these UUIDs really unique?
Is v7 a real, ratified standard?
Why use v7 instead of v4 for database primary keys?
Can I sort v7 UUIDs by time?
What's the difference between UUID and GUID?
Are these generated on a server?
crypto.randomUUID(), a browser builtin. v7 is assembled locally from Date.now() and crypto.getRandomValues. There is no network round-trip, no logging — you can verify in DevTools > Network that nothing is fired when you click Regenerate.
EN
PT
ES