🆔 UUID Generator

Generate universally unique identifiers — offline and secure

✓ Free Forever · ✓ No Signup · ✓ No Upload · ✓ Works Offline

🔒 Your data never leaves your device. All processing happens locally in your browser using Web Crypto API (crypto.randomUUID for v4, crypto.getRandomValues for v7). No upload, no server, no tracking.

Features

  • v4 and v7 UUIDs — Random version 4 or time-ordered version 7 UUIDs, as defined in RFC 9562 (the 2024 standard that replaced RFC 4122), with a single click.
  • Bulk Generation — Generate up to 1,000 UUIDs at once, then copy them all or download a .txt file. A v7 list comes out already in sort order.
  • UUID Validator — Paste any UUID to check its validity and detect its version.
  • Format Options — Output in standard, uppercase, no-hyphens, or braces format.

How It Works

  1. Pick a version, click Generate — v4 for a random ID, v7 for one that sorts by creation time. Click again for another.
  2. Choose format — Select standard, uppercase, no-hyphens, or braces format.
  3. Bulk generate or validate — Generate multiple UUIDs at once, or paste an existing UUID to validate it.

Use Cases

  • Generate unique IDs for database records
  • Create correlation IDs for distributed systems
  • Generate test data with unique identifiers
  • Validate UUIDs from APIs or logs

Frequently Asked Questions

What is a v4 UUID, and can two ever match?

A version 4 UUID is a 128-bit identifier with 122 random bits (the other 6 mark the version and variant). Two of them match with a chance of 1 in 2^122 — about 1 in 5×10^36. Even after 2.7×10^18 (2.7 quintillion) of them, the chance that any two collide is only about 50%.

How random are they?

They come from your browser's cryptographically secure random number generator (crypto.randomUUID for v4, crypto.getRandomValues for v7), seeded by the operating system — the same source used for encryption keys. It is a CSPRNG, not a physical dice roll, but nobody can predict what it gives. Nothing is generated on a server.

v4 or v7 — which should I use?

A v7 UUID carries the time it was made (Unix milliseconds) in its first 48 bits and 74 random bits after that, so IDs made later sort later. As a database primary key that keeps new rows together in the index instead of scattering them — the reason PostgreSQL 18 added uuidv7(). The catch: anyone who sees a v7 UUID can read when it was made, so use v4 for IDs that end up in public links or where the time is nobody's business. Several v7 UUIDs made in the same millisecond still come out in order here — the random part counts up.

Can I validate any UUID version?

Yes — versions 1 through 8 from the current standard (RFC 9562), including the newer time-ordered v6 and v7, plus the special nil (all zeros) and max (all F) UUIDs. It accepts the 36-character form, 32 hex digits without hyphens, {braces}, (parentheses) and urn:uuid:. For v1, v6 and v7 it also reads out the timestamp stored inside the UUID.

Notes from Milo 🐨

2026-10-25

The validator could read a v7 UUID, but the generator could only make v4 — and v7 is what a lot of you want for database keys, because it starts with the time it was made and new rows sort together. There's now a v4 / v7 switch: v7s made in the same millisecond still come out in order, so a bulk list of 1,000 is already sorted. The page tells you the trade-off (anyone can read a v7's creation time back). Bulk lists can be downloaded as a .txt file, and when your browser blocks the clipboard, Copy now says so and leaves the value selected instead of doing nothing.

2026-10-02

I pasted a v7 UUID from a Postgres table into my own validator and it told me "Invalid UUID". It only knew versions 1 to 5, so the time-ordered v6 and v7 that a lot of new code produces (plus v8 and the all-zeros nil UUID) were all called broken, while a UUID with a stray bracket or hyphens in the wrong places sailed through. It now follows the current standard: versions 1 to 8, nil and max, the usual spellings including urn:uuid:, and for v1, v6 and v7 it shows the moment the UUID was created. The count box also stopped fighting you: clearing it and typing 50 used to give you 100. You can now make up to 1,000 at once, and pressing Enter in the box generates them.

From the blog

Related Tools

💬 Bug, idea, or just to say hi? Tell Milo 🐨 · [email protected]