Click Generate to create a UUID
Generator Options
v4: Cryptographically random โ best for most use cases
UUID Decoder & Parser
Paste any UUID to decode its version, variant, timestamp, and internal structure.
What is a UUID?
A UUID (Universally Unique Identifier) is a 128-bit number used to uniquely identify information in computer systems. Unlike sequential IDs, UUIDs can be generated independently without coordination, making them perfect for distributed systems, databases, and APIs.
UUIDs are standardized by RFC 4122 and are represented as 32 hexadecimal digits displayed in 5 groups separated by hyphens:
xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx
Where M indicates the UUID version (1-8) and N indicates the variant.
UUID Versions Explained
UUID v4 (Random)
Version 4 UUIDs are generated using random numbers. They provide the strongest uniqueness guarantees with 2^122 possible combinations โ so many that the chance of collision is effectively zero for any practical application.
- Best for: Most applications, databases, APIs, session tokens
- Example:
f47ac10b-58cc-4372-a567-0e02b2c3d479 - Uniqueness: 2^122 possible values
UUID v1 (Timestamp-based)
Version 1 UUIDs combine a timestamp (60 bits), a clock sequence (14 bits), and a node ID (48 bits, typically MAC address). They're not completely random but provide uniqueness through time and space.
- Best for: Ordered IDs, when you need to know when a UUID was created
- Example:
a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 - Note: Contains timestamp information (not anonymous)
UUID v5 (Name-based, SHA-1)
Version 5 UUIDs are generated by hashing a namespace identifier together with a name using SHA-1. They are deterministic โ the same namespace and name always produce the same UUID. This makes them ideal for creating consistent identifiers from known values.
- Best for: Consistent IDs from names (e.g., domain โ UUID), deduplication, content addressing
- Example:
2ed6657d-e927-568b-95e1-2665a8aea6a2(URL namespace + "https://example.com") - Namespaces: DNS, URL, OID, X.500, or any custom UUID
- Note: Same inputs always produce the same output โ no randomness involved
UUID v7 (Unix Epoch, Sortable)
Version 7 is the newest UUID version, introduced in the RFC 9562 update. It encodes a Unix timestamp in milliseconds in the most significant 48 bits, followed by random data. This makes v7 UUIDs naturally sortable by creation time โ a game-changer for database performance.
- Best for: Database primary keys (B-tree friendly), time-ordered events, distributed systems
- Example:
018e1a2c-4f60-7b3a-9d1e-0f2a3b4c5d6e - Advantage: Sortable + random โ better than v1 for modern databases
- Note: Recommended replacement for v1 in new projects
Common UUID Formats
| Format | Example | Usage |
|---|---|---|
| Standard | 550e8400-e29b-41d4-a716-446655440000 |
Most common, used everywhere |
| Braces | {550e8400-e29b-41d4-a716-446655440000} |
Windows registry, some Microsoft tools |
| URN | urn:uuid:550e8400-e29b-41d4-a716-446655440000 |
RFC 4122 URN namespace |
| No hyphens | 550e8400e29b41d4a716446655440000 |
Compact storage, some databases |
How to Use This Tool
- Choose your version โ Select v4 for random UUIDs (recommended) or v1 for timestamp-based UUIDs.
- Pick your format โ Standard with hyphens is most common, but choose braces or URN format if needed.
- Set case preference โ Lowercase is standard, but some systems prefer uppercase.
- Set quantity โ Need just one? Leave it at 1. Need thousands? Adjust the slider up to 10,000.
- Generate โ Click the button or use the refresh icon for instant results.
- Copy or export โ Copy individual UUIDs or export bulk results as CSV, JSON, or TXT.
UUID Decoder & Parser
Our UUID decoder lets you paste any UUID and instantly see its internal structure. It decodes:
- Version โ Which UUID version (v1 through v8) was used to generate it
- Variant โ The variant field (RFC 4122, Microsoft, NCS, or reserved)
- Timestamp โ For v1, v6, and v7 UUIDs, the exact date and time embedded in the UUID
- Clock sequence โ The clock sequence counter (v1)
- Node ID โ The MAC address or random node identifier (v1)
- Alternative formats โ Integer, URN, braces, and no-dashes representations
The visual breakdown highlights each section of the UUID with color-coded labels so you can see exactly which bits serve which purpose. This is useful for debugging, verifying UUID version compliance, and understanding the data embedded in timestamp-based UUIDs.
Common Use Cases
- Database primary keys โ Distributed systems can generate IDs without conflicts
- API resource identifiers โ REST APIs use UUIDs to identify resources
- Session tokens โ Secure, unguessable tokens for user sessions
- File names โ Unique names for uploaded files to prevent collisions
- Test data โ Generate realistic IDs for development and testing
- Transaction IDs โ Unique identifiers for financial transactions