Random UUID v4 generator
This tool mints random version-4 UUIDs — 128-bit identifiers (defined by RFC 4122) used as primary keys, request IDs, idempotency tokens, and public-facing resource IDs. Because there is no central registry, anyone can generate one offline and the odds of a collision are vanishingly small. Generate one or up to a thousand at once.
How it works
The generator fills a 16-byte array with crypto.getRandomValues — the browser’s
cryptographically secure random source, not the weaker Math.random. It then
sets the version nibble to 4 (byte 6) and the variant bits (byte 8) exactly as
RFC 4122 requires, and renders the bytes as lowercase hex grouped 8-4-4-4-12.
Optional toggles uppercase the output or wrap each value in { } braces.
Example
A generated UUID looks like:
3f50b2a1-9c7d-4e2f-8b41-6a2c9d0f1e73
Note the 4 starting the third group (the version) and the 8 starting the
fourth group (the variant) — both are fixed; everything else is random.
UUID anatomy
| Position | Hex digits | Meaning |
|---|---|---|
| Group 3, first digit | 4 | Version 4 (random) |
| Group 4, first digit | 8, 9, a or b | RFC 4122 variant |
| All other digits | random | 122 random bits |
Everything runs in your browser — nothing is uploaded.