How the uuid generator works
A UUID v4 (universally unique identifier) is a 128-bit value with 122 random bits, written as 32 hexadecimal digits in the canonical 8-4-4-4-12 hyphenated groups — e.g. 550e8400-e29b-41d4-a716-446655440000. Of the 128 bits, 6 are fixed: the 13th hex digit is always 4 (the version) and the 17th is 8, 9, a or b (the variant).
Collision odds are astronomically low: with 2122 possible values, you would need to generate billions per second for a century to expect a single duplicate. That is why UUIDs work as database primary keys and distributed IDs with no central coordinator.
The UUID standard has grown over time (RFC 4122, updated by RFC 9562):
- v1 — timestamp + MAC address (privacy concerns)
- v3 / v5 — name-based, deterministic (MD5 / SHA-1)
- v4 — random; the default choice for general use
- v6 / v7 — newer time-ordered variants, better for database indexes
Common uses: database primary keys, session IDs, correlation IDs for tracing requests across microservices, and bulk test fixtures or seed data — anywhere independent systems must mint IDs without colliding.
Generation here runs entirely in your browser — nothing leaves your device. Note this tool uses Math.random(): fine for IDs and testing, but for security tokens use crypto.getRandomValues() or crypto.randomUUID() instead.
How to use the uuid generator
- Choose how many UUIDs you need (1 to 50 in bulk).
- Pick lowercase or UPPERCASE format.
- Click Generate to create random UUID v4s instantly.
- Click Copy all to copy the whole batch to your clipboard.
UUID versions at a glance
| Version | How it's made | Best for |
|---|---|---|
| v1 | Timestamp + MAC | Legacy systems |
| v3 / v5 | Namespace + name hash | Deterministic IDs |
| v4 | Random (122 bits) | General use — this tool |
| v6 / v7 | Time-ordered | Database-friendly IDs |
Generate UUIDs in code
Need them programmatically? Modern runtimes have it built in:
- JavaScript:
crypto.randomUUID()in browsers and Node 14.17+. - Python:
uuid.uuid4()from the standard library.
Pasting UUIDs into configs? Our YAML to JSON converter handles config files right in your browser.