UUID Generator
Generate UUID v4 and time-sortable UUID v7 in bulk, or decode an existing UUID to see its version and timestamp.
Runs entirely in your browser — nothing is uploadedv7 embeds a millisecond timestamp in its leading bits, so these sort chronologically as plain strings — that keeps database index inserts sequential instead of scattering them across the B-tree.
Generated
0 UUIDsDecode an existing UUID
Try the nil UUID: 00000000-0000-0000-0000-000000000000
About the UUID Generator
Generate UUIDs one at a time or a thousand at once. v4 is the familiar fully-random identifier. v7 is the newer time-ordered format standardised in RFC 9562, which embeds a millisecond timestamp in its leading bits.
That difference matters more than it sounds. Random v4 keys scatter inserts across a B-tree index, which fragments pages and degrades write throughput badly on large tables. v7 keys are monotonically increasing, so inserts append to the end of the index the way an auto-increment integer does — while remaining globally unique and safe to generate client-side. If you are choosing a primary key format for a new table today, v7 is usually the better default.
The decoder takes any existing UUID and reports its version and variant, and for v7 and v1 extracts the embedded timestamp — a quick way to find out when a record was actually created when the row has no created_at.
Output can be uppercased, stripped of hyphens, or wrapped in braces, and the whole batch copies or downloads in one action.
Everything runs inside your browser using standard web APIs. Your data is never uploaded, never stored on a server, and never leaves your device — you can confirm that by opening your browser devtools Network tab, or by switching off your Wi-Fi and using the tool offline.
Frequently asked questions
Should I use UUID v4 or v7?
Use v7 for database primary keys — it is time-ordered, so it avoids the index fragmentation and write amplification that random v4 keys cause on large tables. Use v4 when you specifically want no information encoded in the identifier, such as unguessable public tokens.
Are these UUIDs cryptographically random?
Yes. Random bits come from crypto.getRandomValues(), the browser's CSPRNG — the same source used for cryptographic key material, not Math.random().
Can two generated UUIDs ever collide?
In practice, no. A v4 UUID has 122 random bits; you would need to generate roughly a billion per second for 85 years to reach a 50% chance of a single collision.
Does a v7 UUID leak information?
It reveals its creation time to the millisecond, by design. That is a feature for database keys and a drawback for public tokens where creation time should stay private — use v4 there.