UUID Generator — Random v4 and Time-Ordered v7 UUIDs in Bulk

Pick version 4 (random) or version 7 (time-ordered), choose how many you need and the format, and generate UUIDs in your browser, ready to copy.

Live demo · real result from this tool
Version

Press Generate to create a result.

Processed on your device — nothing is uploaded.

How to use the UUID generator

  1. Choose the Version: v4 (random) or v7 (time-ordered).
  2. Set How many UUIDs, from 1 to 1,000.
  3. Tick Uppercase, Wrap in braces, or untick Hyphens, to match the format your system expects.
  4. Press Generate and copy one UUID or the whole list.

What it does and when to use it

A UUID (universally unique identifier) is a 128-bit ID that any computer can create on its own, with no central counter, and still not clash with IDs made elsewhere. That makes UUIDs useful wherever separate systems, devices or services each need to make up their own keys.

Typical uses:

  • Primary keys for database rows, especially across several servers.
  • IDs for records created offline in a mobile app and synced later.
  • Request or correlation IDs in logs and distributed tracing.
  • File names that must never collide.
  • Test data and fixtures.

For shorter IDs, try the CUID Generator. For secrets, which must be unpredictable as well as unique, use the Strong Password Generator or the API Key Generator instead.

How it works

Both versions follow RFC 9562, the current UUID standard.

  • Version 4 fills 122 bits with random data from crypto.getRandomValues, the browser’s secure random source. The remaining 6 bits mark the version and variant. You can spot a v4 UUID by the 4 at the start of the third group, as in xxxxxxxx-xxxx-4xxx-….
  • Version 7 starts with a 48-bit timestamp in milliseconds, followed by 74 random bits. UUIDs made later sort after earlier ones. Within one batch, the tool makes sure every UUID is strictly larger than the one before, even when several are made in the same millisecond.

The format options only change how the 128 bits are written: lowercase or uppercase hex, with or without hyphens, with or without braces. Everything runs in your browser and nothing is stored.

Worked examples

Two random v4 UUIDs. With the defaults, the tool produces values like ab2c463e-73ff-43b7-8276-7e6feccaf8c6. Note the 4 at the start of the third group. The note under the list confirms Version 4: 122 random bits from crypto.getRandomValues (RFC 9562). Your values will be different every time, which is the point.

Two v7 UUIDs, uppercase in braces. The output looks like {01A1003F-5014-7688-A05E-196D4D24944C} followed by {01A1003F-5014-7688-A05E-196D4D25772F}. Both share the same timestamp prefix, the third group starts with 7, and the second sorts after the first. The note confirms This batch is in strictly increasing order.

Limits and tips

  • A v7 UUID shows roughly when it was made. Use v4 if that matters.
  • UUIDs are unique, not secret. Do not use them as passwords, tokens or keys.
  • Some systems want uppercase or braces, and others reject them. Check before you paste.

Frequently asked questions

Should I use UUID v4 or v7?
Use v4 when you just need a random, unguessable ID. Use v7 when IDs will be database keys or need to sort by creation time. A v7 UUID starts with a timestamp, so new rows are added at the end of an index instead of scattered through it.
Can two UUIDs ever be the same?
In theory, yes. In practice, it is extremely unlikely. A v4 UUID has 122 random bits, about 5.3 × 10^36 possible values. By the birthday rule, you would need to generate roughly 100 trillion of them before the chance of even one duplicate reached one in a billion.
What is the difference between a UUID and a GUID?
They are the same thing. GUID is the name Microsoft uses. For .NET and Windows registry formats, such as braces or the C# struct form, use the GUID Generator.
Is a UUID safe to use in a public URL?
A random v4 UUID cannot be guessed or counted the way 1, 2, 3 IDs can. But it is not a password. Anyone who has the link can use it, so keep a permission check on anything private. A v7 UUID also reveals when it was created.
How should I store UUIDs in a database?
Use a native UUID column type or 16 bytes of binary where your database supports it. The 36-character text form takes more than twice the space and is slower to compare.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close