RUN

UUID Generator (v4 and v7)

Generate random or time-ordered UUIDs, one or a thousand at a time, and copy them in the format you need.

Runs in your browser · nothing is uploaded

How to use the UUID Generator

  1. Choose the version: v4 (random) or v7 (time-ordered).
  2. Choose how many you need, from 1 to 1,000, and the format: lower or upper case, with or without hyphens, with or without braces.
  3. Press Generate, then copy them all, one per line.
  4. To inspect an existing UUID, paste it under Check a UUID to see its version and, for v7, when it was created.

About this tool

A UUID (universally unique identifier, called a GUID in the Microsoft world) is a 128-bit value written as 32 hex digits in five groups, like 0f8fad5b-d9cb-469f-a165-70867728950e. They can be created anywhere, without asking a central server, with practically no risk of two being the same, which makes them ideal ids for database rows, files, requests and messages.

Version 4 is random: 122 random bits from your browser’s cryptographically secure generator. Version 7, standardised in RFC 9562 in 2024, starts with the creation time in milliseconds followed by random bits, so new ids sort after old ones. That keeps database indexes compact and fast, which is why v7 is now recommended for primary keys.

Since a v7 UUID contains its creation time, anyone can read when it was made. If that is sensitive, use v4.

Frequently asked questions

›Can two UUIDs be the same?

In practice, no. With 122 random bits you would need to generate billions of v4 UUIDs every second for decades to have a real chance of one duplicate.

›v4 or v7: which should I use?

v7 for database primary keys and anything you sort by creation time; v4 when ids must reveal nothing, including when they were made.

›Is a GUID the same as a UUID?

Yes. GUID is Microsoft’s name for the same 128-bit format. Some Microsoft tools show them in upper case inside braces, which the format options here can match.

›How do I generate a UUID in code?

JavaScript: crypto.randomUUID(). Python: uuid.uuid4(), and uuid.uuid7() from Python 3.14. PostgreSQL: gen_random_uuid().

›Is my data sent anywhere?

No. The tool runs entirely in your browser with JavaScript. What you paste is never uploaded, logged or stored on our servers, so it is safe to use with internal data, though you should still treat secrets with care on shared computers.