About the UUID Generator
The UUID Generator runs entirely in your browser — your code and data never leave your machine. Paste, click, copy the result.
Universally Unique Identifiers (UUIDs) give every record, session and file a name that will never collide — even across unrelated systems. Version 4 UUIDs are 122 bits of randomness formatted as xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx, where the version digit is always 4 and y is one of 8, 9, A or B.
How to use this tool
- Choose how many UUIDs you need (up to 500 in one batch).
- Pick the format: standard lowercase, uppercase, or dash-less for databases that dislike hyphens.
- Generate, then copy the list.
When to use UUIDs
- Database primary keys — no auto-increment conflicts when merging datasets or microservices.
- Client-generated IDs — create the ID in the browser/app, sync later without coordination.
- File and object names — upload filenames guaranteed not to clash.
- Transaction IDs, request tracing, invite codes.
v4 vs. other versions
| Version | Source of randomness | Use |
|---|---|---|
| v4 | Pure random | General purpose — this tool |
| v1 | Timestamp + MAC address | Legacy; leaks machine identity |
| v7 | Timestamp-prefixed random | New: sortable by creation time |
| v5 | SHA-1 of a name + namespace | Deterministic: same input → same UUID |
Uniqueness reality check: random v4 collision probability is ~0 for trillions of IDs — the birthday bound only bites around 2⁶¹ generated UUIDs on one system.
Who is this tool for?
Backend developers seeding databases, frontend devs needing client-side IDs, and testers filling 'unique constraint' fields.
Developer tip
If you need sortable IDs (newest first), use v7 — supported natively in newer languages and PostgreSQL 18+.