Every row in a database needs an identifier, and test data is no exception. The trouble starts when one row becomes five hundred: a seed script for a demo, a spreadsheet import of products, a fixture file for an automated test suite. Minting them one at a time is slow, and copying by hand invites typos and repeats. What you want is a batch: a clean list of unique values, made in one go, ready to paste.
This guide shows how to generate UUIDs in batches with the free UUID Generator on Ovatly, which makes from 1 to 100 version 4 UUIDs at a time, locally in your browser. It covers when batches are the right approach, how to copy the list so it lands cleanly in a seed script or import file, and the limits worth knowing before you rely on one.
Contents
- Quick answer
- When you actually need a batch
- How batch generation works
- How to generate a batch, step by step
- Worked example: seeding a fixture file
- Copying the list cleanly
- Limitations and alternatives
- Common mistakes
- FAQs
- Conclusion
Quick answer
Open the UUID Generator, set the count to the number of identifiers you need (anywhere from 1 to 100), press Generate UUIDs, then choose Copy all to take the whole list, one UUID per line. The values are version 4 (random) UUIDs made with your browser's cryptographic random source, in canonical lowercase form with hyphens. Need more than 100? Generate again: each press produces a fresh batch, and values are never repeated or stored.
When you actually need a batch
Single UUIDs cover single events: one new user, one uploaded file, one session. Batches cover setup work, where many records come into existence at once and each one needs its own identifier before it exists.
Seed data is the classic case. A demo or staging database starts empty and gets filled with realistic rows so reviewers can see the product working. If those rows use UUID primary keys, the seed script needs one fresh UUID per row.
Bulk imports are the second case. When a spreadsheet of products, customers or documents is imported into a system that keys records by UUID, the import file needs an identifier column. Generating the values in one batch and pasting them down the column is faster and safer than inventing values by hand, where repeats creep in.
Test fixtures are the third. Automated tests often load a fixed set of records with known identifiers so assertions can refer to them. A batch gives you as many distinct values as the fixture file needs in a single copy and paste.
How batch generation works
The generator creates version 4 UUIDs, the random kind. Almost every bit in a version 4 value is random: each one carries 122 random bits, drawn from your browser's cryptographic random source. That is what makes batch generation safe without any bookkeeping. The tool does not check new values against old ones, and it does not need to: with 122 random bits, you would need to generate billions of UUIDs per second for years to expect one accidental duplicate.
Generation is local and batches of 100 are instant. Nothing is uploaded and nothing is stored: the values exist only in the page until you close it. Generating again always produces a fresh batch rather than continuing a sequence, because there is no sequence.
Every value follows the pattern xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx, where the 4 marks the version and the y position is one of 8, 9, a or b: canonical lowercase with hyphens, which is what most databases and APIs expect.
How to generate a batch, step by step
- Open the UUID Generator and choose how many UUIDs you need, from 1 to 100. Match the count to the job: rows in the seed script, records in the import, entries in the fixture.
- Press Generate UUIDs. The full batch appears at once.
- Copy one value if you only need one, or choose Copy all to take the whole list, one per line.
- Paste the list where it belongs: into the seed script, the identifier column of the import file, or the fixture.
- Generate again whenever you need more. Each batch is fresh, and nothing from earlier batches is kept or repeated.
Worked example: seeding a fixture file
Say a test suite needs a fixture of 40 products, each with a UUID primary key. Set the count to 40 and press Generate UUIDs. You get 40 distinct values, each in canonical form. Choose Copy all, and the clipboard holds the whole list, one UUID per line.
From there the list drops into whatever format the fixture uses. In a CSV file it becomes the first column, one value per row, beside the product names and prices. In a SQL seed script the same lines can be wrapped as quoted strings inside an insert statement. In a JSON fixture each value becomes the id field of one object. The wrapping differs, but the paste is the same: the batch arrives as plain lines of text.
Before running the import, do one quick sanity check on a value or two: the third group starts with 4, and the fourth group starts with 8, 9, a or b. That confirms the values are version 4 UUIDs in the standard variant, the kind your database column expects.
Copying the list cleanly
Copy all is the feature that makes batches practical. Copying values one at a time from a list of 100 invites the classic errors: skipping a line, copying the same line twice, or trimming a character. One action that takes the whole list removes that class of mistake entirely.
Keep the values exactly as generated. The canonical lowercase hyphenated form is what most databases and APIs expect, and reformatting, such as uppercasing or stripping hyphens, can fail strict parsers or mismatch values already stored. If a target system wants a different presentation, let that system convert on import rather than editing the list by hand.
One more habit worth building: paste the batch into its destination before closing the tab. Nothing is stored on the page, so a batch you generated but did not copy is not recoverable later. If that happens, generate a fresh batch: the new values are as good as the lost ones, because nothing depended on the old ones existing.
Limitations and alternatives
The batch limit is 100 values per generation. That is a page limit, not a uniqueness limit: for 500 identifiers, generate five batches and join the lists. Because values are random and never repeated, batches combine safely.
These are version 4 (random) UUIDs, so the values carry no ordering information, and rows keyed by them will not sort by creation time. If you need time-ordered identifiers, look at UUID v7 in a dedicated library instead. This generator does not offer other versions.
A UUID is also not a credential. A batch value works as an unguessable identifier for a test record, but do not promote fixture values into API keys or passwords in a real system. For credentials, prefer a longer password from this site's Password Generator, which gives more entropy and control over the character set.
Common mistakes
- Generating one at a time for bulk work. If you need 80 identifiers, set the count to 80 and use Copy all instead of pressing generate 80 times.
- Hand-editing the list. Reformatting values or retyping one introduces real errors. Copy and paste only.
- Closing the tab before pasting. Nothing is stored, so an uncopied batch is gone. Generate a fresh one if it happens.
- Reusing fixture identifiers as real credentials. Test values are identifiers, not secrets. Keep API keys and passwords on a proper generator.
FAQs
How many UUIDs can I generate in one batch? Any number from 1 to 100. Set the count to match the job, press Generate UUIDs, then copy one value or use Copy all to take the whole list, one per line.
What if I need more than 100 UUIDs? Generate again. Each press produces a fresh batch, and because every value carries 122 random bits, separate batches combine safely with no realistic risk of overlap.
Are the UUIDs in one batch different from each other? Yes, for all practical purposes. Version 4 UUIDs carry 122 random bits, so you would need to generate billions per second for years to expect a single accidental duplicate.
Does Copy all give me one UUID per line? Yes. Copy all takes the whole list with one UUID per line, which is the shape seed scripts, CSV identifier columns and fixture files expect.
Do you keep a copy of the batches I generate? No. Generation is local and nothing is stored: the values exist only in the page until you close it.
Conclusion
Batch generation turns UUIDs from a one-at-a-time errand into a single step in your setup work: choose a count up to 100, generate, Copy all, paste. The values are version 4, random, canonical and made locally in your browser, and a fresh batch is always one press away. If you have wondered why that version digit is a 4, or what v1, v3 and v5 mean when you meet them in other systems, the companion guide explains the version family.
Related guide: UUID Versions Explained: v1, v3, v4 and v5.
More tools for this kind of work live in the Developer Tools archive.