JSON Formatter
JSON Formatter for developers — instant, offline-style and privacy-safe.
Generate random version 4 UUIDs — the 128-bit identifiers used for database keys and unique IDs — in bulk, from the browser's cryptographically secure randomness. Up to 500 at once.
Your browser is preparing the tool. It runs 100% locally.
Generate version 4 (random) UUIDs — 128-bit identifiers like the ones used for database primary keys — one per line, up to 500 at a time. Each is built from the browser's cryptographically secure random generator, with 122 random bits and 6 fixed bits marking it as version 4. The odds of two ever colliding are astronomically small. It runs entirely in your browser, so the IDs never leave your device.
Choose how many you need and the tool prints that many random UUIDs, each in the standard 8-4-4-4-12 hexadecimal layout with the version digit fixed at 4. They are ready to paste into code, a database seed, a config file or a test fixture.
Every UUID is independent and random — there is no counter, timestamp or machine address in a version 4 UUID, so they reveal nothing about when or where they were made. That is the trade-off versus the newer time-ordered versions: maximum unpredictability, no built-in ordering.
The tool calls the browser's built-in crypto.randomUUID where available, and otherwise fills the pattern from crypto.getRandomValues — both draw from the same cryptographically secure random source, not the ordinary Math.random. It then fixes the six bits that mark the identifier as version 4, variant 1.
A version 4 UUID has 122 random bits. That is the source of its uniqueness: with so many possibilities, you could generate a billion a second for decades and still not expect a single collision, which is why UUIDs can be created independently on many machines without coordination.
xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
4 = version (always 4)
y = variant (8, 9, a or b)
x = random hex digit
122 random bits in totalOnly the version and variant positions are fixed; everything else is cryptographically random.
The UUIDs are generated in your browser from its own secure random source; nothing is requested from or sent to a server, so the values are yours alone.
A version 4 UUID contains no personal data, timestamp or device identifier — it is pure randomness — so it does not leak when or where it was created, unlike the time-based UUID versions.
| Version | 4 (random) |
|---|---|
| Format | 8-4-4-4-12 hex, 36 characters |
| Random bits | 122 of 128 |
| Randomness | browser crypto (not Math.random) |
| Batch size | 1 to 500 |
| Case | lowercase hex |
| Where it runs | In your browser — nothing uploaded |
These are version 4 (random) UUIDs. They are unpredictable and great as opaque keys, but they carry no time ordering, so rows keyed by them are not sortable by creation time. If you need ordering, a time-based version (such as version 7) is a better fit.
Uniqueness is overwhelmingly likely, not mathematically guaranteed. The collision odds are about one in 2 to the power 122 — negligible — but if your system cannot tolerate even a theoretical clash, add a database unique constraint as a backstop.
Randomness quality depends on the browser's crypto generator, which is designed to be cryptographically secure. The fallback path used in older browsers draws from the same secure source, so the IDs are not the weak, predictable kind that Math.random would produce.
The values are lowercase. UUIDs are case-insensitive by the standard, but some systems compare them as plain strings; pick one case convention and stick to it to avoid mismatches.
There is a 500-per-batch cap. For a larger set, run it again — each batch is fully independent, so combining batches does not raise the collision risk in any meaningful way.
Generate primary keys that can be created without a central counter.
Seed fixtures and mock records with realistic unique IDs.
Tag requests or log entries so they can be traced across services.
Create collision-free names for uploads or temporary objects.
Need time-ordered IDs for database locality? A version 7 UUID embeds a timestamp. Want a short shareable code? A nanoid or a custom short-ID scheme is more compact. Need a secret token? Use a dedicated token generator.
Generates version 4 UUIDs (122 random bits) from the browser's cryptographic random source — crypto.randomUUID, not Math.random — and is explicit that they carry no timestamp or ordering and that collision odds (about one in 2 to the power 122) are negligible but not a mathematical guarantee.
JSON Formatter for developers — instant, offline-style and privacy-safe.
JSON Validator for developers — instant, offline-style and privacy-safe.
Base64 Encoder for developers — instant, offline-style and privacy-safe.
Fast, free Hash Generator that runs entirely client-side in your browser.
Fast, free CSS Minifier that runs entirely client-side in your browser.
Regex Tester online: paste, process and copy without your data hitting a server.
It is free, private and runs entirely in your browser — no sign-up, no uploads, no limits.