UUID Generator

Generate random UUIDs — also called GUIDs — one at a time or a thousand at once, in every version and written format, with a validator built in. It is the quickest way to generate UUID values online: everything happens in your browser, and nothing is uploaded.

🔑 UUID & GUID generator — bulk, all versions

Fresh UUIDs are already waiting below. Random values come from your device's secure random source — never a predictable generator — and are created on this page, not on a server.

Try:

Version

🔒 Private by design: generation happens on this device. No server sees your UUIDs, and this page stores nothing.

UUID validator & decoder

Paste any UUID — hyphenated, 32 hex digits, in {braces}, as a URN, in any case — and see whether it is valid, which version it is, and (for v1 and v7) the timestamp hidden inside it.

What is a UUID generator?

A UUID generator creates universally unique identifiers. Each universal unique id is a 128-bit value practically guaranteed to be one of a kind, with no registry, counter or permission needed. Developers reach for a random UUID generator whenever something needs a label that can never clash — a database row, a session, an uploaded file, an order. Instead of asking a central server “what is the next number?”, any machine can mint a random UUID on the spot and trust nobody else has minted the same one.

If you came here looking for a GUID generator — or a guid generator online — you are in the right place: a GUID (Globally Unique Identifier) is Microsoft's name for exactly the same thing, and this page generates both — they are interchangeable everywhere. The generator above goes beyond single-UUID pages: it makes up to 1,000 at a time, covers v1, v3, v4, v5 and v7 plus Nil and Max, writes them in every format real systems ask for (uppercase, no hyphens, {braces}, URN, quoted, JSON), and includes a UUID validator for checking values you already have. The default, version 4, is the familiar uuid v4 mode: pure secure randomness, 122 random bits in every value.

How to use it

  1. Pick a version. v4 (random) is the right default for almost everything. Choose v7 for database keys sorted by creation time, v3 or v5 when the same name must always give the same UUID, or v1 for classic time-based ids.
  2. Set the quantity — 1 to 1,000. Use bulk mode to generate UUIDs in bulk for test data, imports and seed scripts. Generating again replaces the list; it never appends, so the count you see is the count you get.
  3. Choose the written format your system expects: hyphens on or off, UPPERCASE, {braces}, the urn:uuid: prefix, quotes, and a separator for copying.
  4. Copy or download. Copy a single UUID from its row, copy the whole list (or as a JSON array), or download it as a .txt file.
  5. Checking an existing UUID? Paste it into the validator: it names the version and variant, decodes the timestamp inside v1 and v7 values, and rewrites it in other formats.

Worked examples

One version 4 UUID, taken apart

f47ac10b-58cc-4372-a567-0e02b2c3d479 — the third group starts with 4, the version; the fourth starts with a, one of the four allowed variant digits (8, 9, a, b). Everything else is random. Paste it into the validator and it confirms: valid, version 4, standard variant.

Bulk identifiers for test data

Set the quantity to 100 with v4 selected, then Download .txt: a file of 100 unique UUIDs, one per line, ready to seed a test database. Need them in code? “Copy as JSON” puts the list on your clipboard as a ready-made array.

The same name, the same UUID

Switch to v5, leave the namespace on DNS and type a name — the result is deterministic: that namespace and name always produce that one UUID, on any machine, forever. That is how systems derive stable ids for things that already have names.

The anatomy of a UUID

A UUID is 16 bytes — 128 bits — written as 32 hexadecimal digits grouped 8-4-4-4-12. Two small parts are not random at all: they describe the UUID itself. The first digit of the third group is the version; the first digit of the fourth group encodes the variant — for every standard UUID, 8, 9, a or b. Those fixed bits are why a v4 UUID carries 122 random bits rather than 128.

Because the version sits in a fixed place, any tool can read a UUID and know how it was made — the validator on this page does exactly that.

UUID versions — which one should you use?

VersionHow it is builtUse it when
v1Timestamp + clock sequence + node idTime-ordered ids, accepting that a node id is embedded in every value.
v2DCE security variant of v1Almost never — legacy DCE systems only.
v3MD5 hash of a namespace + a nameThe same name must always give the same id, via MD5.
v4122 bits of secure randomnessThe default — keys, tokens, sessions, file names, anything opaque.
v5SHA-1 hash of a namespace + a nameDeterministic ids from names — same input, same UUID.
v6v1 with its timestamp fields reorderedv1-style ids that sort naturally in a database index.
v7Unix millisecond timestamp + randomnessNew database primary keys — unique and sorted by creation time.
v8Custom, vendor-defined layoutExperimental or vendor-specific schemes.
NilAll zerosA placeholder meaning “no id”.
MaxAll ones (every digit f)An upper-bound sentinel.

