Home›Tools›UUID Generator

UUID Generator

Generate random version 4 UUIDs using your device's cryptographically secure random source. Create one at a time or a batch of up to 100, with per-ID copy buttons and whole-batch copy.

Between 1 and 100. Version 4, generated with crypto.getRandomValues().

How to use this tool

  1. Choose how many UUIDs you need, from 1 to 100.
  2. Press Generate UUIDs to create a new batch.
  3. Use the Copy button beside any ID, or Copy all to copy the batch one ID per line.

What a version 4 UUID contains

A UUID is a 128-bit identifier written as 32 hexadecimal digits in five groups: 8-4-4-4-12, for example f47ac10b-58cc-4372-a567-0e02b2c3d479. Version 4 UUIDs are generated from random bits rather than a timestamp or hardware address.

PartMeaning
xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxxThe version nibble is 4 and the variant nibble starts with 8, 9, a, or b.
Random bitsThe remaining bits come from the browser's cryptographically secure random generator.

UUID v4 values are designed to be unique without coordination between systems. Random generation does not guarantee that a collision can never happen, but the number of possible values makes accidental duplicates vanishingly unlikely.

The IDs are created in your browser with crypto.getRandomValues() and are never sent to a server or stored by BrightKit. Generating a new batch replaces the previous one in the page.

Reading a version 4 UUID

The string f47ac10b-58cc-4372-a567-0e02b2c3d479 has five groups of 8, 4, 4, 4, and 12 hexadecimal digits. Three details carry information beyond the random bits.

The first digit of the third group is the version, always 4 here. The first digit of the fourth group is the variant, which is 8, 9, a, or b for RFC 4122 UUIDs. Everything else comes from the random source. Count the free bits and you get 122, which is why two independently generated values are not expected to collide.

How much data a batch produces

Each UUID is 36 characters in its written form. Adding a line break per ID gives 37 bytes per row.

Batch size Approximate text size Typical use
1 37 bytes One identifier for a record or test case
10 370 bytes Seeding a small fixture file
100 3.7 KB Bulk insert, spreadsheet import

The page caps a batch at 100 to keep rendering and copying responsive. Generating another batch produces a fresh set, and the previous one is discarded from the page.

Where random UUIDs are a poor fit

Random identifiers spread across the whole key space. In a database that stores rows in key order, that means inserts land in many places rather than at the end, which costs more as a table grows. If insert locality matters, a time-ordered identifier such as UUID version 7 or a ULID is the better choice.

Random values are also poor human references. Nobody reads a UUID aloud correctly, so tickets, invoices, and support cases usually need a short sequential number alongside the internal ID.

Text, binary, and storage width

The canonical 36-character form is for people and text formats. Inside a database, the same value fits in 16 bytes when the column has a native UUID or binary type. Storing it as a variable-length string takes 36 bytes plus length overhead, and every index on that column carries the larger key.

Text formats matter when the value leaves the database. Hexadecimal with hyphens is the default in JSON and URLs. Base64 of the 16 raw bytes is shorter but less recognizable, and a few systems drop the hyphens entirely. Pick one representation per system and convert at the boundary rather than mixing them in storage.

A UUID is an identifier, not a secret

The value is unpredictable, but it is also written into URLs, logs, and database rows by design. Treat it as a name for a record. A password reset link or session token needs its own random secret and an expiry, and the Password Generator is built for that job.

Frequently asked questions

Yes. The random bytes come from the browser Web Crypto API using crypto.getRandomValues(), not from Math.random(), and the version and variant bits are set according to RFC 4122.

A version 4 UUID has 122 random bits, so a duplicate is extraordinarily unlikely. The tool does not check the batch for duplicates because the probability is negligible.

The terms are often used interchangeably. Microsoft environments commonly call the same 128-bit identifier a GUID, while UUID is the standard term used by RFC 4122 and most other platforms.

No. All IDs are generated locally in your browser and are discarded when you generate another batch, refresh, or close the page.

The on-screen limit is 100 per batch to keep the page responsive. Generate another batch if you need more.

More in Developer Tools JSON, Base64, URLs, entities, IDs, and Markdown.