UUID Generator (v4)
Cryptographically random version-4 UUIDs, single or in bulk - generated locally in your browser.
Anatomy of a UUID
Those 36 characters aren't all random - Two positions are reserved:
xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
- The 4 in the third group is the version digit - It tells parsers "this is a random UUID."
- The y position holds the
variant bits - Always
8,9,aorbfor standard UUIDs. Spot a v4 UUID with a different digit there and it wasn't generated correctly. - Everything else - 122 bits - Is pure CSPRNG output.
That version digit is also a quick forensic tell: a 1 means
timestamp+MAC (leaks when and where it was made), a 7 means
timestamp-prefixed, a 4 means fully random.
About Version-4 UUIDs
122 bits of randomness
A v4 UUID contains 122 random bits (6 bits are fixed for version and variant). The collision odds are absurd: you'd need to generate a billion UUIDs per second for about 85 years to reach a 50% chance of one duplicate.
This page uses crypto.randomUUID() - The same
CSPRNG machinery behind our
password generator.
Common uses
- Database primary keys and API resource IDs.
- Idempotency keys for payment APIs.
- Correlation IDs in distributed tracing.
- Anywhere an unguessable identifier matters - Though for secrets, prefer a real passphrase or random token.
How to Use the UUID Generator
Generate one or many
The single UUID refreshes on demand; bulk mode produces up to 500 at once.
Pick formatting
Uppercase or hyphen-free variants for systems with specific format rules.
Download the list
Bulk lists export as a plain .txt, one UUID per line.
UUID versions - What each is based on
| Version | Based on | Random bits | When to use |
|---|---|---|---|
| v1 | Timestamp + MAC address | 14 | Legacy; leaks time and hardware identity |
| v4 | Pure randomness | 122 | The default - What this tool generates |
| v5 | SHA-1 of a name | 0 (deterministic) | Stable IDs derived from names |
| v7 | Timestamp + randomness | 74 | Database keys needing sortable order |
UUID Generator - FAQ
Can two v4 UUIDs ever collide?
Are these UUIDs safe to use as secret tokens?
Are version-4 UUIDs sortable?
Should I use v4 or v7 for database primary keys?
More questions about passwords and security? Browse the security guides.
More Free Tools
Password Generator →AES-256 Encryption
Encrypt and decrypt text with AES-256, right in your browser.
MD5 Hash Generator
Compute MD5 checksums of any text instantly.
SHA-256 Hash Generator
SHA-256, SHA-384 and SHA-512 hashes computed locally.
Base64 Encoder / Decoder
Encode and decode Base64 text and URLs.
Case Converter
UPPER, lower, Title, camelCase and more.
Bcrypt Hash Generator
Hash and verify passwords with bcrypt - The slow hash built for passwords.