Skip to content
Blogiantic

UUID Generator

Generate v4, v7 or v1 UUIDs in bulk, as GUIDs, URNs or a JSON array, and check any UUID's version and time.

  • Free
  • No sign-up
  • Runs in your browser
Try:

Random. The everyday choice.

Your UUIDs

 

Options

Paste one to see if it is valid, its version and variant, and the time inside it (v1, v6, v7).

Runs in your browser. Nothing you type is uploaded or stored, and no sign-up is needed.

Updated

See it in action

  • 3 v7 UUIDs made in the same millisecond

    01a22161-fe80-707f-94b3-ee192a0cd62701a22161-fe80-7080-a96d-e648e65df4ad01a22161-fe80-7081-9c4f-984e04215d33
  • Check 017F22E2-79B0-7CC3-98C4-DC0C0C07398F

    Version 7: Unix-time orderedCreated 2022-02-22 19:22:22 UTC

This UUID generator makes random version 4 UUIDs, time-ordered version 7 UUIDs and legacy version 1 UUIDs, plus the Nil and Max values, one at a time or up to 1,000 at once. Choose uppercase, hyphens, {braces} for the GUID style or the urn:uuid: prefix, and list them one per line, comma-separated or as a JSON array. A checker reads any UUID or GUID and tells you if it is valid, its version and variant, and when it was made for v1, v6 and v7. It follows RFC 9562, uses your browser's secure random generator, is free, needs no sign-up, and nothing leaves your device.

How to use it

  1. Pick a version (v4 for random, v7 for time-ordered) and how many UUIDs you need. They appear at once; press New UUIDs for a fresh set.

    Ten random version 4 UUIDs listed one per line in the UUID generator
  2. Choose the written form: UPPERCASE, without hyphens, in {braces} for a GUID, or with urn:uuid:, and list them one per line, comma-separated or as a JSON array. Then copy them or download them.

    Five time-ordered version 7 UUIDs in uppercase, already sorted
  3. To check a UUID, paste it into Check a UUID or GUID: it shows if it is valid, its version and variant, and when it was created if it is a v1, v6 or v7.

    The UUID checker showing a version 7 UUID's type, variant and creation time

Options

v4 (random)
122 random bits from your browser's cryptographic random generator, plus the version and variant bits. The default for most uses. It is the default, so the page works as a UUID v4 generator as soon as it opens.
v7 (time-ordered)
A UUID v7 starts with the current Unix time in milliseconds, then random bits. UUIDs made later sort later, which suits database primary keys. A batch made in the same millisecond is still in order. Pick v7 to use the page as a UUID v7 generator.
v1 (time-based)
UUID v1 is the original time-based layout, for systems that need it. The node part is random with the multicast bit set, so it never contains your device's MAC address.
Nil and Max
The Nil UUID is all zeros (00000000-0000-0000-0000-000000000000) and the Max UUID is all ones (ffffffff-ffff-ffff-ffff-ffffffffffff); both are used as placeholders.
How many
From 1 to 1,000 UUIDs in one go, for a bulk UUID generator or test data.
UPPERCASE, hyphens, braces, urn:uuid:
Change the written form without making new UUIDs: uppercase letters, the 32 digits without hyphens, {braces} as in the Windows GUID style, or the urn:uuid: prefix.
List as
One per line, comma-separated, or a JSON array ready to paste into code.
Copy and download
Copy all the UUIDs at once or download them as a .txt or .json file.
Check a UUID or GUID
UUID validator and UUID decoder: paste one in any common form (hyphens or not, braces, urn:uuid:, any case) to see if it is valid, its standard form, version, variant, and the time stored in v1, v6 and v7 UUIDs.

What a UUID is

A UUID (Universally Unique IDentifier) is a 128-bit label used to identify things such as database rows, files, messages or devices without a central authority handing out numbers. It is usually written as 32 hexadecimal digits in five groups separated by hyphens, 8-4-4-4-12, for example f81d4fae-7dec-11d0-a765-00a0c91e6bf6.

UUIDs are defined by the IETF in RFC 9562 (May 2024), which replaced RFC 4122. The 13th digit is the version (the 4 in xxxxxxxx-xxxx-4xxx-…), and the first digit of the fourth group holds the variant: 8, 9, a or b for the standard RFC 9562 variant. Letters may be written in uppercase, lowercase or mixed case; they mean the same UUID.

Source: IETF RFC 9562, Universally Unique IDentifiers (UUIDs)

UUID vs GUID

A GUID (Globally Unique IDentifier) is the name Microsoft uses for the same thing: RFC 9562 says UUIDs are also known as GUIDs. A GUID generator and a UUID generator produce the same 128-bit values. GUIDs are often written in uppercase inside braces, such as {F81D4FAE-7DEC-11D0-A765-00A0C91E6BF6}; tick UPPERCASE and {Braces} to get that style.

Which version: v4, v7 or v1?

