UUID Generator
Generate cryptographically secure UUID v4 identifiers — one at a time or up to 50 in a single click.
Free · No credit card · 50 credits/day
Anatomy of a UUID v4
128 bits, 32 hex characters, 5 groups — two of which carry version and variant flags.
122 of the 128 bits are random — the remaining 6 encode the version (4) and variant (RFC 4122).
UUID versions compared
v4 is the right choice for most applications — here's why.
| Version | Method | Sortable | Privacy | Use when |
|---|---|---|---|---|
| v1 | Time + MAC address | ✓ | ✗ Leaks MAC | Legacy systems only |
| v3 | MD5 name-based | — | ✓ | Deterministic IDs from a namespace + name (legacy) |
| v4 ★ | Random (CSPRNG) | ✗ | ✓ | General purpose — most common choice |
| v5 | SHA-1 name-based | — | ✓ | Deterministic IDs from a namespace + name |
| v7 | Time-ordered random | ✓ | ✓ | DB primary keys (no fragmentation) — emerging standard |
Where to use UUIDs
Database primary keys
Generate IDs client-side before inserting — no round-trip to the DB needed. Works across distributed systems without a central sequence.
API resource identifiers
Expose UUIDs in REST URLs instead of sequential integers — prevents enumeration attacks and decouples external IDs from internal auto-increment keys.
File and upload naming
Rename user-uploaded files to a UUID to avoid path traversal, conflicts and directory disclosure of original filenames.
Session and token IDs
Use UUIDs for session identifiers, invite tokens, password reset links and one-time codes — large random space makes brute-force infeasible.
Event and log correlation
Attach a UUID to every request or event at the entry point. Propagate it through microservices to correlate all log entries for a single operation.
Test data generation
Generate unique IDs for fixtures and seed data without conflicts — especially useful when seeding across multiple environments simultaneously.
Frequently asked questions
Related developer tools
More tools for tokens, identifiers and encoding.
Generate UUIDs now
Free account. 50 credits per day. Access to 75+ tools instantly.
Create free account →