UUID Generator
Generate UUIDs (GUIDs) instantly — v4, v1, v7, bulk, and custom formats
Settings
Bulk Generate
UUID Validator & Parser
- Version:
- Variant:
UUID Versions
- v4 Random — most common. Best for general-purpose unique IDs.
- v1 Timestamp + MAC address. Useful for debugging & ordering.
- v7 Time-ordered random. Best for database primary keys (sortable).
Quick Tips
- Click the UUID to copy it instantly
- Use v7 for database primary keys (time-sortable)
- Use compact format for URL-safe IDs
- Generate up to 500 UUIDs at once
UUID Anatomy
- 4 = version number
- a = variant (8, 9, a, or b)
- Total: 128 bits / 32 hex chars
100% Private
All UUIDs are generated locally in your browser using the Web Crypto API. Nothing is sent to any server.
What Is a UUID?
Understanding Universally Unique Identifiers and why they matter
A UUID (Universally Unique Identifier) is a 128-bit identifier standardized by RFC 9562. UUIDs are designed to be globally unique without requiring a central authority — any system can generate one independently with virtually zero chance of collision.
UUIDs are widely used as database primary keys, API resource identifiers, session tokens, file names, distributed system identifiers, and message queue IDs. The format consists of 32 hexadecimal characters displayed in five groups separated by hyphens: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
A GUID (Globally Unique Identifier) is Microsoft's term for the same concept. The terms UUID and GUID are completely interchangeable — they refer to identical data structures and generation algorithms.
Database Keys
UUIDs are perfect primary keys for distributed databases where auto-increment IDs cause conflicts. UUID v7 is sortable, making it ideal for clustered indexes.
API Resources
Exposing sequential IDs in APIs is a security risk. UUIDs make resource identifiers unpredictable and safe to share in URLs without revealing system internals.
Distributed Systems
In microservices and event-driven architectures, UUIDs allow any service to create unique IDs independently without coordination or central registries.
UUID Version Comparison
Choose the right UUID version for your use case
| Feature | v1 | v4 | v7 |
|---|---|---|---|
| Source | Timestamp + MAC | Random | Timestamp + Random |
| Sortable | Partially | No | Yes |
| Privacy | Leaks MAC address | Fully private | Fully private |
| Collision risk | Very low | Extremely low | Extremely low |
| DB performance | Good | Poor (random I/O) | Excellent (sequential) |
| Best for | Legacy systems | General purpose | Modern databases |
Frequently Asked Questions
Common questions about UUIDs and GUIDs
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. UUIDs are designed to be globally unique without a central authority, making them ideal for distributed systems, databases, and APIs.