Follow Us

UUID Generator

Generate random UUID v4, time-sortable UUID v7 and every other version — plus ULIDs, NanoIDs and API keys — one at a time or 10,000 at once. Validate and decode any UUID too.

Cryptographically random v1, v3, v4, v5, v6, v7 Bulk 10,000 Validator & decoder No sign-up

Format

UUID validator & decoder

Paste a UUID, GUID or ULID to check it and see its version, variant and the time it was created.

How to Generate UUIDs

Create one ID or thousands in a click — in the exact format your code or database needs.

1

Pick a type

Choose UUID v4 for random IDs, v7 for database keys, or ULID, NanoID or API key.

2

Set how many

Generate 1 or up to 10,000 at once. For v3 and v5, enter one name per line.

3

Choose the format

Uppercase, no hyphens, braces for GUIDs, and output as lines, JSON, comma-separated or SQL.

4

Copy or download

Copy with one click or download a .txt, .json or .sql file. Paste any UUID below to validate and decode it.

v4

Random

v7

Time-ordered

All versions

v1, v3, v5, v6

Bulk

Up to 10,000

ULID

Sortable IDs

NanoID

Short IDs

Decoder

Version & time

Price

100% free

UUID Generator Features

Every kind of unique ID developers need, in one fast tool.

UUID v4 (random)

The classic random UUID with 122 random bits from your browser’s cryptographically secure generator.

UUID v7 (time-ordered)

The new RFC 9562 standard: a millisecond timestamp first, so IDs sort by creation time and index well in databases.

v1, v3, v5 and v6 too

Time-based v1 and v6 with a privacy-safe random node, and name-based v3 (MD5) and v5 (SHA-1) with DNS, URL, OID, X.500 or custom namespaces.

Bulk generation

Make up to 10,000 IDs at once — v7 and ULIDs stay in order even inside the same millisecond.

ULID and NanoID

Generate sortable 26-character ULIDs or short NanoIDs with your own length and alphabet.

API keys and tokens

Create random keys with a prefix like sk_live_ in Base62, Hex or Base64URL.

Any format

Uppercase, no hyphens, {braces} for Microsoft GUIDs, quotes or urn:uuid: — as lines, JSON array, CSV or SQL values.

Validator and decoder

Paste any UUID or ULID to check it and see its version, variant, creation time, integer and Base64 forms.

Private and offline

Everything is generated in your browser — no IDs are sent to or logged by a server.

UUID Versions Compared

Which UUID version should you use?

VersionHow it’s madeSortable?Best for
v1Timestamp + clock sequence + nodeNoLegacy systems
v3MD5 hash of namespace + nameNoOld systems needing name-based IDs
v4122 random bitsNoGeneral purpose — the default choice
v5SHA-1 hash of namespace + nameNoThe same ID for the same name, every time
v6v1 with the timestamp reorderedYesUpgrading v1 systems
v7Unix ms timestamp + random bitsYesDatabase primary keys, logs, events
ULID48-bit time + 80 random bits, Base32YesShort, sortable, URL-safe IDs

Anatomy of a UUID

A UUID is 128 bits written as 32 hex digits in five groups: 8-4-4-4-12.

PartExampleMeaning
Time / random018f4e1c-9b2aIn v7, the first 48 bits are the Unix time in milliseconds
Version7c3dThe first digit of the third group is the version (here 7)
Variant8e4fThe first digit of the fourth group is 8, 9, a or b for standard UUIDs
Random / node5a6b7c8d9e0fRandom bits (or the node ID in v1 and v6)

What Developers Use It For

Unique IDs show up everywhere in software.

Primary keys

Use v7 for fast, ordered database inserts.

API resources

Give every order, user or file a public ID.

Test data

Generate thousands of IDs for fixtures and seeds.

API keys

Create random keys and tokens with a prefix.

Short links

Make compact NanoIDs for URLs.

Request tracing

Tag logs and requests with correlation IDs.

.NET & Windows

Create GUIDs in {braces} format.

Debugging

Decode a UUID to see when it was created.

Tips for Using UUIDs

  • Prefer v7 for databases. Random v4 keys scatter index writes; v7 keeps them in order.
  • Store as binary when you can. A UUID takes 16 bytes as binary versus 36 as text.
  • Don’t use UUIDs as secrets. Use the API key option for tokens — UUIDs can appear in logs and URLs.
  • v5 is repeatable. The same namespace and name always produce the same UUID.
  • Lowercase is standard. RFC 9562 says to output lowercase, but to accept either case.
  • v7 shows creation time. Avoid it where revealing when a record was created is a problem.

Private by Design

Every ID is generated inside your browser with the secure Web Crypto random generator. Nothing is sent to Toolszu, and nothing is stored.

That means API keys and tokens you create here have never been seen by anyone else.

Frequently Asked Questions

Answers about UUIDs, GUIDs, ULIDs and NanoIDs.

A UUID (Universally Unique Identifier) is a 128-bit ID written as 32 hexadecimal digits in the form 8-4-4-4-12, like 550e8400-e29b-41d4-a716-446655440000. It can be created anywhere without a central server and still be unique.

They are the same thing. GUID (Globally Unique Identifier) is Microsoft’s name for a UUID. GUIDs are often written in uppercase inside {braces}, which you can choose in the Format options.

Use v4 for general random IDs and v7 for database primary keys or anything you want sorted by time. Use v5 when the same input must always give the same ID. v1, v3 and v6 are mainly for older systems.

UUID v7 is defined in RFC 9562 (2024). It starts with a 48-bit Unix timestamp in milliseconds followed by random bits, so new IDs sort after older ones. This makes database indexes much faster than random v4 keys.

In theory yes, in practice no. A v4 UUID has 122 random bits — you would need to generate about a billion UUIDs every second for 85 years to reach a 50% chance of a single duplicate.

Yes. They use crypto.getRandomValues(), your browser’s cryptographically secure random generator — the same source used for encryption keys.

Type a number up to 10,000 in How many, or click 10, 100 or 1,000. Choose an output format, then copy everything or download it as a .txt, .json or .sql file.

A ULID is a 26-character ID made of a 48-bit timestamp and 80 random bits, written in Crockford Base32. It sorts by time like UUID v7, but is shorter and has no hyphens.

NanoID is a short, URL-friendly random ID. With the default 21 characters and 64-character alphabet it is about as unique as a UUID v4, but shorter. You can change the length and alphabet.

Paste it into the UUID validator & decoder. It tells you whether it’s valid, which version and variant it is, and — for v1, v6, v7 and ULIDs — exactly when it was created.

The Nil UUID is all zeros (00000000-0000-0000-0000-000000000000) and the Max UUID is all Fs. They are special values used as placeholders or to mean “no ID” or “highest possible ID”.

Yes, it’s completely free with no sign-up and no limits.

Related Free Tools

Generate UUIDs Now

Get a random UUID, a time-ordered v7 or 10,000 at once. Free and no sign-up.

Start Now

Ad Blocker Detected

Toolszu provides free access to over 1,000 tools. We rely on minimal ads to maintain our servers and keep improving the site for everyone.

Please pause or disable your ad blocker to continue using Toolszu.

or
Go ad-free — from $19/year

Already have a plan? Sign in