Developer

How to Generate a UUID (v4)

4 min read Updated 30 June 2026

A UUID (universally unique identifier) is a 128-bit value that's effectively guaranteed to be one of a kind, which makes it perfect for database keys, API request IDs, file names, test data, and anywhere you need an identifier that won't collide. The most common flavor is version 4 — a UUID built almost entirely from random data.

The fastest way to get one is Tooldrop's UUID generator. It runs entirely in your browser using the built-in Web Crypto API, so the IDs are cryptographically random and nothing ever leaves your device. It's free, there's no sign-up, and there are no limits on how often you use it. This guide walks through generating a single UUID, generating a batch, and copying them — plus a quick primer on what v4 actually means.

Step by step

  1. 1Open the UUID generator at /dev/uuid-generator — no account or download needed.
  2. 2Find the "How many" field in the Generate UUIDs panel. It defaults to 5; type 1 if you only need a single UUID, or any number up to 100 for a batch.
  3. 3Click the Generate button. The IDs appear instantly in the Result panel below, one per line.
  4. 4Read off your UUID, or click Copy all to copy every generated value to your clipboard at once (they're separated by line breaks, ready to paste).
  5. 5Need a different set? Just change the count or click Generate again — each click produces fresh, random v4 UUIDs.
Try it now — it's free
Runs in your browser. No upload, no sign-up.
Open UUID Generator

What "v4" means and why it's random

UUIDs come in several versions. Version 1 is based on your timestamp and network MAC address; version 4 is generated from random (or pseudo-random) numbers. Tooldrop produces v4 UUIDs, which look like this: 3f2504e0-4f89-41d3-9a0c-0305e82c3301. The digit in the third group is always 4 (marking the version), and the first digit of the fourth group is 8, 9, a, or b (the variant) — the rest is randomness.

That randomness is what makes v4 so popular: there's no central registry and no coordination needed. Two people on opposite sides of the world can both generate a v4 UUID and the odds of a clash are astronomically small. Because v4 carries no timestamp or hardware identifier, it also doesn't leak information about where or when it was created — a nice privacy bonus over v1.

Cryptographically random, and private by design

Tooldrop's UUID generator calls crypto.randomUUID() from the browser's Web Crypto API. That's the same secure randomness source browsers use for sensitive cryptographic work, so these aren't just "good enough" random numbers — they're cryptographically strong. That matters if your UUIDs double as hard-to-guess tokens or session IDs.

Just as important: the generation happens locally, in the tab you have open. No UUID is sent to a server, logged, or stored. If you generate a batch of IDs for production keys or test fixtures, they exist only on your machine until you copy them somewhere. That on-device approach is how most Tooldrop tools work, which is why you can use them freely without an account.

Generating many at once

For seeding a database, building a fixtures file, or stress-testing an API, you'll often want a list of UUIDs rather than one. Set the "How many" field to the count you need (up to 100 in the interface), click Generate, and you'll get a clean, line-separated list in the Result panel.

Click Copy all and paste the whole block straight into your code editor, a CSV column, a SQL insert, or a spreadsheet. Each value is unique, so there's no need to de-duplicate. Want a completely different set? Click Generate again — every run is independent and fully random.

Frequently asked questions

What version of UUID does Tooldrop generate?
Version 4 — UUIDs built from random data. You can spot a v4 UUID by the 4 at the start of its third group, for example 3f2504e0-4f89-41d3-9a0c-0305e82c3301. V4 needs no central authority and carries no timestamp or hardware info.
Are the UUIDs cryptographically random?
Yes. They're generated with the browser's Web Crypto API via crypto.randomUUID(), the same secure randomness source used for cryptographic operations, so the values are suitable for keys and hard-to-guess identifiers.
Are my UUIDs uploaded or stored anywhere?
No. Generation happens entirely in your browser. The UUIDs never touch a server and aren't saved — they exist only in your tab until you copy them. There's also no sign-up and no usage limit.
How many UUIDs can I generate at once?
Choose any count up to 100 in the "How many" field, click Generate, and use Copy all to copy the whole line-separated list. Run it as many times as you like for more.

Tools used in this guide

Related guides