UUID Generator (v4 and v7)

Generate secure random UUIDs, one at a time or in bulk.

🔒 Runs entirely in your browser. Nothing you enter is uploaded or stored.

What is the UUID Generator?

A UUID (Universally Unique Identifier), called a GUID in the Microsoft world, is a 128-bit ID written as 32 hex digits in five groups, like 550e8400-e29b-41d4-a716-446655440000. UUIDs can be created anywhere, with no central server, and in practice they never collide. That makes them ideal primary keys, request IDs and file names.

This generator supports the two versions you are most likely to need (RFC 9562). UUID v4 is 122 bits of pure randomness, the most common choice. UUID v7 starts with a millisecond Unix timestamp followed by random bits, so new IDs sort in creation order. Databases index v7 keys much more efficiently than random v4 keys. All values come from crypto.getRandomValues, the browser's cryptographically secure random generator.

How to use the UUID Generator

  1. Choose v4 for random IDs or v7 for time-sortable IDs.
  2. Set how many you need (up to 1,000) and pick a format: uppercase, without hyphens, or wrapped in braces.
  3. Click Generate, then copy the list or download it as a text file.

UUID v4 vs v7

UUID v4UUID v7
Content122 random bits48-bit timestamp + 74 random bits
Sortable by timeNoYes
Database index performancePoorer (random inserts)Good (append-mostly)
Reveals creation timeNoYes, to the millisecond

Frequently asked questions

Can two UUIDs ever be the same?

In theory yes, but in practice no. With 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.

Is a UUID the same as a GUID?

Yes. GUID is Microsoft's name for the same 128-bit identifier format. Some Microsoft tools show GUIDs in uppercase and wrapped in braces, which you can switch on above.

Should I use UUID v7 for database primary keys?

Usually, yes. Because v7 values increase over time, new rows are added to the end of the index instead of random places. That reduces page splits and speeds up inserts in PostgreSQL, MySQL and SQL Server.

Are these UUIDs safe to use as secret tokens?

v4 UUIDs are generated with a cryptographically secure source, but a UUID is meant to be an identifier, not a secret. For API keys or reset tokens, use a dedicated random secret of at least 128 bits.