Logo

Bulk UUID & ULID Generator

Generate cryptographically secure UUIDs (v1, v4, v5) or ULIDs. Generate a single ID instantly or bulk generate up to 10,000 IDs and download as CSV. Uses smart hybrid processing.

Bulk Generation Settings

Generates instantly in your browser (Client-side).

UUID v4

Randomly generated. The most common standard for database primary keys.

ULID

Lexicographically sortable IDs. Great alternative to UUIDs when time-sorting matters.

UUID v5

Name-based UUID using SHA-1 hashing. Always returns the same UUID for the same name and namespace.

UUID v1

Time-based UUID. Contains MAC address of the generator. Use only when specifically required.

What is a UUID or ULID?

A UUID (Universally Unique Identifier) is a 128-bit number used to identify information in computer systems. UUIDs are widely used as primary keys in databases because their immense scale means they are effectively unique worldwide, requiring no central authority to coordinate generation.

A ULID (Universally Unique Lexicographically Sortable Identifier) is similar to a UUID but includes a timestamp at the beginning, making it alphabetically sortable by creation time. This solves a major performance issue when using UUIDs in databases like PostgreSQL or MySQL.

Features of this Generator

  • Bulk generate up to 10,000 keys at once
  • Export directly as CSV for immediate database seeding or API testing
  • Hybrid processing: Small batches run instantly in browser; large batches offload to a high-concurrency backend server to prevent crashing
  • Support for v1 (Time-based), v4 (Random), v5 (Name-based SHA-1), and ULID standards
  • 100% Free with no usage limits

Choosing between uuid v4 and the alternatives

Four versions see real use, and picking the wrong one usually shows up later as a performance problem rather than a bug.

Version 4 is 122 random bits. It carries no information, needs no coordination, and is the right default when identifiers are just identifiers.

Version 7 is the one to reach for when identifiers become database keys. Version 5 is for deterministic derivation. Version 1 exists mainly because older systems demand it, and it leaks a MAC address while doing so.

Why a random unique id generator can hurt database performance

This is the practical reason version 7 was standardised, and it is worth understanding before a table gets large.

Database indexes are ordered structures. Inserting sequential values appends to the end, which is cheap. Inserting random values scatters writes across the whole index, which causes page splits and more disk activity.

With a few thousand rows nobody notices. With tens of millions, insert throughput on random keys falls off noticeably while sequential keys hold steady. Version 7 gives you the time ordering without going back to auto-incrementing integers.

What a uuid v5 namespace is actually for

Version 5 hashes a namespace identifier together with a name, producing the same output every time for the same pair.

That is genuinely useful for derivation. Given a URL, you can produce a stable identifier for it without storing a mapping anywhere, and any system with the same namespace gets the same answer independently.

The trap is predictability. Because the output is determined by the input, anyone who can guess the input can compute the UUID. Never use version 5 for anything that needs to be unguessable, such as a share link or a reset token.

Where identifiers leak more than you expect

A UUID looks opaque, which makes it tempting to treat as a secret. That is where problems start.

Version 1 openly contains a timestamp and a MAC address. Version 7 contains a creation timestamp by design, so it tells anyone holding it roughly when the record was made. Version 4 and ULID reveal nothing about their contents, though ULID also encodes a timestamp.

Separately, any identifier in a URL ends up in server logs, browser history, bookmarks and sometimes referrer headers. An unguessable URL is a reasonable layer of obscurity and a poor substitute for an access check.

How to use the UUID Generator

  1. Choose a version: 4 for general use, 7 for database keys, 5 for deterministic output.
  2. Set how many you need — bulk generation produces a list in one go.
  3. For version 5, supply the namespace and name that should always map to this value.
  4. Copy the result, or download the list if you generated many.
  5. Store them consistently: either always with hyphens or always without.

What this tool handles

Five formats

UUID versions 1, 4, 5 and 7, plus ULID.

Bulk output

Generate a list at once instead of one at a time.

Time-sortable v7

The version that keeps database inserts sequential rather than scattered.

Local for most versions

Versions 1, 4, 7 and ULID use your browser's own crypto source.

Frequently asked questions

Which UUID version should I use?

▼
Version 4 for general use: random, no metadata, no coordination needed. Version 7 when the identifiers become database keys, because they sort by creation time. Version 5 when the same input must always produce the same identifier. Version 1 only for compatibility with something that demands it.

Why does version 7 matter for databases?

▼
Version 4 is random, so new rows land at random positions in an index. That fragments the index and slows inserts as the table grows. Version 7 puts a timestamp in the high bits, so new values sort to the end and inserts stay sequential. On a large table the difference is substantial.

Can two version 4 UUIDs collide?

▼
In theory yes, in practice no. There are 122 random bits, so the probability is small enough that you are more likely to hit a hardware fault. The real risk is a weak random source, not the format — which is why generating them with a proper cryptographic generator matters.

What is wrong with version 1?

▼
It embeds a timestamp and the machine's MAC address. That leaks when the identifier was created and which machine made it, which has been used to deanonymise documents before. If you want time ordering without the leak, version 7 is the modern answer.

How is version 5 different from version 4?

▼
Version 5 is a hash of a namespace and a name, so it is deterministic: the same inputs always produce the same UUID. That is useful for deriving a stable identifier from something you already have, such as a URL. It is not random and should never be used where unpredictability matters.

What is a ULID and when would I choose one?

▼
A 26-character identifier that is time-sortable and uses an alphabet without ambiguous characters. It is shorter than a UUID's 36 characters and more readable in a URL. The trade-off is that it is not a UUID, so libraries expecting the standard format will reject it.

Should a UUID be a primary key?

▼
It is a reasonable choice with real costs. You gain the ability to generate keys offline and without a round trip, and you stop leaking row counts. You pay in storage — 16 bytes against 4 or 8 — and in index performance if you use version 4 rather than version 7.

Is a UUID safe to use as a secret?

▼
A version 4 UUID has enough entropy to be unguessable, so an unlisted URL containing one is reasonably private. But it is not a credential: it will sit in logs, browser history, and referrer headers. For anything that genuinely needs protecting, use a real token with an expiry.

Does this generate the identifiers in my browser?

▼
For versions 1, 4, 7 and ULID, yes — the browser's own cryptographic random source does the work and nothing is transmitted. Version 5 needs a namespace hash and uses our server. If you want every version generated locally, run a library yourself.

Does case or the hyphens matter?

▼
The specification says lowercase for output and case-insensitive for input, so both forms represent the same value. The hyphens are purely formatting. Some systems store them stripped to save bytes, which is fine as long as everything reading the column agrees.
Advertisement