Skip to content
ToolZone

UUID Generator

Generate random version 4 UUIDs in bulk, universally unique identifiers commonly used as database keys, session tokens, or object references.

Runs in your browser. Nothing you enter or upload leaves your device.

v4 is 122 random bits from your browser's secure random generator.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

About the UUID Generator

The UUID Generator creates random version 4 UUIDs, the 36-character identifiers used as database keys, request IDs and file names. It also makes time-ordered version 7 UUIDs. Generate up to 1000 at a time, switch to uppercase, no hyphens or braces if your system expects it, and copy or download them.

How it works

A version 4 UUID is 128 bits, of which 122 are random. The remaining six bits are fixed: the first digit of the third group is always 4 (the version), and the first digit of the fourth group is always 8, 9, a or b (the RFC variant). The random bytes come from the browser's crypto.getRandomValues.

A version 7 UUID (RFC 9562) starts with the current Unix time in milliseconds, followed by random bits, so IDs created later sort after earlier ones. That keeps database indexes compact. Nil is the all-zero UUID. Formatting options change only how the IDs are shown: uppercase, without hyphens, or wrapped in braces.

How to use

  1. 1

    Choose Version 4 (random), Version 7 (time-ordered) or Nil.

  2. 2

    Enter how many you want, from 1 to 1000.

  3. 3

    Tick Uppercase, Hyphens or Braces to match the format your system expects.

  4. 4

    Click Generate, then copy one ID, Copy all, or Download the list as a text file.

Worked examples

Seed data for a database

You need three IDs for test rows.

Input
Count: 3
Result
Three lines like 3f2b8c1e-9d4a-4e7b-a1c6-5b0e2d9f7a13, each different

Note the 4 at the start of the third group and the a at the start of the fourth group; those positions mark version 4 and the RFC variant.

GUIDs for a Windows project

A .NET config file uses uppercase GUIDs.

Input
Count: 1, Uppercase ticked
Result
One value like 7C9E6679-7425-40DE-944B-E07FC1F90AE7
Limitations
Versions 1, 3, 5 and 6 aren't generated. Version 7 IDs made in the same millisecond are unique but not ordered among themselves. Generated IDs aren't saved; a new list replaces the old one.
Assumptions
The browser provides a cryptographic random source, as all modern browsers do.
Privacy
UUIDs are generated in your browser and nothing is sent to a server or stored.

Frequently asked questions

How unique is a generated UUID really?+

With 122 random bits, you would need to generate about 2.7 quintillion UUIDs to have a 50% chance of a single duplicate. For practical purposes, collisions do not happen.

Can I use UUIDs as primary keys in a database?+

Yes, it is a common pattern. They take more space than integers. Random v4 values aren't sorted by creation time, which can slow inserts on very large indexes, so version 7 is the better choice for keys.

What is the difference between a UUID and a GUID?+

They are the same thing. GUID is Microsoft's name for a UUID, and GUIDs are often written in uppercase, which the Uppercase option provides.

Are uppercase and lowercase UUIDs different?+

No. The hex digits are case-insensitive, so both represent the same value. RFC 9562 recommends lowercase output, but systems should accept either.

How can I tell which version a UUID is?+

Look at the first character of the third group: 4 for a version 4 UUID, 7 for version 7.

Related tools