Skip to content

UUID Generator

Generate UUID v4, v7 or v1, one at a time or up to 1,000. Output as standard, uppercase, braces (GUID), no hyphens, URN or Base64, and decode any UUID you paste.

Generating…

Generating a UUID in your browser…
Version
How many
Format

01 · Definition

What is a UUID?

A UUID (universally unique identifier) is a 128-bit value written as 32 hexadecimal digits in five groups, such as 76b8143e-15e4-4924-a9cf-472faf048983. It can be generated on any machine without a central registry and still be unique in practice. RFC 9562 defines the format and its versions; version 4 is random and version 7 is time-ordered.

02 · Overview

How the UUID Generator works

Generates version 4 (random), version 7 (Unix-time ordered) and version 1 (timestamp and node) UUIDs, 1, 10, 100 or 1,000 at a time, with copy and .txt download. Format options cover lowercase or uppercase, no hyphens, {braces} as used for GUIDs, urn:uuid: and Base64. The decoder accepts any of those notations and shows the version and variant, the embedded UTC timestamp for v1, v6 and v7, and the clock sequence and node for v1 and v6. UUIDs are generated in your browser and are not sent to our server.

03 · Guide

UUID v4 vs v7 vs v1

Six bits of every UUID are fixed: four for the version and two for the variant. The other 122 bits depend on the version. Version 4 fills them with random data. Version 7 puts a 48-bit Unix timestamp in milliseconds first, then 74 bits of random or counter data, so values created later sort later as text and as bytes. Version 1 stores a 60-bit timestamp counted in 100-nanosecond steps from 15 October 1582, a 14-bit clock sequence and a 48-bit node.

Use v4 when the ID should reveal nothing and order does not matter. Use v7 for database primary keys, where roughly increasing values keep index inserts at the end of the index. Use v1 only for compatibility with systems that expect it. Both v1 and v7 reveal when they were created; the decoder on this page shows that time.

VersionContentsSorts by timeReveals creation time
v4122 random bitsNoNo
v748-bit Unix ms timestamp + 74 random or counter bitsYesYes, to the millisecond
v160-bit timestamp + 14-bit clock sequence + 48-bit nodeNoYes, to 100 nanoseconds
The UUID versions this tool generates

04 · Guide

How likely is a UUID collision?

A version 4 UUID has 122 random bits, so there are 2^122, about 5.3 × 10^36, possible values. By the birthday bound you would need to generate about 2.7 × 10^18 of them, 2.7 quintillion, for a 50% chance that any two are the same. Collisions in practice come from a broken random source, not from the size of the space.

05 · Guide

UUID vs GUID

GUID (globally unique identifier) is Microsoft's name for the same 128-bit identifier. The values are interchangeable. The difference is notation: Windows tools and .NET often write a GUID in uppercase inside braces, {76B8143E-15E4-4924-A9CF-472FAF048983}. Choose the {Braces} format and Uppercase to get that form.

06 · Use cases

When to use the UUID Generator

  1. 01

    Generate a primary key for a test row

  2. 02

    Fill a fixture file with 1,000 IDs and download them as a text file

  3. 03

    Get a time-ordered UUID v7 for a sortable identifier

  4. 04

    Paste a UUID from a log to find its version and when it was created

07 · Examples

UUID Generator examples

1 UUID, version 4

ex 01

76b8143e-15e4-4924-a9cf-472faf048983

A random UUID. The 4 after the second hyphen is the version.

3 UUIDs, version 7

ex 02

01a1ca50-0732-702c-8929-08ba1e83104c, 01a1ca50-0732-702c-8929-0d4ae6326104, 01a1ca50-0732-702c-8929-10c080c28e08

Generated in the same millisecond, so the first 12 hex digits (the timestamp) are equal and the rest still increases.

Version 4, {Braces} format, Uppercase

ex 03

{76B8143E-15E4-4924-A9CF-472FAF048983}

The notation Windows and .NET tools use for a GUID.

Decode 017f22e2-79b0-7cc3-98c4-dc0c0c07398f

ex 04

Valid UUID, version 7 · Variant RFC 9562 · Timestamp 22 Feb 2022, 19:22:22.000 UTC

The version 7 test vector from RFC 9562, Appendix A.

Decode c232ab00-9414-11ec-b3c8-9f6bdeced846

ex 05

Valid UUID, version 1 · Timestamp 22 Feb 2022, 19:22:22.000 UTC · Clock sequence 13,256 · Node 9f:6b:de:ce:d8:46

The version 1 test vector from RFC 9562, Appendix A.

08 · FAQ

UUID: frequently asked questions

What is the difference between UUID v4 and v7?

v4 is 122 random bits with no order. v7 starts with a 48-bit millisecond timestamp followed by random bits, so newer UUIDs sort after older ones. Use v7 for database keys and anything you want in creation order; use v4 when the ID should not reveal when it was made.

Are these UUIDs random enough to use as IDs?

Yes. The random bits come from the browser's cryptographically secure generator (the Web Crypto API), through the uuid library. A UUID is an identifier, not a secret, though: v1 and v7 include the creation time, so use v4 or a dedicated token where the value must be unguessable.

Can it decode or validate a UUID?

Yes. Paste a UUID in any common notation: hyphenated, 32 bare hex digits, in braces, or with a urn:uuid: prefix. The tool shows whether it is valid, its version and variant, the UTC timestamp for versions 1, 6 and 7, and the clock sequence and node for versions 1 and 6. It also recognises the nil and max UUIDs.

How do I generate a GUID?

A GUID is a UUID, so any version works; v4 is the usual choice. For the Windows-style notation choose the {Braces} format and tick Uppercase. For 32 digits with no punctuation choose No hyphens.

What is UUID v8, and can this tool generate it?

Version 8 is the format RFC 9562 reserves for application-defined layouts: apart from the version and variant bits, the contents are up to you. Because there is no single v8 algorithm, this tool does not generate it. The decoder will still identify a v8 UUID as version 8.

Does a v1 UUID expose my MAC address?

Not here. Version 1 has a 48-bit node field that originally held the network card address. The UUIDs this tool generates use a random node with the multicast bit set, which marks it as not being a real address. The decoder tells you whether a pasted v1 UUID has that bit set.

How many UUIDs can I generate at once?

1, 10, 100 or 1,000 per run. Copy all copies them one per line, and the download button saves the same list as a .txt file. Press Generate again for another batch.

Should I store UUIDs as text or binary in a database?

Use a native UUID type where the database has one. A UUID is 16 bytes in binary and 36 characters as canonical text, so a native or binary column is less than half the size and compares faster.

09 · Guides

UUID guides

10 · Reference

Specs and further reading

These are the primary sources this tool follows. Where a specification defines the behaviour, we link the specification, not a summary of it.

11 · More

Tools that pair with UUID

Last updated .