Skip to main content

UUID Generator – Batch-Generate v4, v7 and ULID Online

Generate UUIDs in bulk free online: v4 random, v7 time-ordered, v1 timestamp and ULID, up to 1000 at a time. Browser-side system randomness, copyable and downloadable.

Runs on your device — nothing is uploaded

Version
Generated UUIDs items

Nothing generated yet — results appear here.

Database primary keys, request IDs in distributed systems, test data, idempotency keys for APIs — all of these need identifiers that are plentiful enough and never repeat. Generating them requires no dev environment at all: this tool produces them straight in the browser, and a usable batch is already there the moment the page opens.

All four mainstream formats are supported: v4 (pure random, the de facto default), v7 (time-ordered, the recommended new-generation primary key), v1 (the old timestamp format), ULID (sortable, shorter, URL-friendly). The randomness comes from the browser's system cryptographic source (crypto.getRandomValues), not from a seedable pseudo-random generator.

How to generate

Pick a version

Four to choose from, v4 by default. Which one depends on the use — the need for ordering and the tolerance for collisions decide the answer; see the comparison below.

Set count and format

1–1000 per run (default 10); optional uppercase output and hyphen removal (the compact form, common when database column width is tight).

Copy or download

Click to copy one by one, or copy all in one click (newline-separated), or download as a text file. The results stay on the page; switching away and coming back loses nothing.

Four formats: where the real differences are

All four solve "globally unique"; the split is over sortability and how the random bits are laid out:

Format Source Sortable Fits
v4 (default) 122 bits purely random No General identification: request IDs, tracking numbers, temporary file names
v7 48-bit millisecond timestamp + 74 bits random Yes (by generation time) Database primary keys — fewer index page splits; newly written keys cluster naturally
v1 60-bit timestamp (100 ns ticks since 1582) + clock sequence + node Yes (within one source) Legacy-system compatibility; new projects should take v7
ULID 48-bit millisecond timestamp + 80 bits random, Crockford Base32 encoded Yes Cases meant to be read by humans in URLs / file names: 26 characters, no confusable letters

One difference worth knowing: v4's uniqueness rests entirely on the number of random bits (a space of 2 to the 122nd); after one hundred billion are generated, the collision probability is still about one in a billion. v7 / ULID put the timestamp in the high bits and fall back on random bits only within the same millisecond — the trade is that new entries cluster by time, exactly the distribution database indexes like best.

v7 and ULID sort by "generation time", not as a guaranteed lexicographic order — within the same millisecond the order is up to the random bits. Using them as sort keys is fine (the relative order within one millisecond rarely matters), but do not lean a "strict total order" semantic on them.

Frequently asked questions

Can I use these UUIDs as database primary keys?

Yes. The randomness comes from the system CSPRNG (every byte out of crypto.getRandomValues), the same grade as any server-side generator. v4 covers most primary-key cases; for write-heavy tables prefer v7 — a time-ordered key keeps B-tree index inserts concentrated on the rightmost pages, with less fragmentation.

Will v4 ever repeat?

In theory yes, in practice no: after one hundred billion v4s drawn from the same space, the collision probability is about one in a billion. That is the same mathematical conclusion as for server-side generators; it does not get worse for "being in a browser".

Why recommend v7 over v1?

v1's timestamp counts 100 ns ticks since 1582 and carries node bits — in a browser the node can only be random, so the old format's "MAC address guarantee" is dead in practice. v7 uses a plain millisecond timestamp + random bits, semantically cleaner and better for sorting, the new direction RFC 9562 explicitly recommends.

How much shorter is ULID than UUID?

A UUID is 36 characters (with hyphens) → a ULID is 26, about 28% shorter. More importantly, ULID uses Crockford Base32, which drops the confusable letters I, L, O, U — fewer mistakes when copying by hand, reading aloud, or naming files. Note the two are not interchangeable: a ULID is not a UUID; the receiving end must accept the format.

Is a thousand enough? Can I export in bulk?

1000 per run covers most one-off batch needs; if not, click Generate again. All results download as plain text (one per line), ready to feed into scripts or import tools.

Does generation upload anything?

No. Generation, copying and downloading all happen in the page — this tool makes no network requests at all and works offline.

Guides

Longer write-ups on the things these tools deal with: file formats, size limits, and the algorithms behind them.