UUID Generator

Use this UUID generator to create random version 4 UUIDs — one at a time or a batch of up to 50 — with your choice of letter case and hyphen style.

1Choose how many UUIDs you need
2Tick uppercase or no-hyphens if needed
3Press “Generate” and copy the list

0 UUIDs generated

Private by design: 100% in your browser — nothing is uploaded, no sign-up. This tool runs entirely on your device.

How to use this UUID generator

Set the quantity — one for a quick identifier, up to fifty when you are seeding a test database or preparing fixtures — choose your format options, and press Generate. Changing any option regenerates the list immediately. Every value is a fresh, independent random UUID: press the button twice and nothing repeats. Copy takes the whole list, one UUID per line, ready to paste into SQL inserts, JSON fixtures or configuration files.

The two format options exist because real systems disagree about presentation. Most databases and APIs expect the canonical form: lowercase, with hyphens, in the 8-4-4-4-12 grouping. Some legacy systems and compact storage formats want the 32 hex digits with no punctuation, and a few style guides display UUIDs in uppercase. All three are the same identifier underneath — the bits never change, only the spelling — but matching the exact format your system validates against saves a rejected import.

Example: reading a UUID

Every UUID this page makes follows the same anatomy. Take one generated while writing this guide:

58f5f89a-d794-4803-8214-97f702c3477f

The third group starts with a 4 — that single digit is the version marker, announcing “I was made from random numbers”. The fourth group starts with 8 (it can be 8, 9, a or b), which marks the standard RFC 4122 variant. Everything else — 122 bits of it — is pure randomness from your browser's secure generator. Yours will look different in every position except those fixed markers, which is exactly the point.

Why UUIDs exist

Sequential IDs (1, 2, 3…) work until more than one system creates records at the same time: two servers, an offline mobile app, a merged database. Then the counters collide, and worse, the numbers leak information — a competitor can guess how many orders you have taken from the gap between two order IDs. UUIDs solve both problems by making identifiers that any system can mint independently, with no coordination and no meaningful order. That is why they appear as primary keys in distributed databases, as session and transaction IDs in payment systems, as file names in uploads, and as correlation IDs in logs. When a design says “just give it a UUID”, it is buying uniqueness without a central counter — and the price, a longer and less human-friendly identifier, is usually worth paying.

Choosing an identifier scheme

UUID v4 is the right default surprisingly often, but it is worth knowing the alternatives it beats and the two cases where something else wins. Auto-increment integers are compact and sort naturally, and they remain a fine choice inside a single database that will never merge with another — their weaknesses (collisions on merge, guessable record counts, one counter as a bottleneck) only bite at scale or in public URLs. Time-ordered identifiers — UUID versions 6 and 7, ULIDs and database snowflake IDs — embed a timestamp so new IDs sort roughly by creation time, which keeps database indexes efficient on very large tables; if your table will hold hundreds of millions of rows and insert order matters, ask your database about a time-ordered option. Short random strings (like the IDs in video URLs) trade a little collision-safety for human-shareable links — appropriate for public, unguessable URLs, inappropriate as a database's only key. For everything else — API resources, uploaded files, sessions, events, test data — a random v4 UUID is the boring, correct answer: no coordination, no leakage, no surprises, and supported natively by every stack you will ever deploy on. That boringness is precisely why this generator produces v4 and only v4.

Frequently asked questions

What is a UUID?

A UUID (Universally Unique Identifier) is a 128-bit identifier written as 32 hexadecimal digits in five groups, like 58f5f89a-d794-4803-8214-97f702c3477f. Systems use UUIDs to label records, sessions, files and transactions without needing a central authority to hand out numbers.

What does version 4 mean?

Version 4 UUIDs are generated from random numbers — 122 of the 128 bits are random, with a few bits fixed to mark the version and variant. You can recognise a v4 UUID by the '4' at the start of the third group and an 8, 9, a or b at the start of the fourth group.

Can two generated UUIDs ever collide?

In practice, no. With 122 random bits there are about 5.3 × 10^36 possible v4 UUIDs. You would need to generate billions of UUIDs per second for decades before a duplicate became likely — which is why databases and distributed systems rely on them without checking for clashes.

How are these UUIDs generated?

With the Web Crypto API in your browser — crypto.randomUUID() where available, otherwise crypto.getRandomValues(), the cryptographically secure random source. They are never generated with ordinary predictable random functions, and nothing is sent to a server.

What is a UUID without hyphens used for?

Some systems store or transmit UUIDs as a compact 32-character hex string — certain databases, file formats and APIs among them. The value is identical; only the punctuation differs. Untick the hyphens option here to get that format.

Does uppercase versus lowercase matter?

Not to the value: A-F and a-f are the same hex digits, and most systems accept either. Some older tools and style guides display UUIDs in uppercase. Use whichever your system expects — comparisons in most databases are case-insensitive for UUID columns.

What is the difference between a UUID and a GUID?

GUID is Microsoft's name for its implementation of the same standard. A GUID and a UUID are the same format and, for version 4, generated the same way — values from this page can be used anywhere a GUID is requested.

Why not use version 1 UUIDs?

Version 1 UUIDs are built from the current time and the generating machine's network address. That leaks when and where an ID was created and can be predicted, so for a public web tool, random version 4 is the safer, standard choice — it is what most modern systems generate by default.

Can I use these UUIDs in my database or app?

Yes. They are standard RFC 4122 version 4 UUIDs, accepted by PostgreSQL's uuid type, MySQL, MongoDB and every major programming language's UUID library. Generate a batch of up to 50 when you need seed data or test fixtures.

Related tools