UUID Generator

Generate v4 and time-ordered v7 UUIDs using cryptographic randomness.

Press Generate.


Your UUIDs will appear here.

Anatomy of the first UUID

Features

  • Version 4 (random) and version 7 (time-ordered)
  • Bulk generation up to 1,000 at once
  • Five output formats including URN and brace notation
  • Cryptographically secure randomness via the Web Crypto API
  • Field-by-field breakdown of the generated value

How to use it

  1. Choose a version, v4 unless you need sortability.
  2. Set how many you need.
  3. Press Generate.
  4. Copy the list or download it as a text file.

Choosing between v4 and v7

A version 4 UUID is 122 random bits with six bits reserved for version and variant markers. That gives about 5.3 × 10³⁶ possible values, which is enough that collisions are not a practical concern, you would need to generate roughly a billion per second for 85 years to reach a 50% chance of a single collision. This tool draws from crypto.getRandomValues(), not Math.random(), which matters: Math.random() is not cryptographically secure and its output can be predicted from previous values.

Version 7 was standardised in RFC 9562 in 2024 and solves a real database problem. Because v4 UUIDs are entirely random, inserting them as a primary key scatters writes across the whole B-tree index, which fragments pages and slows inserts badly at scale. A v7 UUID puts a 48-bit millisecond timestamp in the high bits, so newly generated values sort after older ones and inserts land at the end of the index. If you are choosing a primary key type today, v7 is usually the better default.

Two things v7 gives up. It leaks the creation time of the record, which may matter if the identifier is exposed publicly. And it is only sortable to millisecond precision, values generated within the same millisecond order randomly among themselves, so it is not a substitute for a real sequence when strict ordering matters.

Frequently asked questions

Yes, completely. UUID Generator is free with no usage limits, no account and no sign-up. There is no paid tier and no trial that expires. Tools marked Premium on this site carry that label to indicate a deeper feature set, not a price.
UUID Generator covers version 4 (random) and version 7 (time-ordered), bulk generation up to 1,000 at once, five output formats including URN and brace notation, among other things. Everything is available immediately with no account, no sign-up and no usage limit.
A version 4 UUID is 122 random bits with six bits reserved for version and variant markers. That gives about 5.3 × 10³⁶ possible values, which is enough that collisions are not a practical concern, you would need to generate roughly a billion per second for 85 years to reach a 50% chance of a single collision. This tool draws from crypto.getRandomValues(), not Math.random(), which matters: Math.random() is not cryptographically secure and its output can be predicted from previous values.
Everything happens inside your browser. The text you enter is processed by JavaScript running on your own device and is never sent to a server, there is no backend to send it to. You can confirm this in your browser's Network tab while you use the tool. Because nothing depends on a server, the tool also keeps working offline once the page has loaded, the site registers a service worker that caches it after your first visit.

Related tools

Further reading

📖 What Is a UUID and When Do You Need One?

Read the full guide on the 123MiniApps blog.

Pick a theme

Ten hand-tuned palettes.