UUID Generator

Random version 4 UUIDs, as defined in RFC 9562, made in your browser. Generate up to 50 at a time.

Click Generate to start

About UUID Version 4

A Version 4 UUID is a universally unique identifier that is generated using random numbers. The probability of a collision (generating the same UUID twice) is virtually zero.

Your data stays in your browser

This tool runs on JavaScript inside your browser. Nothing you add here is uploaded to our server, so it works for confidential data too. How we handle data

  • No upload
  • Processed on your device
  • No account

What is a UUID?

A 128-bit identifier written as 32 hex characters in five groups, like 3f2b8c1e-9a4d-4e7b-b1c2-7d5e6f8a9b0c. Version 4 UUIDs are random, which means any system can create IDs on its own without checking a central database for clashes. That's why they're everywhere: database primary keys, file names, API request IDs, session tokens and test data.

Is a UUID the same as a GUID?

Yes. GUID is Microsoft's name for the same thing. A v4 UUID from here will work anywhere a GUID is expected, in .NET, SQL Server or the Windows registry.

Can two UUIDs ever be the same?

In theory, yes. In practice, no. There are 122 random bits in a v4 UUID. You'd need to generate about a billion UUIDs every second for roughly 85 years before you had a 50/50 chance of a single duplicate. This generator uses your browser's cryptographic random source (crypto.randomUUID), so the IDs are properly unpredictable.

Building test fixtures? Format the JSON with the JSON Formatter, encode values with the Base64 Encoder, or make a test login with the Password Generator. Need random test values in a range? The Random Number Generator does that.

Questions people ask

How do I generate a UUID online?

Click Generate. Set "How many?" if you need more than one, then copy them.

What version of UUID does this create?

Version 4, the random kind. It's the most widely used version.

Is a GUID the same as a UUID?

Yes, GUID is just Microsoft's name for it. They use the same format.

Can UUIDs collide?

The chance is so small it's treated as zero. You'd need billions of them per second for decades to expect a single clash.

Are these UUIDs generated securely?

Yes. They come from the browser's cryptographic random generator and never touch our server.

How many UUIDs can I generate at once?

Up to 50 per click. Click again for another batch.

Should I use UUIDs as database primary keys?

They're great when records are created in many places at once. On very large tables, random UUIDs can slow inserts slightly compared with sequential IDs.

Related tools