UUID Generator

Generate random version 4 or time-ordered version 7 UUIDs in bulk, with uppercase, no-hyphen and brace options. Free, in your browser.

About UUID Generator

The UUID Generator creates unique IDs for databases, tests and APIs, one at a time or in bulk, using secure random values.

Version 4 or version 7?

Version 4 is fully random: use it when you just need a unique ID. Version 7 starts with a timestamp, so IDs sort by creation time, which keeps database indexes fast.

Formats

Uppercase, no hyphens for compact keys, or braces for Microsoft-style GUIDs.

How unlikely is a duplicate?

A version 4 UUID has 122 random bits, about 5.3 x 10^36 possible values. A collision is practically impossible.

Storage tip

A UUID is 16 bytes, but 36 characters as text. Use your database's native UUID type where it has one.

Private

IDs are generated in your browser and not stored anywhere.

UUID structure

A UUID is 128 bits written as 32 hex digits in five groups: 8-4-4-4-12. The first digit of the third group shows the version, such as 4 or 7.

When not to use them

UUIDs are long and hard to read out, so they are a poor choice for order numbers people type or say on the phone.

How to use UUID Generator

  1. Choose the version: 4 (random) or 7 (time-ordered).
  2. Enter how many UUIDs you need, from 1 to 1,000.
  3. Pick formatting options such as uppercase, no hyphens or braces.
  4. Press Generate, then copy or download the list.

Help & FAQ

What is the difference between UUID v4 and v7?

Version 4 is completely random. Version 7 starts with a timestamp, so the values sort in the order they were created while staying unique.

Can two UUIDs ever collide?

The chance is so small that it is considered negligible. Random v4 UUIDs have 122 random bits.

Are the UUIDs generated securely?

They use your device's cryptographic random number generator rather than a simple pseudo-random function.

Is a UUID the same as a GUID?

Yes. GUID is the name used mainly in Microsoft environments for the same 128-bit identifier.

Can we use UUIDs as primary keys?

Yes. Version 7 is friendlier to indexes than version 4.

Do you store the IDs we generate?

No. They are made and are not sent anywhere.

How many UUIDs can we make at once?

From 1 to 1,000 in a single run, which you can copy or download as a list.

Are UUIDs safe to use as security tokens?

No. They offer practical uniqueness, not secrecy. Use a proper random token generator for secrets.

How can we tell if a UUID is version 4 or version 7?

Look at the first digit of the third group. A 4 means version 4 and a 7 means version 7.

Does a UUID v7 reveal when it was created?

It encodes a timestamp with millisecond precision in its first 48 bits, which usually shows approximately when it was generated. Use v4 if you do not want a time to be visible.

How many UUIDs can we generate before a duplicate is likely?

With version 4 you would need roughly 2.7 quintillion UUIDs for a 50% chance of one repeat, so duplicates are not a practical concern.

Which format should we choose for our database?

If the database has a UUID column type, insert the standard hyphenated form and let it store 16 bytes. Use the no-hyphen form for compact text keys and braces only where a Microsoft-style GUID is expected.

Does changing uppercase or hyphens change the UUID?

No. Formatting changes only how the same 128-bit value is written.

Can we use a UUID as a hard-to-guess link token?

A random v4 UUID can be hard to guess, but UUIDs are designed to be unique, not to be managed as secrets, and v7 contains a timestamp. For access tokens use a purpose-built secret generator with expiry and proper storage.

More in Developer Tools

See all 39 in Developer Tools