This UUID generator creates random version 4 UUIDs, also called GUIDs, for databases, APIs, test data and software. Generate one or up to 1,000 bulk UUIDs at a time using your browser's cryptographically secure random number generator. Choose uppercase, remove the hyphens or wrap them in braces to match the format your system expects.
How do I use the UUID generator?
- Choose how many you need.
- Pick the format options: uppercase, no hyphens or braces.
- Copy the list.

What is a UUID?
A UUID (Universally Unique Identifier) is a 128-bit number written as 32 hexadecimal characters in five groups, like this:
3f2b8c1e-9a4d-4e7b-b6a1-0c5d2e8f7a90
Microsoft calls the same thing a GUID (Globally Unique Identifier). The two names mean the same format.

Why UUID v4?
There are several UUID versions. Version 4 is built almost entirely from random bits, so it does not reveal anything about the computer or time it was made on. That makes it the most common choice for IDs in web apps.
| Version | Based on | Notes |
|---|---|---|
| v1 | Time and device address | Can reveal when and where it was made |
| v4 | Random numbers | Most widely used, no hidden information |
| v7 | Time plus random | Newer; sorts by creation time |
Can two UUIDs be the same?
In theory yes, in practice no. A random UUID v4 has 122 random bits. You would need to generate around a billion UUIDs every second for about 85 years before the chance of a single duplicate reached 50%. For real systems, treat them as unique.
Using UUIDs in code
Modern browsers and Node.js can make a UUID with crypto.randomUUID(). In Python, use uuid.uuid4(). In PHP 8 and later, libraries such as ramsey/uuid are common. The generator here is handy when you need IDs without writing code, for example to fill a spreadsheet, seed a test database or label files by hand. Copy the list and paste it straight into your tool of choice.
Format options
- Uppercase: some systems, especially on Windows, show GUIDs in capitals.
- No hyphens: a 32-character string, handy for file names or compact storage.
- Braces: {3f2b8c1e-...} is the classic GUID style in Microsoft tools and registry keys.
Storing UUIDs in a database
Most databases have a native type for UUIDs, such as UUID in PostgreSQL or UNIQUEIDENTIFIER in SQL Server. MySQL users often store them as BINARY(16) to save space, or as CHAR(36) for readability. Random v4 values spread inserts across an index, which can slow very large tables. If insert speed matters, consider time-ordered v7 values generated by your application.
When to use UUIDs
- Database primary keys that must be unique across servers.
- Public IDs in URLs, so people cannot guess the next record by counting.
- File names for uploads to avoid clashes.
- Test data and sample records.
Plain auto-increment numbers are smaller and faster for internal tables, so choose the right tool for each case.
Related developer tools
For random secrets and API keys, use the password generator. To create hashes of text, try the hash generator. Format test data with the JSON formatter, and generate random numbers in a range with the random number generator.
