v4: Cryptographically random — best for most use cases
History stored locally. Clear anytime.
Click Generate to create a UUID v4
Configuration
UUID Decoder & Parser
Paste any UUID to instantly decode its version, variant, timestamp, and 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 9562 (formerly RFC 4122) and are represented as 32 hexadecimal digits in 5 groups separated by hyphens:
xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx
Where M indicates the UUID version and N indicates the variant.
Random UUID v4 Generator
UUID v4 is the random UUID version. It is the best default for opaque IDs where you do not want to expose creation time or machine details. For high-write database primary keys, compare it with UUID v7 in the UUID versions guide.
UUID Versions Explained
UUID v4 (Random)
Generated using random numbers with 2^122 possible combinations — the chance of collision is effectively zero for any practical application. Open the dedicated UUID v4 generator when you only need random UUIDs.
- Best for: Most applications, databases, APIs, session tokens
- Uniqueness: 2^122 possible values
UUID v1 (Timestamp-based)
Combines a timestamp, clock sequence, and node ID. Useful when you need to know when a UUID was created.
- Best for: Ordered IDs, audit trails
- Note: Contains timestamp information
UUID v3 (Name-based, MD5)
Generated by hashing a namespace + name using MD5. Deterministic — same inputs always produce the same UUID. Prefer v5 for new projects unless MD5 compatibility is required.
- Best for: Legacy systems requiring MD5-based UUIDs, backward compatibility
- Note: Uses MD5 (not cryptographically secure, but fine for UUID generation)
UUID v5 (Name-based, SHA-1)
Generated by hashing a namespace + name using SHA-1. Deterministic — same inputs always produce the same UUID.
- Best for: Consistent IDs from names, deduplication, content addressing
UUID v6 (Reordered Timestamp)
UUID v6 is a reordered version of v1, rearranging the timestamp bits for natural sortability. It uses the same 60-bit Gregorian timestamp as v1 but places the most significant bits first.
- Best for: Drop-in replacement for v1 when sortability matters
- Advantage: Lexicographically sortable while retaining v1 compatibility
UUID v7 (Unix Epoch, Sortable)
The newest version from RFC 9562. Encodes a Unix timestamp in milliseconds, making v7 UUIDs naturally sortable by creation time.
- Best for: Database primary keys, time-ordered events, distributed systems
- Advantage: Sortable + random — better than v1 for modern databases
Use the UUID v7 generator for sortable IDs, and read UUIDs as database primary keys before choosing v4 or v7 for a relational database.
Common UUID Formats
| Format | Example | Usage |
|---|---|---|
| Standard | 550e8400-e29b-41d4-a716-446655440000 |
Most common |
| Braces | {550e8400-e29b-41d4-a716-446655440000} |
Windows registry |
| URN | urn:uuid:550e8400-e29b-41d4-a716-446655440000 |
RFC 4122 URN |
| No hyphens | 550e8400e29b41d4a716446655440000 |
Compact storage |
Related UUID Guides
- UUID versions explained — UUID v4 vs v7, v1, v3, v5, and v6 compared
- UUID as a database primary key — PostgreSQL, MySQL, indexing, and v7 recommendations
- GUID vs UUID — terminology, .NET, SQL Server, and binary byte order
Latest Articles
GUID vs UUID: Difference, Format, and Generator Guide (2026)
Are GUID and UUID the same thing? Learn GUID vs UUID terminology, string format, byte order, .NET and SQL Server usage, and when to use each name.
UUID Alternatives: ULID, NanoID, CUID, and Short UUID Compared
Compare UUID alternatives like ULID, NanoID, CUID, and short UUIDs. Learn when to use each and their trade-offs for unique ID generation.
UUID as Database Primary Key: v4 vs v7 Best Practices
Should you use UUIDs as primary keys? Compare UUID v4 vs v7, PostgreSQL and MySQL storage, index performance, migration patterns, and hybrid key designs.
Frequently Asked Questions
What is a UUID?
What is a UUID v4?
When should I use UUID v4 instead of UUID v7?
What's the difference between UUID versions (v1, v3, v4, v5, v6, v7)?
Are these UUIDs truly unique?
Is this tool free to use?
Can I generate UUIDs in bulk?
When should I use UUID v3?
When should I use UUID v6?
Do you have a UUID API?
When should I use UUID v5?
When should I use UUID v7?
How do I decode or parse a UUID?
Can I extract the timestamp from a UUID?
How do I validate a UUID?
Related Tools
GUID Generator
GUID strings for .NET, Windows, SQL Server, and cross-platform UUID use.
ULID Generator
Sortable, compact 26-character identifiers with embedded timestamps.
Nano ID Generator
Tiny, URL-safe, customizable unique IDs. 21 chars by default.
CUID2 Generator
Collision-resistant IDs optimized for horizontal scaling and security.
UUID v7 Generator
Time-ordered UUIDs ideal for database primary keys and event streams.
More Developer Tools
Namso Gen
namso.io
Random IBAN
randomiban.co
Random IMEI
randomimei.com
Random MAC
randommac.com
Password Gen
password-generator.co
Lorem Ipsum
makelorem.com
JSON Format
jsonformat.co
Hex to ASCII
hextoascii.co
Base64
base64decode.co
Hash Gen
hashgenerator.co
Char Counter
charcounter.io
QR Code
makeqrcode.io
URL Encode
urlencode.co
Morse Code
decodemorse.com
Binary Text
texttobinary.io
HTML Entities
htmlentities.io
Age Calc
calculateage.io
Compound Calc
compoundcalculator.io