UUID v4 Generator

Generate one or up to 100 random UUID v4 identifiers for fixtures and test records.

Runs in your browser. Your input stays on this device.

What this tool does

Generate a newline-separated batch of random version 4 UUIDs in a secure browser context.

When to use it

Allocate identifiers for fixtures before creating references between records, especially when several generators build data independently.

How to use it

  1. Open the tool on HTTPS or localhost.
  2. Enter a count from 1 to 100 and select Generate UUIDs.
  3. Copy the resulting list into your fixtures, keeping stable values when tests assert exact output.

Worked example

Enter 3 and generate a list for three test records. Copy one value per record into the id field, then reuse the same IDs in any references between those records. A version 4 UUID has five groups arranged in lengths 8-4-4-4-12. Its third group starts with 4, and the fourth group starts with 8, 9, a or b. Save the generated values with the fixture if the same records must appear in every integration test run. Generating again gives you a fresh set for independent examples.

Example input
1
Example output
Example result (changes each run):
550e8400-e29b-41d4-a716-446655440000

Supported features and limitations

UUIDs use the browser’s cryptographically secure random generator. Generation requires HTTPS or localhost.

Common mistakes and edge cases

Use a whole-number count between 1 and 100. A block of copied UUIDs is newline-separated. For a JSON or CSV import, put each UUID into the appropriate string or column. Keep the hyphens unless the destination specifically expects a different representation. The browser needs a secure context such as HTTPS or localhost to access its secure random generator. Plain HTTP on a network host can fail even when the page otherwise loads. If you need a JSON fixture with related objects, generate parent IDs first and assign them to the matching foreign-key fields in the child records. Regenerating the parent list later requires updating those references as well.

Frequently asked questions

Do UUIDs tell me when a record was created?
Version 4 UUIDs use random data. Sort by a separate timestamp when chronology matters. Persist explicit creation times if your test needs records ordered by age.
Do I still need a database uniqueness constraint?
Yes, if your application requires unique IDs. Random UUID collisions are extremely unlikely, while a uniqueness constraint also catches mistakes such as repeated imports and accidentally reusing an existing ID.

Related tools

Developer guides