
How to use
- Set how many values you need, from 1 to 50.
- Click GUID to generate random UUID v4 values, or SHORT to generate them as 22-character short GUIDs.
- Click a value to copy it, or use the shuffle button next to it to switch that value between the GUID and short form.
- To convert existing IDs, paste one GUID or short GUID per line into the converter and choose the direction.
UUID vs GUID
A UUID (universally unique identifier) is a 128-bit value written as 32 hexadecimal digits in five groups, such as 6f9619ff-8b86-d011-b42d-00c04fc964ff. GUID (globally unique identifier) is Microsoft's name for the same thing. The format is identical; Windows tools often print GUIDs in uppercase or inside braces, and this generator accepts both styles in the converter.
UUID versions
The version is the first digit of the third group. This tool generates version 4, the random kind, using your browser's crypto.randomUUID(), which draws from a cryptographically secure random source.
| Version | Built from | Typical use |
|---|---|---|
| v1 | Timestamp and device MAC address | Legacy systems; reveals when and where it was made |
| v4 | 122 random bits | General-purpose IDs, API keys for records, test data |
| v5 | SHA-1 hash of a namespace and a name | The same input always gives the same UUID |
| v7 | Unix time in milliseconds plus random bits | Database primary keys that sort by creation time (RFC 9562) |
Can two UUID v4 values collide?
In practice, no. A v4 UUID has 122 random bits, about 5.3 × 10^36 possible values. You would need to generate roughly 2.7 × 10^18 UUIDs before the chance of a single duplicate reaches 50%, which is about a billion per second for 85 years. Problems come from broken random number generators, not from the format.
What is a short GUID?
A short GUID stores the same 16 bytes in URL-safe Base64 without padding, giving 22 characters instead of 36. It is handy in URLs and file names. For example, 6f9619ff-8b86-d011-b42d-00c04fc964ff becomes b5YZ_4uG0BG0LQDAT8lk_w and converts back exactly.
The bytes are taken in the order they are written. .NET's Guid.ToByteArray() stores the first three groups in reverse byte order, so Base64 made from it in C# will differ from this tool for the same GUID.
Generating UUIDs in code
JavaScript: crypto.randomUUID(). Python: import uuid; uuid.uuid4(). C#: Guid.NewGuid(). Java: UUID.randomUUID(). PostgreSQL 13 and later: SELECT gen_random_uuid(). Use this page when you need a few values quickly for config files, fixtures or manual testing.
Frequently asked questions
Are these UUIDs safe to use in production?
Yes. They are standard version 4 UUIDs from the browser's cryptographically secure generator, and they are created on your device, so no one else sees them.
Is a UUID the same as a GUID?
Yes. Both are 128-bit identifiers in the same 8-4-4-4-12 format. GUID is the term used in Microsoft products; UUID is the term used in the RFC and most other platforms.
Should I use UUIDs as database primary keys?
They work well when IDs are created in many places or must not be guessable. Random v4 values insert in random order, which can slow large B-tree indexes; UUID v7 keeps the uniqueness and sorts by time.
Are UUIDs case-sensitive?
No. The hex digits are the same value in upper or lower case. The standard recommends lowercase output, which is what this generator produces.