UUID Generator

A UUID (universally unique identifier), also called a GUID, is a 128-bit ID such as 16e7b61e-0783-4c81-8243-5040d10d83ab. Systems use UUIDs as database keys, request IDs and file names because they can be created anywhere without checking a central list, with practically no chance of two being the same.

This UUID generator creates version 4 (random) UUIDs, from 1 to 1,000 at a time, using your browser's cryptographically secure random number generator. Copy them or download them as TXT, CSV or JSON.

What makes a version 4 UUID

A UUID is written as 32 hexadecimal digits in five groups: 8-4-4-4-12. In version 4, 122 of the 128 bits are random; the rest mark the version and variant, which is why the third group always starts with 4 and the fourth with 8, 9, a or b.

With 122 random bits there are about 5.3 × 10^36 possible values. You could generate a billion UUIDs every second for decades before a duplicate became likely, which is why systems can safely create them independently.

UUIDs as database keys

UUIDs let apps create IDs before saving to a database, merge data from several sources and avoid exposing record counts in URLs, which sequential IDs reveal. The trade-off is size: a UUID takes 16 bytes (36 characters as text) against 4 or 8 bytes for an integer, and random UUIDs can slow some database indexes on very large tables.

The tool also lists a "version 1" option, but it is a simulation for testing, not a true time-based UUID; use version 4.

How to use this tool

  1. Choose how many: Enter any number from 1 to 1,000.
  2. Generate: Click Generate to create the UUIDs.
  3. Copy or export: Copy all, or download as TXT, CSV or JSON.
  4. Use them: Paste into test data, seed scripts or configuration.

Features

Worked examples

A generated UUID

One version 4 UUID.

8-4-4-4-12 hex digits; third group starts with 4

Result: 16e7b61e-0783-4c81-8243-5040d10d83ab

Who it is for

Tips

Frequently asked questions

What is a UUID?

A universally unique identifier: a 128-bit value written as 36 characters, such as 16e7b61e-0783-4c81-8243-5040d10d83ab. It identifies records, files or requests without needing a central list of used IDs.

Can two UUIDs be the same?

In theory yes, but version 4 UUIDs have 122 random bits, giving about 5.3 × 10^36 possibilities. A duplicate is so unlikely that it is not a practical concern.

Is a UUID the same as a GUID?

Yes. GUID (globally unique identifier) is Microsoft's name for the same 128-bit format. A version 4 UUID can be used anywhere a GUID is expected.

Are these UUIDs random enough for production?

Yes. They come from your browser's cryptographically secure random number generator, the same source used for security keys.

Related tools