The UUID generator creates universally unique identifiers, the 36-character IDs such as 3f2b8c1e-9a4d-4e7b-b0c2-5d61f8a9e374 used as database keys, file names, API request IDs and test data. Pick version 4 for fully random IDs or version 7 for IDs that sort by the time they were made, choose how many you want, from 1 to 1,000, and copy or download them. Everything is generated on your device with the browser’s cryptographically secure random number generator.
How to use the UUID generator
- Choose the version: v4 (random) or v7 (time-ordered).
- Pick how many UUIDs to make.
- Choose the format: plain, in quotes, in braces like a Microsoft GUID, or as a JSON array. Tick the boxes for capital letters or no hyphens.
- Click Generate for a new set, then copy or download them.
- To check a UUID, paste it into the check box to see its version, variant and, for v7, when it was made.
What a UUID looks like
A UUID is 128 bits, written as 32 hexadecimal characters in five groups: 8-4-4-4-12. The first character of the third group is the version, and the first character of the fourth group shows the variant, which is 8, 9, a or b for standard UUIDs. So in xxxxxxxx-xxxx-4xxx-bxxx-xxxxxxxxxxxx, the 4 marks a version 4 UUID.
Version 4 or version 7?
| Version 4 | Version 7 | |
|---|---|---|
| Made from | 122 random bits | 48-bit timestamp + 74 random bits |
| Sort order | Random | By creation time |
| Best for | Tokens, IDs that shouldn’t reveal timing | Database primary keys, logs, events |
| Reveals creation time | No | Yes, to the millisecond |
Version 7 was standardized in RFC 9562 in 2024. Because new IDs are always larger than older ones, databases can add them to the end of an index instead of scattering them, which keeps inserts fast in tables with millions of rows.
How unique is a UUID?
A version 4 UUID has 122 random bits, or about 5.3 × 10³⁶ possibilities. If you generated a billion UUIDs every second for a hundred years, the chance of ever making the same one twice would still be about one in a billion. That’s why systems can create IDs independently, on different servers or offline devices, without checking with each other.
Formats for different languages
- Plain, lower case: the standard form, used by most databases and APIs.
- Braces and capitals: the Microsoft GUID style, as in {3F2B8C1E-9A4D-4E7B-B0C2-5D61F8A9E374}.
- No hyphens: 32 characters, handy for file names and some storage systems.
- Quoted or JSON array: ready to paste into code, test fixtures or seed files.
Generating UUIDs in code
Most languages can make a v4 UUID directly: crypto.randomUUID() in JavaScript, uuid.uuid4() in Python, UUID.randomUUID() in Java and Guid.NewGuid() in C#. Support for version 7 is newer, so this page is a quick way to get v7 values for testing.
Checking a UUID
Paste any UUID, with or without hyphens, braces or quotes, and the checker tells you its version and variant. For version 7, it also decodes the timestamp, showing exactly when the ID was created. The special nil UUID, all zeros, and max UUID, all f’s, are recognized too.
When not to use UUIDs
UUIDs aren’t secret. Don’t use them alone as passwords or as unguessable links to private data unless they’re version 4 and your system also checks permissions. For short, human-friendly codes such as order numbers, a shorter format is usually easier for people to read out and type.
UUIDs as database keys
Many apps use UUIDs instead of auto-increment numbers for primary keys. They can be created anywhere, by the app, by a phone offline or by different servers, without asking the database for the next number, and they don’t reveal how many records exist. The trade-off is size: a UUID takes 16 bytes as binary or 36 characters as text, compared with 4 or 8 bytes for an integer. Store UUIDs in a native UUID column where your database has one, such as PostgreSQL’s uuid type, rather than as text.
Other UUID versions
- Version 1 uses a timestamp and the computer’s network address, which can reveal when and where it was made.
- Version 3 and 5 are made by hashing a name, so the same name always gives the same UUID.
- Version 6 reorders version 1 so it sorts by time.
- Version 8 is reserved for custom formats.
Versions 4 and 7 cover almost every everyday use, which is why this generator offers them.
Bulk generation
Need IDs for a spreadsheet, a test database or a batch of records? Choose up to 1,000 at a time and download them as a text file with one per line, or as JSON to paste into code. Click Generate again for a completely new set.
Make test data with the fake data generator, or hash a value with the SHA-256 hash generator.
What next
Use this often? Add UUID to your Home screen.
Frequently asked questions
How does the UUID generator make UUIDs?
It uses your browser’s secure random number generator and sets the version and variant bits as RFC 9562 requires.
What is the difference between a UUID and a GUID?
They’re the same thing. GUID is Microsoft’s name for a UUID, often written in capitals inside braces.
Should I use UUID v4 or v7?
Use v7 for database keys and anything sorted by time. Use v4 when IDs shouldn’t reveal when they were created.
Can two UUIDs be the same?
In theory, yes, but the chance is so small it’s ignored in practice: a v4 UUID has about 5.3 × 10³⁶ possible values.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.