🔑 UUID Generator
Generate UUID v4, UUID v7, ULID, and Nano IDs. Bulk generation with one click.
Last updated: November 8, 2026 · By the BoltQuickTools team
Get unique IDs for test data and database keys
Seeding a table, writing a fixture or mocking an API all need IDs that will not clash, often in bulk. This page makes four common kinds with your browser's cryptographic random source, with no library or install.
Generating IDs
Choose a tab: UUID v4, UUID v7, ULID or Nano ID. Choosing one creates a new ID in the box, and Generate makes another. Click the box to copy it.
For a batch, enter a number in Bulk count and press Generate Bulk. Copy All copies the list if one is showing, otherwise the single ID. Clear removes both.
What each format looks like
IDs are random, so yours will differ. These came from this page's functions:
| Type | Sample | Structure |
|---|---|---|
| UUID v4 | 35e54731-2432-4bd5-b435-fc51512589a0 | 122 random bits. The 4 marks the version. |
| UUID v7 | 01a1be75-2845-7b74-ad1b-cf0afe3ac8fb | The first 12 hex digits are a millisecond timestamp, and the rest is random. |
| ULID | 01M6Z7AA16R5RSZGVR1DR5RSZG | 10 timestamp characters, then 16 Crockford Base32 characters. |
| Nano ID | LoEqU-VumcIHYIC0y4aXm | 21 characters from A-Z, a-z, 0-9, _ and -. |
In the v7 sample, 01a1be752845 decodes to 2026-11-09T03:58:31.493Z, the moment it was made. A v7 ID therefore reveals when it was created, while a v4 ID reveals nothing.
Limits to know before using these in production
- ULIDs from this page have reduced randomness. Only 10 random bytes feed the 16 trailing characters, using 5 bits of each, and the last 6 characters repeat the 6 that start the random part. In the sample,
R5RSZGappears twice. That leaves 50 random bits rather than the 80 in the ULID specification. They are fine for test data, but use a ULID library for real keys. - Time-ordered IDs are only ordered between milliseconds. Neither v7 nor ULID keeps a counter within one millisecond, so a bulk batch made in a single millisecond is in random order. Do not assume that a list from Generate Bulk is sorted.
- Bulk count is limited to 1 through 10,000. Higher values are cut to 10,000. Zero or non-numeric input gives 10.
- Generate does not hide an existing bulk list. After a bulk run, Copy All keeps copying the list even when you have generated a new single ID. Press Clear first.
- Nano ID length is fixed at 21 here, and UUIDs come in lowercase only. Length, alphabet, UUID v1 and v6, and uppercase output are on the UUID and NanoID generator.
Choosing a format
Which one should I use for a database primary key?
UUID v7 is usually the better choice, because rows inserted around the same time get nearby key values, which suits B-tree indexes better than random v4 keys. The article on UUID v7 for new databases covers the trade-offs.
Are collisions something to worry about with Nano ID?
Not at this size. 21 characters from 64 symbols gives 64 to the power 21 possible values, which is 126 bits. By the birthday approximation, a 1% chance of any collision takes roughly 10 to the power 18 IDs.
Is a UUID safe to use as a secret?
Treat it as an identifier. For tokens or passwords, use the password generator and pick a length to suit.