How to use the uuid generator
- Choose how many UUIDs you need and which version.
- Tick the format options: uppercase, hyphens or braces.
- Press Copy or Download .txt.
What is a UUID?
A UUID (universally unique identifier), called a GUID on Microsoft platforms, is a 128-bit value written as 32 hexadecimal digits in five groups, for example 3f2b8c1e-9d4a-4f6b-a1c7-5e8d2b9f0a34. Any computer can create one without checking with a central server, and the chance of two matching is so small that it can be ignored in practice.
Version 4 or version 7?
| Version 4 | Version 7 | |
|---|---|---|
| Made from | 122 random bits | A millisecond timestamp followed by random bits |
| Sorts by creation time | No | Yes |
| Best for | Tokens, file names, general identifiers | Database primary keys |
| Reveals when it was created | No | Yes |
Version 7 is the newer format. Because new values always sort after older ones, database indexes stay compact and inserts are faster than with fully random keys. Choose version 4 when you do not want the creation time to be visible.
How unlikely is a collision?
There are about 5.3 × 10³⁶ possible version 4 UUIDs. You would need to generate roughly a billion every second for 85 years to reach a 50% chance of a single duplicate.
Common formats
- Standard:
3f2b8c1e-9d4a-4f6b-a1c7-5e8d2b9f0a34 - No hyphens:
3f2b8c1e9d4a4f6ba1c75e8d2b9f0a34, common in URLs and file names - Braces:
{3F2B8C1E-9D4A-4F6B-A1C7-5E8D2B9F0A34}, used by the Windows registry and .NET