UUID Generator
Generate UUID
Pick a version and format, enter how many you need and press "Generate". Every UUID has its own copy button, and you can copy them all as a JSON array or a comma list for SQL, or download a file. UUIDs are created with your browser’s cryptographic random generator and never sent to a server.
How to use the UUID generator
- Choose a version: "v4 (random)" is the all-purpose choice; pick "v7 (time-ordered)" for database keys or IDs that should sort by creation time.
- Choose a style (optional): "Use uppercase", "Remove hyphens" (32 characters) or "Wrap in braces { }" (the GUID style common on Windows/.NET).
- Set the quantity: 1 to 100 at a time.
- Choose the output format: "One per line", "JSON array" or "Comma-separated, quoted" (ready for an SQL
IN (...)). It applies to "Copy all" and downloads. - Press "Generate" (or Enter in the quantity field), then copy a UUID with the icon next to it, or use "Copy all" or download.
What is a UUID?
A UUID (Universally Unique Identifier) is a 128-bit identifier, usually written as 32 hexadecimal characters in five groups 8-4-4-4-12 – 36 characters in total, for example:
550e8400-e29b-41d4-a716-446655440000
- The first character of the third group is the version:
4above means v4. - The first character of the fourth group is the variant: always
8,9,aorbfor standard UUIDs.
No central authority hands them out – any computer can create one, and it will practically never collide with anyone else’s. That makes UUIDs popular in distributed systems, databases and APIs.
UUID versions compared
| Version | How it is made | Good for |
|---|---|---|
| v1 | Timestamp + network card MAC address | Legacy systems; reveals when and where it was made |
| v3 / v5 | Hash (MD5 / SHA-1) of a namespace + name | The same input always gives the same UUID, e.g. a fixed ID from a URL |
| v4 | 122 random bits | The default when you just need a unique value |
| v7 | Millisecond timestamp + random bits | IDs sorted by creation time, great as database keys (defined in RFC 9562, 2024) |
The first 12 hex characters of a v7 UUID are the Unix time in milliseconds: convert them with the hex to decimal converter, then read the date with the Unix timestamp converter.
Common uses
- Database primary keys: your code can create the ID before talking to the database; v7 grows over time, so indexes stay faster than with v4.
- API request and trace IDs: one UUID per request makes logs easy to follow.
- File names and storage keys: no overwriting uploads with the same name.
- Distributed systems: many servers can create IDs independently without clashes.
Frequently asked questions
Should I use v4 or v7?
Use v4 when you simply need a unique value. Use v7 for database primary keys or IDs that should sort by creation time: it starts with a timestamp, so new rows land at the end and indexes work more efficiently. Note that v7 reveals roughly when it was created.
Can UUIDs collide?
In theory yes, but the odds are negligible. A v4 UUID has 122 random bits: even generating a billion per second, it would take about 86 years to reach a 50% chance of a single duplicate.
Can I use a UUID as a database primary key?
Yes, it is very common. You can create IDs in your application and merge databases without clashes; the trade-off is size (16 bytes vs. a small integer). Random v4 keys can slow down indexes, so prefer v7.
Are UUID and GUID the same?
Yes. GUID (Globally Unique Identifier) is Microsoft’s name for the same format. Windows and .NET often write it in uppercase with braces, like {550E8400-E29B-41D4-A716-446655440000} – tick "Use uppercase" and "Wrap in braces { }" to get that style.
Are the UUIDs I generate stored anywhere?
No. They are created in your browser with cryptographic randomness (crypto.getRandomValues), never sent to a server and never stored.
- Unix timestamp converter: convert timestamps and dates.
- Password generator: create strong random passwords.
- Random number generator: random numbers in any range.