UUID Generator

Version 4 UUIDs — the random, registry-free identifiers — generated singly or in bulk from cryptographic randomness, ready to paste into schemas, seeds and requests.

Generate UUIDs

In short

Pick a quantity and format, generate, copy. Every UUID carries 122 bits of cryptographic randomness — collisions are not a practical concern in this universe.

Anatomy of a UUID

Read one closely — 3f6d1c2a-9b4e-4f1a-a3c5-2e7b8d9f0a1b — and the structure shows. The five groups (8-4-4-4-12 hex digits) total 128 bits. In a version 4 UUID only two landmarks are fixed: the first digit of the third group is always 4 (the version), and the first digit of the fourth group is always 8, 9, a or b (the variant). Everything else — 122 bits — is random. That randomness is the entire design: identifiers that need no issuing authority, so a phone in a basement and a server in another hemisphere can both mint keys for the same database without ever colliding or coordinating. The trade-offs are known and accepted: UUIDs are bigger than integers, they do not sort by creation time (the newer v7 fixes that for systems that care), and they are unfriendly to read aloud. For distributed systems and public-facing IDs — where a sequential number would also leak how many records exist — those costs are usually worth paying.

How to use this generator

  1. Choose how many UUIDs you need and the format your system expects.
  2. Generate and copy them — one per line.
  3. Paste into your migration, seed file or request header.
  4. Need more later? Generate fresh ones; never recycle an identifier.

Privacy: UUIDs are generated in your browser from the Web Crypto API and are never transmitted or stored.

Frequently asked questions

What is a UUID?

A Universally Unique Identifier: a 128-bit value written as 32 hex digits in five groups — 8-4-4-4-12 — like 3f6d1c2a-9b4e-4f1a-a3c5-2e7b8d9f0a1b. It is an identifier that can be generated anywhere, by anyone, with a vanishingly small chance of two ever colliding — no central registry, no coordination, no sequence to leak information.

What makes a version 4 UUID special?

Version 4 is the random kind: 122 of its 128 bits are random (the rest are fixed markers — the '4' that starts the third group declares the version, and the variant bits start the fourth group with 8, 9, a or b). With 122 random bits drawn from a cryptographic source, you could generate a billion UUIDs a second for a century and the collision odds would still be negligible.

Where are UUIDs used?

As database primary keys (especially where records are created offline or across servers), file and session identifiers, idempotency keys for payments and API calls, correlation IDs in logs, and test data. Their one cost versus sequential integers is index size and the loss of inherent ordering — which is why time-ordered variants (UUID v7) exist for new systems that need both.

How are these generated?

From the Web Crypto API's secure random bytes, formatted to the version 4 layout — the same method as the platform's built-in crypto.randomUUID(), which this tool also uses where available. Generation is entirely local; the UUIDs are not logged or stored anywhere.

Can I generate UUIDs in bulk for test data?

Yes — set the quantity up to 100 and generate; copy them one per line into your seed files or fixtures. Each is independently random, so bulk generation carries the same collision guarantees as one at a time.

Related tools