UUID generator

Make random version 4 or time-ordered version 7 UUIDs, one or a thousand at a time, in your browser.

Everything happens on your device. What you type never leaves it.

Version
Upper caseHyphens

This tool needs JavaScript to run

About this tool

This tool makes UUIDs, the 128-bit identifiers that programs use to name records, files and requests without asking a central server for a number. Choose version 4 for a fully random identifier or version 7 for one that starts with the current time, pick how many you want, from 1 to 1000, and press Regenerate for a fresh set.

A version 4 UUID is made of random bits, so any two are extremely unlikely to match. A version 7 UUID begins with a millisecond timestamp, so UUIDs made later sort after earlier ones, which keeps database indexes tidy. Inside one batch the tool keeps version 7 values in strictly increasing order, even when many are made in the same millisecond. You can also switch to upper case or remove the hyphens.

Everything happens on your device. The randomness comes from your browser's secure random number generator, nothing is sent to a server, and the first UUID is made in your browser, not baked into the page, so no two visitors ever see the same one. After your first visit the tool also works with no connection.

Examples

One random UUID (version 4)

Input

Version 4, count 1

Output

3b241101-e2bb-4255-8caf-4136c566a962

Time-ordered UUIDs (version 7)

Input

Version 7, count 3

Output

018f3c5e-7a41-7c2b-9d10-5b8e2f6a1c04
018f3c5e-7a41-7c2c-8e3a-0f7d9b2c4a15
018f3c5e-7a41-7c2d-a1b6-6c4e8d0f3b26

Upper case without hyphens

Input

Version 4, count 1, upper case on, hyphens off

Output

3B241101E2BB42558CAF4136C566A962

Common questions

Are the UUIDs made on my device?

Yes. They are made by code running in your browser, using its secure random number generator. Nothing is sent to ajx.io or to anyone else, and the tool keeps working if you go offline.

What is the difference between version 4 and version 7?

Version 4 is random from start to finish. Version 7 starts with the time in milliseconds and then adds random bits, so newer values sort after older ones. Use version 7 for database keys you want to stay in order, and version 4 when you want nothing to be guessable from the value.

Could two UUIDs ever be the same?

A version 4 UUID has 122 random bits, so the chance of two matching is so small that it is ignored in practice, even across billions of values. Version 7 has fewer random bits per millisecond, but the tool also counts up within a batch, so values made together never repeat.

Is a UUID a secret?

No. A UUID is an identifier, not a password or a token. Anyone who sees it can use it as a name, so do not rely on it staying unguessable to protect something. For a secret value use the password generator.

Why does the page start with a value already in the box?

As soon as the page is ready in your browser it makes a UUID for you, so you can copy it straight away. It is made on your device each time, never stored in the page, and Regenerate gives you a new one.