UUID Generator – Random v4 & v7 GUIDs

Generate random UUIDs (GUIDs) online: version 4 or time-ordered version 7, one or thousands at once, with or without hyphens. Copy or download them.

How to generate UUIDs

  1. Choose version 4 for random ids, or version 7 for ids that sort by time.
  2. Set how many you need (up to 10,000) and the format.
  3. Click Generate, then copy them or download a text file with one UUID per line.

What is a UUID?

A UUID (universally unique identifier) is a 128-bit number used to identify things without a central authority handing out numbers. Any computer can create one and be confident nobody else will ever create the same one. They're used for database keys, file names, API request ids, and much more. A UUID looks like 550e8400-e29b-41d4-a716-446655440000. The first digit of the third group is the version.

Frequently asked questions

What's the difference between UUID v4 and v7?

Version 4 is completely random. Version 7 starts with the current time in milliseconds followed by random bits, so v7 UUIDs sort in the order they were created. That makes them much better as database primary keys, because new rows go at the end of the index.

Can two UUIDs be the same?

In practice, no. A v4 UUID has 122 random bits. You'd need to generate about a billion UUIDs per second for 85 years to have a 50% chance of a single duplicate.

Is a UUID the same as a GUID?

Yes. GUID (globally unique identifier) is Microsoft's name for the same 128-bit identifier. Both are written as 32 hexadecimal digits in groups of 8-4-4-4-12.

Are these UUIDs secure?

They're made with your browser's cryptographically secure random number generator (crypto.getRandomValues), the same source used for encryption keys. Nothing is sent to or stored on a server.

Related tools