Generate UUIDs: v4 and v7
Generate 1 to 100 UUIDs at once, either random v4 or time-sortable v7, with an uppercase option, per-row copy and copy-all. The random bits come from your browser's Web Crypto API, a cryptographically secure source. Nothing is sent to any server, and the tool works offline.
What is a UUID?
A Universally Unique Identifier is a 128-bit value written as 36 characters in five hex groups (8-4-4-4-12). The current standard is RFC 9562 (May 2024), which obsoletes the older RFC 4122 and defines the new time-based versions 6, 7 and 8 alongside the classics. UUIDs can be generated decentrally, with no central authority, and collisions are practically impossible: a v4 UUID carries 122 random bits, about 5.3 × 10^36 possible values.
v4 or v7, which should you pick?
- v4 (random): maximum anonymity, reveals nothing about when or in what order it was created. Good for publicly visible IDs, tokens, file names.
- v7 (time-based): starts with a 48-bit Unix millisecond timestamp followed by 74 random bits (RFC 9562 §5.7). v7 values sort roughly by creation time, which makes them clearly better database primary keys: new rows land next to each other in the index instead of scattering, reducing page splits and cache misses compared to v4 keys.
In short: database keys → v7, everything else → v4.
How honest is the v7 sortability here?
Our v7 implementation follows RFC 9562 but deliberately omits the optional monotonic counter: UUIDs created in the same millisecond share the time prefix while the rest is random, so their relative order is undefined. Across millisecond boundaries the ordering is always correct. For the vast majority of uses (database keys, log correlation) that is enough; if you need strict monotonicity, add a counter in the database.
A second honest note: a v7 UUID contains its creation time in the clear, anyone can read the first 48 bits as a timestamp. If that is undesirable, use v4.
Where does the randomness come from?
From crypto.randomUUID and crypto.getRandomValues, the browser's cryptographically secure random generator, not from Math.random. Everything happens locally on your device: no server generates, sees or logs your IDs.