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.

Version

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

1

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.

2

Choose quantity and format

Generate 1 to 100 at a time, in standard, uppercase, braced or dash-free format.

3

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?
+
v4 is entirely random. v7 puts a millisecond timestamp in the leading bits so IDs sort chronologically, which keeps database index inserts sequential instead of scattered. Use v7 for primary keys, v4 when the ID must be unguessable.
Can two UUIDs ever be the same?
+
In theory yes, in practice no. For v4 you would need to generate about a billion per second for 85 years to reach a 50% chance of one collision. It is not something to design around.
Are these UUIDs cryptographically secure?
+
The random bits come from crypto.getRandomValues, your browser's cryptographically secure generator — not Math.random(), which is predictable and unsafe for identifiers that must not be guessable.
Are the UUIDs generated on your server?
+
No. They are generated in your browser and never transmitted, so no one else ever sees them — which matters if you are using them as tokens or keys.
Should I use v7 for my database primary key?
+
Generally yes. Sequential inserts keep B-tree indexes compact and avoid the page fragmentation that random v4 keys cause, and you get creation-time ordering at no extra cost.
Does a v7 UUID leak information?
+
It reveals its creation time to anyone holding it, since the timestamp is in the leading bits. Usually harmless, but use v4 where that disclosure would matter — such as in a public URL.
What is the nil UUID for?
+
It is all zeros, the conventional placeholder meaning "no value" for a UUID column that cannot be null.
Is UUID the same as GUID?
+
Yes — GUID is Microsoft's name for the same 128-bit standard. The braced uppercase format offered here is the one Microsoft tooling typically expects.

Related tools