UUID Generator — Create random v4, time-ordered v7 and name-based v5 UUIDs in bulk.

Generate up to 1,000 UUIDs at a time using your browser’s secure random generator. Choose random v4, sortable v7 or name-based v5, format them as plain lines, a JSON array or a quoted SQL list, and paste any UUID to check its version and creation time. Nothing is sent to a server.

Generate UUIDs Generated in your browser
UUID generator tool for random, time-ordered and name-based UUIDs

Generate UUIDs

1 to 1,000

Your UUIDs

Check a UUID

The guide

UUID Generator Guide: Versions, Formats, and Collision Odds

Understand UUID versions, choose the right one, and use them safely in databases and apps.

A simple explanation

What is a UUID?

A UUID (universally unique identifier) is a 128-bit label written as 32 hexadecimal digits, like 123e4567-e89b-42d3-a456-426614174000. It lets separate systems create IDs on their own, without a central counter, and still be confident that no two IDs will ever be the same.

Developers use them as database keys, file names, session tokens, device IDs and correlation IDs in logs. This generator makes random (v4), time-ordered (v7) and name-based (v5) UUIDs in bulk, formats them as you need, and can check any UUID you paste. For related developer tasks, try the Binary to Decimal Converter and the Case Converter.

Common reasons to generate one

Why People Generate UUIDs

Database and API keys

Create primary keys, record IDs and idempotency keys that can be made offline and never collide.

Test data and fixtures

Fill spreadsheets, JSON files and seed scripts with realistic unique identifiers in one click.

Android and app development

Make device IDs, request IDs and file names, or compare the output against UUID.randomUUID() in Kotlin and Java.

Pick the right kind

UUID Versions Compared

VersionHow it is madeBest for
v1Time and a node (often a MAC address)Legacy systems. It can reveal when and where it was made.
v4122 random bitsGeneral use. Unpredictable and the most widely supported.
v5SHA-1 hash of a namespace and a nameThe same input must always give the same ID.
v7Millisecond timestamp plus random bitsDatabase keys. They sort by creation time and index well.
Nil / MaxAll zeros / all onesPlaceholders and special values.
Generate in a few steps

How to Use the UUID Generator

  1. Choose a type. Use v4 if you are unsure, v7 if you want IDs that sort by time.
  2. Set how many you need, up to 1,000, and pick an output style such as a JSON array or a quoted list for SQL.
  3. Optionally switch on uppercase, remove hyphens, add braces or add a urn:uuid: prefix.
  4. Press Copy all or Download .txt. For version 5, enter a namespace and a name and the same input will always give the same UUID.
  5. To check an existing UUID, paste it into Check a UUID to see its version, variant and, for v1 and v7, when it was created.
For developers

Generate UUIDs in Your Own Code

Kotlin / Java: UUID.randomUUID().toString() JavaScript: crypto.randomUUID() Python: str(uuid.uuid4()) # import uuid PostgreSQL: SELECT gen_random_uuid(); C#: Guid.NewGuid().ToString()

This page uses the browser’s cryptographically secure random generator for v4 and v7, the same source that crypto.randomUUID() uses. Version 7 is defined in RFC 9562, which replaced RFC 4122 in 2024.

How unique is unique?

Collisions: What Are the Odds?

A v4 UUID has 122 random bits. You would need to create around 2.7 quintillion of them (2.7 × 1018) before there was even a 50% chance of one duplicate. For practical purposes, collisions do not happen unless the random source is broken.

Uniqueness is not secrecy. A UUID is fine as an identifier, but for passwords, API secrets or password-reset tokens, use a purpose-built token generator with enough length and a security review.

Better results

Simple Tips for Using UUIDs Well

  • Prefer v7 for database primary keys. Time-ordered keys keep indexes compact and inserts fast.
  • Store UUIDs in a native uuid or 16-byte binary column when your database has one, not as 36-character text.
  • Treat the formatted text as case-insensitive. Lowercase with hyphens is the standard form.
  • Use v5 when you need a stable ID from a known name, such as a URL or an email address, but remember that anyone can compute it.
Good to know

Limitations and Privacy

Privacy

UUIDs are generated in your browser and are never sent to our server. Only your chosen type, count and format are remembered on your device.

Limitations

Version 1, 3 and 6 are not generated here, though version 1 can be inspected. Version 7 values created in a very short burst are kept in order, but ordering across different browsers or machines depends on their clocks.

Common questions

UUID Generator FAQ

What is a UUID?

A UUID is a 128-bit identifier written as 32 hexadecimal digits in groups of 8-4-4-4-12. It is designed so that anyone can generate one without coordination and be almost certain that it is unique.

What is the difference between a UUID and a GUID?

They are the same thing. GUID is the name Microsoft uses, and UUID is the name used in the standards. Both are 128-bit values in the same format.

Which UUID version should I use?

Use version 4 for general-purpose random IDs. Use version 7 for database keys, because its timestamp prefix makes IDs sort by creation time. Use version 5 only when you need the same input to always give the same ID.

Can two UUIDs be the same?

In theory yes, in practice no. With 122 random bits in a v4 UUID, you would need billions of billions of IDs for a realistic chance of a duplicate, provided the random source is good.

Are these UUIDs safe to use as secrets?

No. UUIDs are meant to be unique, not secret. Use a dedicated cryptographic token generator for passwords, API keys and reset links.

Are the UUIDs generated securely?

Yes. Versions 4 and 7 draw their random bits from the browser’s cryptographically secure generator, crypto.getRandomValues, which is what crypto.randomUUID() uses too.

How does version 5 work?

It hashes a namespace UUID and a name together with SHA-1 and formats the result as a UUID. The same namespace and name always give the same UUID, which makes it good for stable IDs. Anyone who knows the inputs can recompute it.

Why do version 7 UUIDs start with similar digits?

The first 48 bits are the Unix time in milliseconds, so UUIDs made around the same moment begin the same way. That is what makes them sort by time. The rest is random, with a counter that keeps them in order within a millisecond.

Does the tool store my UUIDs?

No. They are created in your browser and never leave your device. Only your type, count and format choices are remembered.

Can I link to a specific setup?

Yes. Add ?type=v7&count=10 to the page address. Types are v4, v7, v5, nil and max.

From people using this tool

Reviews

Loading reviews…
Keep going

More tools in the box

The homepage features dozens more free tools that don't require an API key.

Suggest a tool