This page generates v1, v3, v4, v5, v7, Nil and Max. Versions 2, 6 and 8 are listed for completeness — v6 merely reorders v1, and v8 is by definition a private layout, so neither has a standard generator.

Will two UUIDs ever collide?

In practice, no. A version 4 UUID has 122 random bits — about 5.3 × 1036 possible values. Collisions follow the birthday rule: you would need roughly 2.7 quintillion (2.7 × 1018) v4 UUIDs before the chance of even one repeat reached 50%. At a billion per second, that is about 86 years of generating. At real-world volumes — millions, even billions of ids — a clash is far less likely than a hardware fault corrupting the value, so engineers treat v4 UUIDs as unique. Two conditions keep that promise honest: a secure random source (this page uses your device's cryptographic generator), and never truncating values.

Generate UUIDs in code

Every mainstream language can mint a v4 UUID natively or with a standard package:

// JavaScript — built in, no library needed
crypto.randomUUID()

# Python
import uuid
uuid.uuid4()                                   # random (v4)
uuid.uuid5(uuid.NAMESPACE_DNS, "example.com")  # deterministic (v5)

// C# — a Guid is a UUID
System.Guid.NewGuid()

// Java
java.util.UUID.randomUUID();

// Go — with the google/uuid package
uuid.NewString()  // v4 as a string

Notice the Python line: it derives a v5 UUID from the DNS namespace and a name, exactly as the v5 mode above does — run both and you get the same value, because name-based UUIDs are reproducible everywhere by definition.

GUIDs in Excel

Spreadsheets are the one place GUIDs are awkward: Excel and Google Sheets have no built-in GUID function. The workarounds are a VBA user-defined function built on the Scriptlet.TypeLib object, or a long formula stitching RANDBETWEEN results into hex — whose non-secure random source changes your ids whenever the sheet recalculates. The reliable pattern: generate GUIDs here (one, or a bulk list for a whole column), copy, and paste them in as fixed values.

Frequently asked questions

What is a UUID?

A UUID is a universal unique id — a 128-bit identifier written as 32 hexadecimal digits in five groups — 8-4-4-4-12 — separated by hyphens, like f47ac10b-58cc-4372-a567-0e02b2c3d479. It is designed to be generated anywhere, by anyone, with no central registry, while the chance of two people generating the same one stays effectively zero. Software uses UUIDs for database keys, session ids, file names, transaction references and anywhere else a unique label is needed.

What does UUID stand for?

UUID stands for Universally Unique Identifier. The current standard, RFC 9562 (which replaced RFC 4122), defines the format and its versions. Microsoft calls the same thing a GUID — Globally Unique Identifier — and the two terms are interchangeable: a GUID generated on Windows and a UUID generated anywhere else follow exactly the same layout and rules.

Is a UUID always 36 characters?

The standard written form is 36 characters: 32 hex digits plus 4 hyphens. The UUID itself is always 128 bits — the hyphens are only punctuation for humans. Written without hyphens it is 32 characters, and some systems store the same value in braces, as a URN (urn:uuid:…), or as 16 raw bytes. All of those are the same UUID; the format options in the generator above convert between them.

How can I generate a 32-character UUID?

Generate a UUID as usual, then untick the Hyphens option above. The result is the same 128-bit value written as 32 hex digits with nothing between the groups — the form some APIs and databases ask for. Nothing is lost: any validator, including the one on this page, can read the 32-digit form and expand it back to the hyphenated layout.

What is a GUID — is it different from a UUID?

No. GUID (Globally Unique Identifier) is Microsoft's name for the same 128-bit identifier, which is why this page is both a UUID generator and a GUID generator. A GUID made by Guid.NewGuid() in C# is a version 4 UUID, and it can be validated, reformatted and stored exactly like one made anywhere else. When a form or an API asks you for a GUID, generate a UUID here.

How can I generate a GUID in Excel?

Excel has no built-in GUID function. The usual workarounds are a VBA user-defined function built on the Scriptlet.TypeLib object, or a long formula stitching together RANDBETWEEN calls — and neither uses a secure random source. For one GUID or a few hundred, it is simpler and safer to generate them here, copy, and paste the values into the sheet.

Related tools