UUID Generator

Generate unique identifiers (UUIDs) in various formats

By

Developer tools

UUID v4 Generator

Generate secure, universally unique identifiers (UUIDs) instantly.

Generated 0 unique identifiers

Runs in your browser. No signup required.

About the UUID Generator

Set a Quantity and the page lists that many version 4 UUIDs, one per line, ready to copy. Each is a 36-character identifier made of lowercase hex digits and hyphens, the kind used for database rows, test fixtures, and file names.

A new batch appears when the page loads, when you change Quantity, and when you press Regenerate. Nothing is stored, so a batch you want to keep has to be copied.

How to use the UUID Generator

Set the quantity, regenerate if you like, then copy the list.

  1. 1

    Enter how many you need in Quantity. It starts at 10 and accepts 1 to 1000.

  2. 2

    Look through the scrolling list. Changing Quantity builds a new batch straight away.

  3. 3

    Press Regenerate to replace the whole list with fresh values at the same quantity.

  4. 4

    Press Copy All to put every UUID on the clipboard, one per line. The button reads Copied All for two seconds.

  5. 5

    Check the line under the list, which reports how many identifiers were generated.

Worked examples

What each one looks like

Input: Quantity 1

Result: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx, where x is any hex digit and y is 8, 9, a, or b

The 4 marks version 4, and y marks the variant. The remaining digits are random.

Test data for a table

Input: Quantity 50, then Copy All

Result: 50 lines on the clipboard, separated by line breaks

Paste the lines into a spreadsheet column or a seed script.

A quantity above the limit

Input: Quantity 5000

Result: 1000 UUIDs are generated

The list is capped at 1000 even though the box still shows what you typed.

An empty or zero quantity

Input: Quantity 0, or the box cleared

Result: 1 UUID

How it works

A version 4 UUID is 128 bits. Six of them are fixed to mark the version and variant, which leaves 122 bits that come from your browser's secure random number source. The 128 bits are then written as 32 hex digits in five groups of 8, 4, 4, 4, and 12.

Because the values are random rather than counted, the page never needs to look at earlier ones. The chance of two matching is negligible at any realistic batch size, but the page does not compare the values against each other or against your database.

Limits and tips

  • Only version 4 is produced. There is no time-based or name-based version.
  • The output is lowercase with hyphens. Uppercase, braces, or no hyphens need a find-and-replace in your editor after copying.
  • Version 4 values are not in sorted order, which matters for some database indexes that prefer sequential keys.
  • A UUID identifies something. It does not protect it, so it is no substitute for access checks.
  • Quantity above 1000 is trimmed to 1000, and anything below 1 becomes 1.
  • Reloading the page produces a different list, and nothing is saved.

FAQ

What is a version 4 UUID?

It is a universally unique identifier built almost entirely from random bits. The fixed 4 in the third group names the version, so it can be told apart from other kinds.

Can two generated UUIDs ever be the same?

In principle yes, but with 122 random bits it is so unlikely that systems treat version 4 values as unique. This page does not check for repeats within a batch.

Is a GUID the same thing?

For practical purposes, yes. GUID is the name Microsoft tools use for the same 128-bit format.

Can I use one as an API key or a password?

The values are unpredictable, but a secret needs more than randomness, including safe storage and expiry. For a password, the Password Generator on this site lets you choose length and character types.

How do I get uppercase or no hyphens?

Copy the list, then change the case or remove the hyphens in a text editor. The page offers one format only.

Why did my Quantity change itself?

An empty or zero box is treated as 1, and the page generates at most 1000 at a time. Negative numbers also produce a single UUID.