100% Free · Runs In Your Browser

UUID Generator

Generate random UUIDs (also called GUIDs) in version 4 or the newer time-ordered version 7. Make one or up to 1,000 at a time, copy them in the format your code expects, and check any UUID you already have.

UUID generator

Format

Version: — Count: — Random bits each: —

Check a UUID

Paste a value to see its version and format.

Generated locally in your browser. Your UUIDs are never sent to our server.

What Is a UUID?

A UUID (universally unique identifier) is a 128-bit number used to label a record, file, user or request without needing a central counter. It is normally written as 32 hexadecimal digits in five groups, 8-4-4-4-12, and the 13th digit shows the version. Because any machine can create one on its own and the chance of a repeat is tiny, UUIDs are common as database keys and in APIs.

GUID is Microsoft's name for the same thing. A GUID from .NET or SQL Server is a UUID, so this page works for both.

UUID v4 vs UUID v7

v4v7
What it containsRandom bits (122 of 128)A millisecond timestamp, then random bits
Sorts by creation timeNoYes, roughly
Reveals when it was madeNoYes, anyone can read the timestamp
Good forGeneral IDs, test dataDatabase keys and logs you want in order

A random v4 value lands anywhere in a database index, while v7 values arrive in order. Many teams choose v7 for primary keys for that reason. The cost is that a v7 UUID shows when it was created, so do not use it where that timestamp should stay private. UUID v7 was added in RFC 9562, published in 2024, which replaced the older RFC 4122.

How This Generator Works

Version 4 values come from the browser's crypto.randomUUID(), or from crypto.getRandomValues() where that function is missing. Version 7 values put the current Unix time in milliseconds in the first 48 bits and fill the rest with secure random bits. When you make several in the same millisecond, a small counter keeps them in order. Nothing is sent anywhere.

How Unique Is a UUID?

A v4 UUID has 122 random bits, which is about 5.3 × 1036 possible values. By the birthday estimate, you would need about 2.7 quintillion UUIDs before there was a 50 percent chance that any two matched. For ordinary applications, a repeat caused by chance is not a practical worry. A broken random number generator is the real risk, which is why the source of randomness matters.

A UUID Is an ID, Not a Secret

Do not use a UUID as a password, API key or login token. The standard warns against treating UUIDs as security capabilities, and a v7 value even contains its creation time. For passwords use the Strong Password Generator. For API secrets, webhook secrets and hex or Base64URL tokens use the Developer Credential Generator. If you want to see how many bits a value really has, try the Password Entropy Calculator.

Generate a UUID in Your Own Code

Most languages have this built in:

// JavaScript and Node.js (14.17+)
crypto.randomUUID()

# Python
import uuid
str(uuid.uuid4())

// Java
java.util.UUID.randomUUID().toString()

// C# / .NET
Guid.NewGuid().ToString()

-- SQL Server
SELECT NEWID();

-- PostgreSQL (13+)
SELECT gen_random_uuid();

Check your database's documentation for v7 support, because it varies by product and version. The generator above is handy for test data, fixtures and quick one-off IDs.

Frequently Asked Questions

A UUID (universally unique identifier) is a 128-bit value, usually written as 32 hexadecimal digits in five groups separated by hyphens, such as 550e8400-e29b-41d4-a716-446655440000. Software uses it as an ID that can be created anywhere without asking a central server.

Yes. GUID is Microsoft's name for the same 128-bit identifier. Tools in the .NET and Windows world often show it in uppercase, sometimes with curly braces, which is why this generator has options for both.

Use v4 when you only need a random ID. Use v7 when IDs will be stored in a database index or sorted, because it starts with a timestamp, so new values arrive roughly in order. Both are valid UUIDs and can be mixed in the same column.

In theory yes, in practice almost never. A v4 UUID has 122 random bits, so you would need to create roughly 2.7 quintillion of them before the chance of any collision reached 50 percent. That holds only when the random numbers come from a good source, which is what this tool uses.

No. A UUID is an identifier, and the UUID standard itself warns against treating one as a secret or a security capability. For passwords use the Strong Password Generator, and for API secrets and tokens use the Developer Credential Generator.

No. They are generated in your browser with the Web Crypto API. Nothing is uploaded, logged or stored.

Paste it into the checker above. It tells you whether the format is valid, which version it is and, for v7, the date and time stored inside it.

Explore All Free Tools

Password Generators

Account Password Generators

Security Tools

Guides

More Free Tools

Site