UUID Generator

Make unique IDs (UUID v4 or v7) in your browser, one or a thousand at a time.

Use 4 if you are not sure. Use 7 for database keys that should sort by time.

1 to 1,000.

Some Microsoft tools write GUIDs this way.

Your UUID

48d04c86-6ca7-4374-a6ba-5680caab5f6b

Version 4: 122 random bits.

A version 4 UUID is made of 122 random bits.

Add this calculator to your website

Free to use on any site or blog. Paste this code where you want the calculator to appear. It stays up to date, needs no account, and keeps your visitors' numbers in their own browser.

Preview

How it works

A UUID is a 128-bit number written as 32 hex digits in five groups, like 3f2b8c1e-5a47-4d3b-9c60-1e7a2b9d4f10. It is made so that two people generating one at the same time will, for all practical purposes, never get the same value, with no central server to coordinate.

Version 4 fills 122 of the 128 bits with random numbers from your browser's secure random source. The other 6 bits mark the version and variant. Version 7 starts with the current time in milliseconds, followed by random bits, so IDs created later sort after earlier ones. That makes them friendlier to database indexes.

The IDs are made on your device and are not sent anywhere. UUID and GUID mean the same thing here: GUID is the name Microsoft uses.

Check it by hand: take 3f2b8c1e-5a47-4d3b-9c60-1e7a2b9d4f10. The groups have 8, 4, 4, 4 and 12 hex digits, which is 32 digits, and each digit is 4 bits, so 32 × 4 = 128 bits. The third group starts with 4, so it is version 4. The fourth group starts with 9, which is 1001 in binary, so its first two bits are 10, the standard variant. Version and variant use 4 + 2 = 6 bits, which leaves 128 − 6 = 122 random bits, and 2^122 is about 5.3 × 10^36 values. A version 7 ID holds a 48-bit time in milliseconds, and 2^48 milliseconds is about 8,900 years.

Version 4: 122 random bits + 4 version bits + 2 variant bits
Version 7: 48-bit Unix time (ms) + 74 bits of version, variant and random data

Reading a UUID

In 3f2b8c1e-5a47-4d3b-9c60-1e7a2b9d4f10 the first digit of the third group is 4, so it is version 4. The first digit of the fourth group (9) is 8, 9, a or b, which is the standard variant.

With 122 random bits there are about 5.3 × 10^36 possible version 4 values. You would need to make billions per second for decades before a repeat becomes likely.

Good to know

  • A UUID is an identifier, not a secret. Do not use one as a password or a security token that must be unguessable. Use a password generator for that.
  • Version 7 IDs reveal roughly when they were made. Use version 4 if that matters.
  • IDs made in the same millisecond share the same time prefix. The tool sorts a batch, but strict ordering across devices is not guaranteed.

Questions people ask

What is the difference between a UUID and a GUID?

None in practice. GUID is the name Microsoft uses for the same 128-bit identifier. Some Microsoft tools show it in curly braces and uppercase, which you can choose here.

Which version should I use?

Version 4 for general use. Version 7 if the IDs are database keys, because the time prefix keeps new rows together and makes sorting by creation easy.

Can two UUIDs be the same?

In theory yes, in practice no. Version 4 has about 5.3 × 10^36 possible values, so a repeat is extremely unlikely.

Are the UUIDs sent anywhere?

No. They are generated in your browser and not stored or logged.

How do I make many UUIDs at once?

Type a number up to 1,000 in "How many". They appear in a list that you can copy in one go.

How long is a UUID?

36 characters with the hyphens: 32 hex digits and 4 hyphens. Without the hyphens it is 32 characters.

How can I tell which version a UUID is?

Look at the first digit of the third group. In 3f2b8c1e-5a47-4d3b-9c60-1e7a2b9d4f10 it is 4, so it is version 4. A 7 in that place means version 7.

Part of the guide: Developer and design tools: QR codes, passwords, JSON, colors and timestamps

Formulas and text last checked on 14 October 2026. Everything is calculated in your browser, so nothing you enter is sent or stored. Spotted a mistake? Tell us and we will fix it.