UUID Generator Online — v4, v7 & Nil

Generate random UUID v4, time-ordered UUID v7 or the nil UUID. Set hyphens, uppercase and the braces or URN format, then choose how many IDs you need, from 1 to 50, for fixtures and test data.

Loading…
How the UUID generator works
Create UUIDs for tests, fixtures and client-side IDs. v4 is random, v7 sorts by creation time and nil is the all-zero value.

UUID or GUID? v4 vs v7

UUID and GUID name the same 128-bit identifier. GUID is the word Microsoft uses, UUID the one in the RFCs. This generator covers the versions you need day to day: v4 when IDs must be unpredictable, v7 when you want values that sort by creation time, which helps database indexes and log correlation. The nil UUID, all zeros, is there for tests. Choose hyphens, case, plain, braces or URN, and how many IDs to create (1 to 50, nil always gives one). The list is generated again when you change an option. Copy or download it: everything is created in your browser with Web Crypto. For Crockford Base32 IDs, try the ULID generator. For shorter tokens, see the Nanoid generator.

How generation works

Choose a version, the formatting (hyphens, uppercase, braces, URN) and a count from 1 to 50. The list is filled when the page opens and generated again each time you change an option. Copy one line or all of them, or download a .txt file.

Options

Version (v4 / v7 / nil)
v4 is random, from Web Crypto. v7 starts with a Unix timestamp in milliseconds, so the IDs sort by creation time. Each v7 row shows that timestamp. Nil returns 00000000-0000-0000-0000-000000000000, or its form without hyphens.
Hyphens
Keep the standard 8-4-4-4-12 form, or remove the hyphens for APIs and databases that expect 32 hex characters.
Uppercase
Writes the hex letters in uppercase (A to F) for systems that compare IDs case-sensitively or expect uppercase.
Count (1–50)
Enough IDs for a set of fixtures, up to 50. For thousands, a script is the better tool.
Format (plain, braces, URN)
Plain leaves the UUID as set by the options above. Braces wraps it in {}. URN adds the urn:uuid: prefix and always writes lowercase with hyphens, so the hyphen and uppercase switches are disabled while URN is selected.

Examples

v4 with hyphens

Settings

version=v4, hyphens=on

Sample output

550e8400-e29b-41d4-a716-446655440000

v7 uppercase, no hyphens

Settings

version=v7, hyphens=off, uppercase=on

Sample output

018E2F3A4B5C7D7E8F90123456789ABC

Related utilities

For IDs that sort by time, use the ULID generator. For compact IDs, the Nanoid generator. To convert timestamps, open the Unix timestamp tool.

UUID generator FAQ

Versions, formats and limits

When should I use UUID v7?

Use v7 when you want IDs that sort by creation time, for database indexes or debugging. Use v4 when you only need random, unique values.

Is generation private?

Yes. UUIDs are created in your browser with Web Crypto, and nothing is sent to FastMinify.

Why is count capped at 50?

Fifty covers a set of fixtures and keeps the list readable. To produce thousands of IDs, a script does the job faster.

What is the nil UUID for?

It is a reserved value made of zeros, used in some protocols and tests to mean “no UUID” or “empty”.

Is a GUID the same as a UUID?

For developers, yes: both name a 128-bit unique identifier. GUID is the term in .NET and Windows documentation. UUID is the RFC term this tool follows for v4, v7 and nil.

How do I generate several UUIDs at once?

Set Count between 1 and 50 with the slider or the number field. The list then holds that many UUIDs: copy one line, copy all, or download a .txt file. The nil version ignores the count and always returns a single all-zero UUID.

Timestamps, UUID, ULID, Nanoid, cron, passwords, regex, slugs, number bases, letter case, text diff, chmod and Lorem Ipsum, all in your browser.