UUID Generator

Create random version 4 UUIDs (also called GUIDs) for database records, test data, file names or API requests. Choose how many you need, from 1 to 1000, upper or lower case, and whether to keep the hyphens. The identifiers come from your browser’s cryptographically secure random generator and are never sent anywhere.

Tools

Loading tool…

At a glance

Version
UUID version 4 (random)
Quantity
1 to 1000 per click
Formats
Lower or upper case; with or without hyphens
Randomness
crypto.randomUUID in your browser

How it works

  1. Choose how many

    Enter a number from 1 to 1000.

  2. Pick the format

    Upper or lower case, with or without hyphens.

  3. Generate and copy

    Press Generate UUIDs, then copy the list.

UUID or another identifier?

Choose by who will read the ID.

OptionBest forTrade-off
UUID Generator (this page)Unique IDs for systems and databases.Long and not human-friendly.
Password GeneratorSecrets people must keep private.Not designed as identifiers.
Barcode GeneratorIDs that must be scanned.Encode a shorter code for easier scanning.
QR Code GeneratorSharing an ID or link by camera.Needs a phone to read.
Epoch ConverterTime-based references.Not unique on their own.

Example: five IDs for test records

You need five unique IDs for sample rows in a database.

  1. Leave How many at 5 and press Generate UUIDs.
  2. Five lines appear, each like 3f1c2a9e-8b7d-4c21-9f0a-1e2d3c4b5a69, with 4 as the first digit of the third group.
  3. Untick With hyphens to get 32-character IDs for systems that do not accept hyphens.

When to use UUID Generator

Use it when seeding databases with test records, labelling uploaded files or exports, creating request IDs while testing APIs, or giving temporary items a unique reference that does not reveal a sequence.

What a version 4 UUID contains

A UUID is 128 bits shown as 32 hexadecimal digits in five groups. In version 4, 122 bits are random; the remaining bits mark the version (the 4 at the start of the third group) and the variant.

Why random IDs are useful

Unlike counting numbers, random IDs can be created anywhere without checking a central list, and they do not reveal how many records exist or which came first.

Not a secret

UUIDs are unique, not confidential. Do not use them as passwords or access tokens unless your system is designed for it.

Formats systems expect

Most databases and programming languages accept the standard lowercase form with hyphens, such as 123e4567-e89b-42d3-a456-426614174000. Some Microsoft tools display GUIDs in upper case, and some systems store the 32 digits without hyphens. The options here cover those forms without changing the underlying random value.

Using UUIDs in spreadsheets

To give rows in a spreadsheet unique references, generate as many UUIDs as there are rows, copy the list and paste it into a column. Each line becomes one cell, and because every value is random, you can merge sheets later without clashes.

Checking a UUID by eye

A valid version 4 UUID has 36 characters with hyphens: groups of 8, 4, 4, 4 and 12 hexadecimal digits. The third group starts with 4, and the fourth group starts with 8, 9, a or b. A value that breaks this pattern was not produced as a standard version 4 UUID, which is a quick way to spot copy-and-paste mistakes in configuration files or test data.

UUIDs and database performance

Random version 4 UUIDs spread new rows across an index, which can slow inserts in very large tables. Some systems prefer time-ordered identifiers such as UUID version 7 for that reason. For most applications, test data and file names, version 4 is simple and perfectly adequate.

UUIDs in URLs and file names

Because UUIDs contain only letters, digits and hyphens, they are safe in web addresses and file names on every operating system. They also reveal nothing about the order or number of records, which is why many sites use them in links to documents and orders.

If something looks wrong

Nothing appears
Press Generate UUIDs; the list is created only when you ask.
An error says 1 to 1000
Generate in batches of up to 1000.
My system rejects the IDs
Some systems want upper case or no hyphens. Change the options and generate again.
The button does nothing in an old browser
crypto.randomUUID needs a current browser over HTTPS.

Common questions

Can I generate version 1 or 7 UUIDs?

No, only version 4.

Are the IDs stored?

No. Generating again replaces the list.

Can I download them as a file?

Copy the list and paste it into a file or spreadsheet.

Can two generated UUIDs be the same?

In practice no. Version 4 UUIDs have 122 random bits, so a repeat is astronomically unlikely.

Is a UUID the same as a GUID?

Yes. GUID is Microsoft’s name for the same 128-bit identifier format.

Which random source is used?

The browser’s crypto.randomUUID function, which uses a secure random generator.

IDs are produced by your browser’s secure random generator; SortMyFile never sees them.