UUID / GUID Generator
Generate v1–v8, validate, analyze, compare, collision probability, and export (JSON/CSV/SQL). 100% client-side — no UUID data sent to servers.
UUID Analyzer
Validator
Compare two UUIDs
Collision probability
Code examples
All generation and analysis run in your browser. No UUID data is sent to any server.
What Is a UUID?
A UUID (Universally Unique Identifier) is a 128-bit label used to identify information in computer systems. Standardised in RFC 4122, a UUID looks like:
M indicates the version; N indicates the variant. UUIDs are used as database primary keys, session IDs, transaction IDs, and anywhere a globally unique identifier is needed without coordination between systems.
Generate and Export UUIDs in Seconds
Choose a version
Pick v4 (random), v7 (time-sorted), v5 (namespace), or any other version.
Set quantity
Generate 1 or bulk-generate up to 1,000 UUIDs at once.
Copy or export
Copy individual UUIDs or export all to JSON, CSV, or SQL INSERT statements.
Validate or analyze
Paste any UUID to validate, inspect the version/variant, and check collision probability.
When Developers Use UUIDs
Database Primary Keys
Use v7 for time-sortable, index-friendly primary keys in Postgres, MySQL, or DynamoDB.
Distributed Systems
Generate IDs across services without a central coordinator — no collision coordination needed.
Idempotency Keys
Attach a v4 UUID to API requests to make retries safe without duplicate processing.
File & Upload IDs
Name uploaded files with UUIDs to avoid collisions and prevent enumeration attacks.
Test Fixtures
Generate bulk UUIDs for seeding test databases or mock API responses.
Deterministic IDs
Use v5 (SHA-1 namespace) for stable, repeatable IDs from a URL or email.
UUID Versions Explained — v1 through v8
| Version | Source | Sortable | Best for |
|---|---|---|---|
| v1 | Timestamp + node | ✅ Time | Legacy time-ordered systems |
| v3 | MD5 namespace | — | Deterministic IDs (legacy) |
| v4 | Random | — | Most general use cases |
| v5 | SHA-1 namespace | — | Deterministic IDs (preferred over v3) |
| v6 | Reordered v1 | ✅ Time | DB-friendly v1 replacement |
| v7 | Unix ms + random | ✅ Time | ⭐ New apps, database primary keys |
| v8 | Custom | App-defined | Application-specific layouts |
UUID v4 vs v7 — Which to Use for Database Keys?
v7 for all new applications. UUID v7 encodes a Unix millisecond timestamp in the first 48 bits, making it time-sortable. Records with v7 primary keys insert in chronological order, which dramatically improves B-tree index performance compared to random v4 UUIDs (which scatter inserts across the index, causing page splits). Use v4 for non-database IDs where sort order does not matter.
Frequently Asked Questions
1What is the difference between UUID and GUID?
2What is the difference between UUID v4 and v7?
3Can two UUIDs ever be the same?
4Should I use UUID or auto-increment for database IDs?
5What is a namespace UUID (v3 and v5)?
6Are the UUIDs generated here cryptographically secure?
Developer Guides
Feedback for uuid_generator
Tell us what's working, what's broken, or what you wish we built next — it directly shapes our roadmap.
Good feedback is gold — a rough edge you hit today could be smoother for everyone tomorrow.
- Feature ideas often jump the queue when lots of you ask.
- Bug reports with steps get fixed faster — paste URLs or examples if you can.
- Name and email are optional; we won't use them for anything except replying if needed.
Stay Updated
Get the latest tool updates, new features, and developer tips delivered to your inbox.
- Product updates & new tools
- JSON, API & developer tips
- Unsubscribe anytime — no hassle