UUID Generator (v4, v7 & ULID)

Generate universally unique identifiers instantly: UUID v4 (random), UUID v7 (time-ordered, ideal for database keys) or ULID. Create one or up to 10,000 at a time, format them in uppercase, without hyphens, with braces (GUID style) or quoted, and export as a list, comma-separated values or a JSON array. The inspector tells you the version, variant and creation time of any UUID. IDs are generated with your browser's cryptographically secure random generator.

  • 100% free
  • No sign-up
  • Private & local
  • Works on mobile

Inspect a UUID or ULID

Private by design: every calculation runs locally in your browser. Nothing you type is sent to a server or stored by us.

What Is a UUID?

A UUID (universally unique identifier), also called a GUID (globally unique identifier) in the Microsoft world, is a 128-bit number used to identify something without needing a central authority to hand out IDs. It's written as 32 hexadecimal digits in five groups, like f47ac10b-58cc-4372-a567-0e02b2c3d479. UUIDs are used as database primary keys, API resource IDs, file and upload names, session and request IDs, message queue IDs, and in distributed systems where many machines create records at the same time.

The chance of two randomly generated v4 UUIDs colliding is astronomically small. You would need to generate about a billion UUIDs every second for around 85 years to have a 50% chance of a single duplicate. This UUID generator creates them using the Web Crypto API's secure random number generator.

How to Generate UUIDs

  1. Choose the type: v4 for general use, v7 for database keys, or ULID for sortable, compact IDs.
  2. Set how many you need, from 1 to 10,000.
  3. Choose formatting: hyphens, uppercase, braces, quotes, and list, comma or JSON output.
  4. Copy or download the result. The first ID is shown large for quick copying.
  5. Inspect any existing UUID to find its version, variant and, for v1, v6 and v7, when it was created.

UUID Versions Compared

VersionBased onSortableBest for
v1Timestamp + MAC addressNo (fields are reordered)Legacy systems. It leaks the host MAC address.
v4122 random bitsNoGeneral-purpose unique IDs
v5 / v3SHA-1 / MD5 hash of a nameNoThe same ID from the same input (deterministic)
v7Unix time in milliseconds + randomYesDatabase primary keys, logs, events
ULID48-bit time + 80 random bits, Base32YesShort, URL-friendly sortable IDs

Why UUID v7 Is Better for Databases

Random v4 UUIDs scatter inserts all over a database index, which causes page splits, fragmentation and poor cache use as tables grow, especially in MySQL/InnoDB and SQL Server clustered indexes. UUID v7, standardised in RFC 9562 (2024), begins with a 48-bit millisecond timestamp, so new IDs are always larger than older ones. Inserts go to the end of the index, just like auto-increment integers, while keeping global uniqueness. As a bonus, you can read the creation time straight from the ID. This generator also keeps v7 IDs strictly increasing when many are created in the same millisecond.

Anatomy of a UUID

In xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx, the digit M is the version (4 or 7), and the top bits of N give the variant (8, 9, a or b for standard RFC UUIDs). Everything else is random data or a timestamp, depending on the version. The nil UUID (all zeros) and max UUID (all f's) are special values, often used as placeholders or sentinels.

Storing UUIDs Efficiently

A UUID is 16 bytes, but its text form is 36 characters. In PostgreSQL, use the native uuid type. In MySQL, store it as BINARY(16) (with UUID_TO_BIN()) rather than CHAR(36), which saves space and speeds up indexes. In SQL Server, use uniqueidentifier. Using time-ordered v7 UUIDs keeps indexes compact and inserts fast as tables grow into millions of rows.

UUIDs in Popular Languages

  • JavaScript / Node.js: crypto.randomUUID()
  • Python: uuid.uuid4(), and uuid.uuid7() in recent versions
  • Java: UUID.randomUUID()
  • C# / .NET: Guid.NewGuid(), and Guid.CreateVersion7() in .NET 9+
  • PostgreSQL: gen_random_uuid(), and uuidv7() in version 18
  • Command line: uuidgen on macOS and Linux

Use the generator here when you need IDs for test data, fixtures, configuration files or quick prototypes without writing code.

Frequently Asked Questions

Can I generate UUIDs in bulk for a spreadsheet?

Yes. Generate up to 10,000 at once, choose "one per line", then copy and paste them straight into a spreadsheet column.

What's the difference between a UUID and a GUID?

They're the same thing. GUID is Microsoft's name, often written in uppercase with braces.

Can two UUIDs ever be the same?

Theoretically yes, but with a secure random generator the probability is negligible for any practical system.

Should I use UUIDs or auto-increment IDs?

UUIDs let many systems create IDs independently and don't reveal how many records you have. v7 gives the index performance of sequential IDs.

How do I generate a UUID in JavaScript?

crypto.randomUUID() returns a v4 UUID in all modern browsers and Node.js.

Are these UUIDs stored anywhere?

No. They're generated in your browser and never sent to a server.