Use a v4 UUID generator when you just need a unique ID. For a time-ordered UUID, for example as a database key, use v7: RFC 9562 explains that random UUIDs such as v4 have poor database-index locality, so new values land at random places in a B-tree index, and the performance cost can be dramatic. v7 values made one after another sit next to each other. The trade-off is that a v7 UUID reveals when it was made, to the millisecond. The v7 timestamp lasts until the year 10889; v1's until 5623.

UUID versions this generator makes (RFC 9562 §5)
VersionWhat is insideSorted by creation timeGood for
v4122 random bitsNoGeneral-purpose IDs, IDs that appear in links, anything where the creation time should stay hidden
v748-bit Unix time in milliseconds, a 12-bit counter, 62 random bitsYesDatabase primary keys and anything you want to sort by time
v160-bit time in 100-nanosecond steps since 15 October 1582, a clock sequence and a nodeNot as text (the time parts are stored out of order)Older systems that require version 1
Nil / MaxAll zeros / all ones—Placeholders: "no value" and "largest value"

How likely is a duplicate?

A version 4 UUID has 122 random bits, so there are 2^122, about 5.3 × 10^36, possible values. By the birthday approximation, the chance that n random UUIDs contain at least one duplicate is about n² ÷ 2^123.

Chance of at least one duplicate among random v4 UUIDs (computed: n² ÷ 2^123)
How many v4 UUIDsChance of any duplicate
1 millionabout 1 in 10^25 (9.4 × 10^-26)
1 billionabout 1 in 10^19 (9.4 × 10^-20)
1 trillionabout 1 in 10^13 (9.4 × 10^-14)
2.7 × 10^18about 50%: making 1 billion every second, that takes about 86 years

How this generator makes them

  • Random bits come from crypto.getRandomValues, the browser's cryptographically secure random generator, as RFC 9562 §6.9 recommends. Nothing is sent to a server.
  • v7: the first 48 bits are the Unix time in milliseconds. The next 12 bits are a counter that starts at a random value each millisecond and goes up by one for each further UUID in the same millisecond (RFC 9562 §6.2, Method 1), so a batch of 1,000 is always in order.
  • v1: the node is 48 random bits with the multicast bit set, as RFC 9562 §6.10 describes, so the UUID never contains your network card's MAC address. The clock sequence is random.
  • Changing the written form (case, hyphens, braces, urn:uuid:, list style) only rewrites the same UUIDs; press New UUIDs to make new ones.

UUIDs are IDs, not passwords

RFC 9562 says software should not assume UUIDs are hard to guess, and that they must not be used as security capabilities, identifiers whose mere possession grants access. Use a UUID to name something, not to protect it. If an ID's creation time must stay private, use v4 rather than v7 or v1.

Source: RFC 9562 §8, Security Considerations

Checking and decoding a UUID

  • Accepted forms: 8-4-4-4-12 with hyphens, 32 digits without hyphens, {braces}, urn:uuid:, any letter case. Spaces around it are ignored.
  • Valid means 32 hexadecimal digits in one of those forms. The checker then reads the version digit and the variant bits.
  • For v7 it shows the creation time from the first 48 bits; for v1 and v6 it decodes the 100-nanosecond timestamp. For v4 there is no time to show.
  • The RFC 9562 test values decode as expected: 017F22E2-79B0-7CC3-98C4-DC0C0C07398F (v7) and C232AB00-9414-11EC-B3C8-9F6BDECED846 (v1) both read 22 February 2022, 19:22:22 UTC.

Questions

How do I generate a UUID?

Open this page: one random v4 UUID is ready at once. Pick v7 or v1 if you need them, set how many, then copy or download them.

What is the difference between UUID v4 and v7?

v4 is fully random apart from 6 fixed bits. v7 starts with the time in milliseconds, so v7 UUIDs sort in the order they were made, which keeps database indexes efficient. v7 reveals its creation time; v4 does not.

Is a GUID the same as a UUID?

Yes. GUID is Microsoft's name for a UUID. Tick UPPERCASE and {Braces} for the usual GUID style.

Can two UUIDs be the same?

In practice no. Each random UUID of version 4 has 122 random bits, so even a billion of them have about a 1 in 10^19 chance of containing any duplicate.

How many UUIDs can I generate at once?

Up to 1,000 per batch. Press New UUIDs for another batch.

Is this UUID generator online and free?

Yes. It is a free online UUID generator with no sign-up: you generate UUID online in your browser, and nothing is sent to a server.

How do I check if a UUID is valid?

Paste it into Check a UUID or GUID. It accepts hyphens or none, braces, urn:uuid: and any case, and shows the version, variant and, for v1, v6 and v7, the creation time.

Are these UUIDs safe to use as passwords or secret links?

No. RFC 9562 says UUIDs should not be assumed hard to guess and must not be used as identifiers that grant access on their own. Use them as IDs.

More free tools

AI tools for the same job