Format Code Now
/

UUID Generator

HG-07

Press a button to generate random version 4 UUIDs or time-ordered version 7 UUIDs, up to 1000 at a time. Add braces or capitals for GUID style.

Runs in your browser. Nothing is uploaded.

Not used. Press a button to generate.

UUIDs

How to use it

  1. Choose how many you need under How many, from 1 to 1000.
  2. Click Version 4 (random) or Version 7 (time-ordered). Click again for a fresh set.
  3. Tick UPPERCASE, Braces or untick Hyphens to match the format your system expects.
  4. Copy the list, or download it as a .txt file with one UUID per line.

Version 4 and version 7

Version 4 is random: 122 of its 128 bits come from your browser's secure random generator, and the other six mark the version and variant. Version 7, defined in RFC 9562, starts with the current time in milliseconds and fills the rest with random bits, so the values sort in the order they were made. When many are created in the same millisecond, the random part counts upward, so a batch is still in order. A version 7 UUID reveals when it was created.

GUID style and other formats

UUID and GUID are the same 128-bit value. GUID is the Microsoft name, usually written in capitals and often wrapped in braces, like {3F2504E0-4F89-41D3-9A0C-0305E82C3301}. Use UPPERCASE and Braces to get that look. Untick Hyphens to get 32 characters without dashes, which some systems and URLs prefer. These options change only how the value is written, not the value itself.

What a UUID is not

A UUID is an identifier, not a secret. Random version 4 values are hard to guess, but do not use a UUID as a password, a session token or an API key. Generation happens in your browser using crypto.getRandomValues, and nothing is stored or sent, so each click gives new values that exist only on your screen until you copy them.

Questions people ask

How do I generate a UUID online?

Choose how many you want, then click Version 4 (random). A list of UUIDs appears, one per line, and you can copy it or download it as a .txt file. Click again for new ones. Everything is generated in your browser.

What is the difference between UUID v4 and v7?

Version 4 is entirely random. Version 7 begins with a millisecond timestamp, so values sort by creation time and work better as database keys, where random keys scatter across an index. A version 7 value also shows when it was made, which version 4 does not.

Is a UUID the same as a GUID?

Yes. GUID is the Microsoft term for the same 128-bit identifier. It is often written in uppercase and wrapped in braces. Tick UPPERCASE and Braces to produce that style. The underlying value follows the same UUID layout.

Can two UUIDs ever be the same?

In theory yes, in practice almost never. A version 4 UUID has 122 random bits, so a repeat is so unlikely that systems treat them as unique. That relies on a good random source, and this tool uses the secure one built into your browser.

Will UUID v7 sort correctly in SQL Server?

Not in a uniqueidentifier column. SQL Server compares those values starting from the last six bytes, so a version 7 UUID is not ordered by creation time there. Databases that compare UUIDs byte by byte, such as PostgreSQL, keep version 7 values in time order.

Can I use a UUID as a password or token?

It is better not to. A UUID is built to be unique, not to be secret, and version 7 even contains a timestamp. For passwords use the Password Generator, and for tokens use a value from a secure generator sized for that purpose.

About this tool

UUIDs are generated in your browser with crypto.getRandomValues. Version 4 is 122 random bits. Version 7 (RFC 9562) starts with the current time in milliseconds, so the values sort in the order they were made; when many are made in the same millisecond, the random part counts upward so the order still holds. A version 7 UUID shows when it was created, so do not use it where that is private. A UUID is an identifier, not a secret: do not use one as a password or a token. The page never stores or sends what it generates.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.