By Usama Farooq · Published 29 Nov 2026
How I Built a Free UUID Generator for the Browser
A UUID is a 128-bit identifier written as 32 hex digits in five groups — and I built a free UUID generator that creates them entirely in your browser, with no server and no sign-up. It supports v4, v7 and v1, generates up to 1,000 at once, and decodes any UUID to reveal its version and timestamp.
Try the free UUID Generator
Use ToolsOfWeb's UUID Generator to create v1, v4 or v7 UUIDs in your browser — no upload, no sign-up, and your data never leaves your device.
What is a UUID, and why does every app need one?
A UUID (Universally Unique Identifier) is a 128-bit number, usually written as 36 characters with hyphens, like 550e8400-e29b-41d4-a716-446655440000. Apps use UUIDs as database keys, API tokens and file names because any device can create one without asking a central server — and the chance of two ever colliding is effectively zero.
The format is fixed: 32 hexadecimal digits in groups of 8-4-4-4-12, separated by hyphens. A few digits are not random — one records the version (v1, v4, v7) and one the variant.
Apps reach for UUIDs instead of counting numbers because of distribution. An auto-incrementing ID needs one central counter, which breaks the moment two servers or two offline phones create records at once. A UUID needs no coordination: devices anywhere can mint IDs independently, and they still will not clash when the data is merged. Sequential IDs also leak information — nobody can guess how many users you have.
The current standard is RFC 9562, published by the IETF in May 2024. It replaces the older RFC 4122 and adds three new versions — v6, v7 and v8. Version 7 is the one that changed how developers think about UUIDs, and the reason I built this tool the way I did.
How does the generator make a random v4 UUID?
Version 4 is the simplest UUID: 122 random bits plus 6 fixed bits marking the version and variant. My generator fills 16 bytes with crypto.getRandomValues(), the browser's cryptographically secure random source, then sets the version nibble to 4 and the variant bits to 10 — the same call behind crypto.randomUUID(), done by hand so I control the format.
The randomness source matters. Math.random() is not cryptographically secure — its output can be predicted if an attacker learns enough past values — so it is unfit for tokens or session IDs. crypto.getRandomValues() draws from the operating system's entropy pool — the same source your browser uses for TLS keys — so each byte is genuinely unpredictable, for every version the tool generates.
The six fixed bits are the only non-random part: four bits in the third group are set to 0100, the digit 4, and two bits in the fourth group are set to 10, marking the standard variant. Everything else is chance: 122 random bits, about 5.3 × 10^36 possible values. That is why v4 is the safe default for tokens, and why the same secure randomness also powers the free Password Generator.
Why did I add v7 — and how is it built?
Version 7 is the modern default for database keys: its first 48 bits are the Unix timestamp in milliseconds, so new UUIDs sort in creation order and land next to each other in an index. I build it from Date.now(), fill the remaining bits with crypto.getRandomValues(), and stamp the version and variant bits, following the layout in RFC 9562.
The layout is precise: 48 bits of millisecond timestamp, 4 bits for the version (0111, the digit 7), 12 random bits, 2 variant bits, and 62 random bits. The timestamp goes first on purpose — sorting v7 UUIDs as strings also sorts them by creation time, so newest-first listings need no separate timestamp column.
That ordering is what v4 cannot give you. Random v4 keys scatter new rows all over a database index, forcing page splits and slowing inserts as the table grows. With v7, new rows append near each other, so inserts stay fast and range scans read sequentially — a big enough win that PostgreSQL 18 ships a native uuidv7() function and Python 3.14 added uuid.uuid7(). For the full story, read the time-ordered UUID v7 guide.
Version 1 is the older time-based design: current time in 100-nanosecond intervals since 15 October 1582, plus a clock sequence and node identifier. I included it for compatibility — old systems still expect v1 — but not for new work, since it exposes the creation time and, classically, the machine's MAC address. Version 7 keeps the time-ordering and drops that problem, which is why it is the default.
How does bulk generation of 1,000 UUIDs work without slowing down?
Generating 1,000 UUIDs is just 1,000 tiny loops of the same code — 16 random bytes each, about 16 KB of randomness — so the whole batch finishes in a few milliseconds. The real work is in the interface: a copy button per row, a copy-all button, and a download that saves the batch as a .txt file.
Each UUID is generated independently in a plain loop, with no network request and no waiting on a server — a server-based generator would need a round trip per batch and would rate-limit you. The count field validates the input first (a whole number from 1 to 1,000), so a typo cannot freeze the page.
The output handling took more care. Copying uses the clipboard API with a fallback message if the browser blocks it, and the download builds a text Blob in memory, creates a temporary object URL, and revokes it a second later. Nothing is uploaded — a thousand UUIDs leave your device only when you copy or download them. The same build-first approach shaped the free JSON Formatter.
How does the UUID decoder read a hidden timestamp?
For v1 and v7 UUIDs, the creation time is not hidden — it is the first part of the UUID itself. The decoder reads the version digit, then pulls the timestamp bits back out: the 48-bit millisecond timestamp in v7, or the 100-nanosecond intervals since 15 October 1582 in v1, and converts them into a date and time.
Decoding is pure bit arithmetic. The decoder checks the format — 32 hex digits, hyphens in the right places — then reads the version nibble and variant bits. For v7 it takes the first 48 bits as a millisecond count and turns it into a date; for v1 it reverses the 100-nanosecond count and the Gregorian epoch offset. A v4 UUID has no timestamp, so the decoder says so plainly.
One privacy note: anyone who sees your v7 UUID can tell exactly when it was created, to the millisecond. That is usually harmless — a created_at column would show the same — but it is a reason not to use v7 for public tokens. The tool also generates the nil UUID (all zeros) for testing.
FAQs
Yes, if generation happens in your browser, as it does here — the UUIDs never leave your device. Avoid any generator that sends a request to a server for identifiers tied to private data. You can confirm zero network requests in your browser's developer tools Network tab.
Effectively zero. A version-4 UUID has 122 random bits, about 5.3 × 10^36 possible values. You would need roughly 2.7 quintillion UUIDs to reach even a 50% chance of one collision — at a billion per second, about 85 years. Collisions are not worth planning around.
Use v7 for anything stored in a database: its timestamp prefix keeps new rows close together, so inserts and range queries run faster. Use v4 for tokens, nonces and one-off identifiers, where ordering does not matter and maximum unpredictability is the goal. Both are random and standard.
Almost none. GUID is Microsoft's name for the same 128-bit format defined by RFC 9562, so a GUID from Windows and a UUID v4 are identical and interchangeable. GUID mostly appears in .NET and Windows documentation; everywhere else — Linux, databases, APIs — the same value is called a UUID.
Yes. The free UUID generator creates up to 1,000 UUIDs at once in v1, v4 or v7, copies them all with one click, or downloads them as a text file. No account, no email, no upload — everything runs in your browser, so you can generate a thousand IDs, leaving nothing behind.
Try the free UUID Generator
Open the UUID Generator and create v1, v4 or v7 UUIDs in your browser — free, no sign-up, your data never leaves your device. Generate one or a thousand, decode any UUID, and copy or download in seconds.
If you liked this build story, read how I built the free JSON Formatter and how JWTs work under the hood — and see the time-ordered UUID v7 guide for the v7 deep dive. For related tools, try the UUID v7 Generator and the Hash Generator.
