UUID

UUID Generator

Details

How to use UUID Generator

What the tool does, how to run it, and what to expect from the result.

How to generate a UUID

A UUID is a 128-bit identifier that can be generated anywhere, by anyone, without coordination, and still be unique. That property is what makes it the default identifier for distributed systems, where a central counter would be a bottleneck.

These are version 4 UUIDs, generated by your browser's cryptographically secure random number generator. They are unguessable and never transmitted.

  • Choose how many UUIDs you need, up to 100 at a time.
  • Generate and copy the results, which come out in the standard lowercase hyphenated form.
  • Use them as identifiers for records, requests, sessions, or files, wherever you need uniqueness without a central authority.
  • If these are going to be database primary keys, consider UUID v7 instead, since v4's randomness fragments the index.
  • Store them as 16 bytes in a native uuid or BINARY(16) column rather than as a 36-character string.
Tips

Getting a better result out of UUID Generator

Specific settings and thresholds, not general advice.

  • These are version 4 UUIDs, which are random rather than time-based. 122 of the 128 bits are random (the other 6 encode the version and variant), and the randomness comes from the browser's cryptographically secure generator, so a v4 UUID is unguessable and can safely be used as a capability token or an unlisted URL.
  • Do not use a v4 UUID as a clustered primary key in a database. Because it is random, each insert lands in a random position in the B-tree index, causing page splits and fragmentation, and write performance degrades badly as the table grows. This is one of the most expensive mistakes to discover late.
  • UUID v7 is the answer to that problem and it was standardised in RFC 9562 in May 2024. It puts a millisecond timestamp in the high bits, so v7 identifiers sort chronologically and insert sequentially into an index while remaining globally unique. If you are choosing an ID type for a new table, v7 is usually the right choice.
  • Store a UUID as 16 bytes, not as a 36-character string. A native uuid column in Postgres, or BINARY(16) in MySQL, uses less than half the space of the text form and compares faster. Storing UUIDs as CHAR(36) is a widespread and quietly expensive habit.
  • Version 1 UUIDs embed the generating machine's MAC address and a timestamp, which is a genuine privacy leak: it famously helped identify the author of the Melissa virus. If you inherit a system emitting v1, that is a reason to move.
Limits

What UUID Generator does not do

The honest boundary, so you do not lose time finding it yourself.

  • It generates version 4 only, so it cannot produce the time-ordered v7 that databases prefer, or the deterministic namespace-based v5.
  • It generates up to 100 at a time, so bulk seeding of a large table needs to be done in code.
  • It outputs the lowercase hyphenated form only, with no uppercase, no braces, and no URN prefix.
  • It does not produce a v5 UUID from a namespace and a name, which is what you need when the same input must always yield the same identifier.
At a glance

Who UUID Generator is for

A quick way to understand who this helps, what it solves, and where it connects next.

Best fit

Developers, designers, and anyone who needs quick, private generated values.

Ideal for

Generating values on demand without a backend, install, or sign-up.

FAQ

Common questions

Short answers for the questions people usually have before trying a utility like this.

Is the UUID generator free?

Yes. It is completely free to use, with no signup, no account, and no paywall.

Do I need to install anything?

No. It runs in any modern browser on desktop or mobile, with nothing to download and nothing to configure.

Does it stay local?

Yes. Generation happens entirely in your browser, and nothing is sent to a server.

Which UUID version is this, and does it matter?

Version 4, which means the identifier is essentially random: 122 random bits with 6 bits reserved to mark the version and variant. It matters a great deal for two reasons. Because it is random, it carries no information about when or where it was created, which is good for privacy and bad for database indexes. And because it is random and generated with a cryptographically secure source, it is unguessable, which means unlike a sequential integer it can safely appear in a URL you do not want enumerated.

Can two UUIDs collide?

In principle yes, in practice no. With 122 random bits, you would need to generate roughly 2.7 quintillion UUIDs before reaching a 50% chance of a single collision. To put that in perspective, generating a billion UUIDs per second, continuously, would take about 85 years to reach that probability. Every practical system treats v4 UUIDs as unique without coordination, which is the entire reason they exist: you can generate one on a laptop that is offline and be confident nobody else has it.

Why do people warn against UUIDs as database primary keys?

Because of what randomness does to a B-tree. A sequential integer key appends every new row at the right-hand edge of the index, which is cheap and keeps the tree compact. A random v4 UUID lands at an unpredictable point in the index on every insert, which causes page splits, fragments the tree, and destroys the locality that makes the buffer cache effective. On a large, write-heavy table the difference is dramatic. This is exactly the problem UUID v7 was designed to fix, by making the high bits a timestamp so inserts are ordered again.

Is a UUID a secret?

A version 4 UUID can be treated as one, which is unusual among identifier schemes. With 122 bits of cryptographically secure randomness it is not guessable or enumerable, so an unlisted URL keyed on a v4 UUID is genuinely hard to find. That is not true of v1, which encodes a MAC address and a timestamp and is therefore predictable. Even so, an unguessable URL is a weak form of access control: it leaks through browser history, referrer headers, and shared links, so it is a convenience, not authentication.

Are the UUIDs generated on a server?

No. They are generated by your browser, using crypto.randomUUID where it is available and a cryptographically secure fallback where it is not. Nothing is transmitted, and the identifiers exist only in the page until you copy them.

Recommendations

You Might Also Like

Nearby tools from the catalog that fit the same job or workflow.

Cleanor app

Do it all on your device

Cleanor puts these tools in one app: compress and convert images, video, and audio, work with PDFs, and scan text right on your device. Plus free up storage and clear inbox clutter with Email Cleaner. Start with a free trial.

  • iPhone
  • Android
  • Macsoon
  • Windowssoon