How to Generate a UUID (v4)
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
- 1Open the UUID generator at /dev/uuid-generator — no account or download needed.
- 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.
- 3Click the Generate button. The IDs appear instantly in the Result panel below, one per line.
- 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).
- 5Need a different set? Just change the count or click Generate again — each click produces fresh, random v4 UUIDs.
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?
Are the UUIDs cryptographically random?
Are my UUIDs uploaded or stored anywhere?
How many UUIDs can I generate at once?
Tools used in this guide
Related guides
Paste any JSON Web Token to read its header and payload in seconds — free, private, and entirely in your browser.
Paste messy JSON, beautify or minify it, and catch errors instantly with this free in-browser JSON formatter.
Paste a JSON array of objects and get clean, spreadsheet-ready CSV in seconds — free, private, and entirely in your browser.