UUID Generator
Generate one or many version 4 UUIDs instantly, copy them or download a TXT list, and validate any UUID with version detection.
Validate a UUID
Generate UUIDs for free, instantly. A UUID (Universally Unique Identifier, also called a GUID in the Microsoft world) is a 128-bit value written as 32 hexadecimal characters, such as 3f2b8c1e-9d4a-4f6b-a2c7-5e8d1b0f9a34. It identifies records, files, orders or messages without relying on a central counter — every system can create its own, independently, with a practically zero chance of a repeat. With this tool you can create one or many version 4 UUIDs for applications, databases, APIs and distributed systems, then copy the results or download the full list as a TXT file.
The UUIDs are generated in your browser by the system's cryptographically secure generator (crypto.randomUUID) — the same source professional libraries use. No identifier is sent to or logged on a server. Below the generator there's a validator: paste any UUID to check that its format is correct and find out its version (1 to 8) and variant.
How to use
- Enter how many UUIDs you need (1 to 1,000).
- Pick the format: with or without hyphens, uppercase or wrapped in braces, if your system requires it.
- Click "Generate UUIDs", then copy a single item, copy them all at once or download the list as .txt.
- To check an existing identifier, paste it into the validation field and see the detected version.
Practical example
Say you need to seed a test table with 50 customers and the primary key is a UUID column. Enter 50, generate, and click "Download .txt": each line of the file is an identifier ready to drop into an INSERT statement or an import spreadsheet. If your database expects the compact form, untick the hyphens option before downloading — the list is reformatted instantly without generating new values.
Frequently asked questions
What is a version 4 UUID?
It's a UUID made of 122 random bits plus 6 fixed bits that mark the version (the 4 at the start of the third group) and the variant (8, 9, a or b at the start of the fourth group). Because it doesn't depend on date, time or network address, it's the most widely used version for creating identifiers that reveal nothing about who made them.
Can two generated UUIDs ever be the same?
In practice, no. There are about 5.3 × 10³⁶ possible v4 UUIDs. You'd need to generate something on the order of 10¹⁸ identifiers — a billion per second for decades — to have a meaningful chance of a collision, as long as the generator is cryptographically secure, like the one used here.
What's the difference between a UUID and a GUID?
None in the format: GUID (Globally Unique Identifier) is Microsoft's name for the same standard. In .NET and SQL Server it's common to write GUIDs in uppercase and wrapped in braces, which is why the tool offers those formatting options.
Can I use a UUID as a database primary key?
Yes, and it's common in distributed systems, since each service can create its own ID without asking the database. The downside of v4 is that it's random and larger than an integer, which can fragment indexes on very large tables. In those cases many projects prefer UUID v7, which starts with a timestamp and keeps rows in order.
How does the validator detect a UUID's version?
The version is stored in the 13th hexadecimal digit (the first digit of the third group) and the variant in the leading bits of the 17th digit. The validator reads those digits, reports the version (1 to 8) and also flags the special cases: the nil UUID, with every digit zero, and the max UUID, with every digit f.
Is a UUID safe to use as a token or password?
A v4 UUID from a cryptographic source is hard to guess, but it was designed as an identifier, not a secret. For session tokens, password-reset links or API keys, prefer higher-entropy values generated specifically for that purpose and with an expiry.