UUID Generator

Generate UUID v4 and time-ordered v7 in bulk, and check any UUID's version

Version
122 random bits. The everyday choice for IDs, tokens and keys.
1 to 1,000
UUID v4
โ€ฆ
Generated in your browser with its cryptographic random generator.
Check a UUID

Runs entirely in your browser. Nothing you type or upload is sent to us or stored.

Results are for general guidance. Please check anything important before relying on it. Terms of use

How to Use

  1. Pick the version: v4 (random) for general IDs, or v7 (time-ordered) for database primary keys.
  2. Enter how many you need, from 1 to 1000.
  3. Turn on UPPERCASE or turn off Hyphens if your system needs that format. The list updates straight away.
  4. Click Generate for a fresh batch, then copy the first one, copy all, or download .txt.
  5. To check an existing UUID, paste it into Check a UUID to see its version, variant and, for v1/v6/v7, when it was created.

What is a UUID?

A UUID (Universally Unique Identifier), called a GUID in the Microsoft world, is a 128-bit ID written as 32 hexadecimal digits in five groups: 8-4-4-4-12. Any program can create one on its own, without asking a central server, and still be confident that nobody else will ever create the same value. That's why UUIDs suit database keys, order and transaction references, file names, API request IDs and records synced between a mobile app and a server.

The format is defined by RFC 9562 (May 2024), which replaced the older RFC 4122 and added versions 6, 7 and 8.

Reading a UUID

017f22e2-79b0-7cc3-98c4-dc0c0c07398f
version = 7 (first digit of group 3)
variant = 9 (first digit of group 4: 8, 9, a or b means RFC 9562)

The first digit of the third group is the version. The first digit of the fourth group shows the variant, and for standard UUIDs it's always 8, 9, a or b. The checker on this page reads both for you.

Version 4 vs version 7

UUID v4UUID v7
Built from122 random bits48-bit Unix time in milliseconds + 74 random/counter bits
Sort orderRandomRoughly by creation time
Reveals creation time?NoYes, to the millisecond
Best forTokens, public IDs, general useDatabase primary keys, logs, event streams

Why use v7 for databases? Most databases store primary keys in a B-tree index. Random v4 keys land all over the index, so each insert touches a different page. Time-ordered v7 keys are appended near the end, which keeps the index compact and inserts fast. PostgreSQL 18 (September 2025) added a built-in uuidv7() function, and .NET 9 added Guid.CreateVersion7().

The v7 layout in the example above: 017f22e279b0 is the timestamp 1,645,557,742,000 ms, which is 22 February 2022, 19:22:22 UTC (23 February, 00:52:22 IST). 7 is the version, and the rest is random apart from the variant bits. Paste it into the checker to see the date.

How this generator works

  • v4 uses your browser's crypto.randomUUID(), which draws on the operating system's cryptographically secure random generator.
  • v7 follows RFC 9562: the current time in the first 48 bits, then version and variant bits, with the remaining bits from crypto.getRandomValues(). When many UUIDs are made in the same millisecond, a 12-bit counter keeps each one larger than the previous, so a batch of 1000 is already in sorted order.
  • It all runs in your browser. No UUID is sent to or logged by any server.

Can two UUIDs ever be the same?

In theory yes, in practice no. A v4 UUID has 2122 possible values. By the birthday rule you'd need to generate about 2.7 ร— 1018 UUIDs (2.7 quintillion) before there's even a 50% chance of a single duplicate. That's a billion UUIDs every second for about 86 years. Bugs, such as copying the same value twice or a weak random generator, are a far bigger risk than chance.

Tips

  • Store UUIDs in a native uuid column (PostgreSQL) or as 16-byte binary, not as a 36-character string, to save space.
  • Don't use UUIDs as secrets or password-reset tokens. Use a purpose-built random token instead. v7 in particular exposes its creation time.
  • Uppercase and lowercase UUIDs are the same value. RFC 9562 recommends lowercase output.

Frequently Asked Questions

None in practice. GUID (Globally Unique Identifier) is Microsoft's name for the same 128-bit identifier. A GUID generated by .NET or SQL Server is a standard UUID, usually version 4.

v7 for database primary keys and anything you want sorted by creation time, because time-ordered keys keep database indexes compact and inserts fast. Use v4 when the ID must not reveal when it was created, such as public-facing IDs.

Yes, for all practical purposes. They use your browser's cryptographically secure random generator. With 122 random bits in v4, you would need to create about 2.7 quintillion UUIDs before reaching even a 50% chance of one duplicate.

Look at the first character of the third group. In 550e8400-e29b-41d4-a716-446655440000 it's 4, so it's a version 4 UUID. Paste any UUID into the 'Check a UUID' box to see its version, variant and, for time-based versions, the creation date.

Better not to. UUIDs are designed to be unique, not secret. Version 7 openly contains its creation time, and some older versions contain a machine's network address. For secrets, use a dedicated random token or a password generator.