> codebench_TOOL: HomeLOCAL-ONLY⌘K Switch

UUID v4

Tool guide

Generate random UUID v4

Input: This tool processes input in your browser. Check in Network (opens in a new tab)

Count:
Press ⌘Enter or click Generate

Generate RFC 9562 UUID v4 using cryptographically secure random numbers (Web Crypto API). Create 1 to 100 UUIDs at once with one-click copy and download. Zero backend — all processing in your browser.

How to use it

  1. Set Count to 2 to make two IDs for separate test records.
  2. Click Generate and check that the read-only editor has one UUID per line. Your values will differ from this illustrative batch.
  3. Use Copy or Download before generating again if you need to keep the current batch. Generate replaces the current output.

Worked example

Example input
Count: 2
Example output
9bdb9f46-6ba0-4cd4-80be-f6d5099966f3
47e788c0-9354-46aa-a9ea-a1a0491038e2

Look for a 4 at the start of the third group (version 4) and an 8, 9, a, or b at the start of the fourth group (variant), rather than for the exact same IDs.

What to watch for

The generator accepts 1 to 100 IDs per batch. Do not sort v4 IDs to reconstruct creation order: they encode no timestamp.

Frequently asked question

Can I regenerate these same fixture IDs later?
No. Generate creates fresh random IDs and has no seed or name option. Save the generated strings in the fixtures if later tests depend on those exact IDs.

Browse UUID tools

Further reading

> codebench $Ctrl+Enter Run