UUID Generator
Generate RFC-compliant UUIDs — v4 random or v7 time-sortable — in bulk, using your browser's crypto.
Generate RFC-compliant UUIDs in bulk — random v4 or time-sortable v7 — using your browser's cryptographic random number generator. Choose how many, pick a format (standard, uppercase, braced or without dashes), then copy them all or download them as a text file. Nothing is generated on a server, so no one else ever sees the values.
v4 is 122 random bits from your browser's cryptographic RNG — the safe default when IDs must not be guessable.
How UUID Generator works
A UUID is a 128-bit value written as 32 hexadecimal digits in five dash-separated groups. The point is that anyone can generate one independently and be confident it will not collide with anyone else's — no central authority, no coordination, no round trip to a database to reserve an ID.
Version 4 fills 122 of those bits with random data, reserving six for the version and variant markers. The collision probability is famously remote: you would need to generate around a billion UUIDs per second for roughly 85 years to reach a 50% chance of a single collision. Crucially, the randomness here comes from `crypto.getRandomValues`, your browser's cryptographically secure generator — not `Math.random()`, which is fast but predictable and must never be used for identifiers that should be unguessable.
Version 7 is newer, standardised in RFC 9562 in 2024, and solves a real database problem. Because v4 values are entirely random, consecutive inserts land in random positions in a B-tree index, scattering writes across pages and fragmenting the index. v7 puts a 48-bit millisecond timestamp in the leading bits, so IDs generated later always sort after earlier ones. Inserts stay sequential, the index stays compact, and you get creation-time ordering for free. That is why v7 is now the recommended choice for database primary keys, with v4 reserved for cases where the ID must reveal nothing — password reset tokens, public-facing identifiers, anything guessable-is-dangerous.
The trade-off is exactly that: a v7 UUID leaks its creation time to anyone holding it. That is usually harmless and often useful, but it is a real disclosure and worth a moment's thought before using v7 in a public URL.
The nil UUID — all zeros — is the conventional "no value" placeholder for a UUID column that cannot be null.
How to use UUID Generator
Pick a version
v4 for unpredictable random IDs, v7 when you want IDs that sort by creation time, or the nil UUID as a placeholder.
Choose quantity and format
Generate 1 to 100 at a time, in standard, uppercase, braced or dash-free format.
Copy or download
Copy an individual UUID, copy the whole batch, or download them as a .txt file.
Frequently Asked Questions
What is the difference between UUID v4 and v7?+
Can two UUIDs ever be the same?+
Are these UUIDs cryptographically secure?+
Are the UUIDs generated on your server?+
Should I use v7 for my database primary key?+
Does a v7 UUID leak information?+
What is the nil UUID for?+
Is UUID the same as GUID?+
Related tools
APIs, tech stack, DNS, SSL & SEO for any URL
Beautify, minify and validate JSON
Convert JSON ↔ YAML both directions
Convert CSV ↔ JSON with type detection
Base64 with Unicode and URL-safe support
Decode a JWT and check its expiry