Generate UUID v4 identifiers locally
ToolMint's UUID Generator creates random version 4 UUIDs for test records, fixtures, mock API responses and manual development tasks. It starts with five identifiers and lets you generate 1–100 at a time. Copy the current list or download it as uuids.txt, with one UUID per line.
Each UUID is written as 32 hexadecimal digits in five groups separated by four hyphens. This public example shows the format; it is not a newly generated value:
550e8400-e29b-41d4-a716-446655440000
The tool generates v4 only. It does not validate pasted UUIDs, generate name-based identifiers, or produce time-ordered UUID v7 values. Use your application's own ID generation path when records must be created automatically.
How to generate and export a batch
- Choose a count from 1 to 100. The slider sets the size of the next batch. Changing it keeps the current output so you can finish copying those IDs.
- Click Generate for new IDs. The previous list is replaced after the entire batch succeeds. The output label reports how many identifiers are currently displayed, which may differ from the pending count.
- Choose lowercase or Uppercase. The switch reformats the current identifiers without drawing new random values. Lowercase is the default.
- Copy or Download the whole list. Copy writes all displayed lines to your clipboard. Download creates a UTF-8 plain-text file named
uuids.txt. The tool has no separate row-copy button and does not export JSON or CSV. - Clear when finished. Clear removes the current list and any error while keeping your count and case settings. Changing those settings after clearing does not generate another list; click Generate when you are ready.
If generation fails, the previous list is removed and Copy and Download become unavailable. Check the visible message before retrying. A successful new batch clears the error. There is no partial batch to accidentally export.
UUID format and uppercase behavior
UUID v4 has 128 bits in total. Six bits identify its version and variant, leaving 122 random bits. In the hyphenated representation, the third group begins with 4 and the fourth begins with 8, 9, a or b. RFC 9562 defines the layout and replaces the earlier RFC 4122 specification.
Uppercase changes how hexadecimal letters are displayed, not the UUID's underlying value. These strings represent the same identifier:
550e8400-e29b-41d4-a716-446655440000
550E8400-E29B-41D4-A716-446655440000
String comparison in your application can still be case-sensitive. Normalize the representation consistently or use a UUID-aware database type rather than treating different letter cases as new IDs. This tool retains the hyphens; it has no braces, compact-hex or URN output mode.
Secure randomness and browser failures
Generation prefers the browser's crypto.randomUUID() method. If that method is unavailable, it draws 16 bytes with crypto.getRandomValues() and sets the UUID version and variant bits. Both paths use Web Crypto. There is no Math.random() fallback.
The native randomUUID() API requires a secure context such as HTTPS. The fallback supports browsers with getRandomValues() even when randomUUID() is absent. If secure randomness is unavailable or a method fails, generation stops with an error. A failed native call does not silently switch to another path. The native result is also checked for the v4 text format before it is accepted.
Use a current browser and the HTTPS ToolMint page if you see an error. Matching a UUID pattern establishes its format; it cannot independently prove that a browser's random source is functioning correctly.
Collision risk and database use
Securely generated random UUIDs have a very large possible value space, but random generation cannot promise that every output will be globally unique. Risk depends on how many identifiers are created and whether the random source works correctly. This page does not query a global registry, compare with your existing records, or reserve identifiers.
Enforce a database uniqueness constraint where duplicate IDs would matter and handle an insertion conflict in your application. For production systems, choose the UUID version, storage type and generation location to fit your database and workload. A random UUID v4 does not encode a creation timestamp and should not be used to infer record order.
Generating more IDs for a fixture also changes the fixture. Save a reviewed list and reuse it when a test needs repeatable values. If a record already has an ID, retain it when updating the record instead of assigning a new UUID on every edit.
Examples and related workflows
For a mock API response, generate one ID and place it in a quoted JSON string:
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "draft"
}
Use JSON Formatter to inspect the payload, or JSON to TypeScript / Zod Generator to draft a type from the sample. Neither step checks whether the ID already exists in your database.
For seed data, choose 20 and Generate, then download the list before mapping IDs to your records. Use Text Diff Checker to compare fixture revisions. Keep ownership, timestamps and record types in their own fields.
Privacy and security boundaries
The generator keeps its current list in browser component memory. Its generation code does not upload IDs or save them to browser storage, and the output region is marked for Clarity masking. General site analytics still follow the site's consent settings.
Copy and Download intentionally move the list to your clipboard or a local file. Those copies remain under your control after Clear or after leaving the page. Share uses the page link rather than embedding the generated list.
Treat the output as identifiers. Knowing a record's UUID must not grant permission to read or modify it: your application still needs authorization checks. This page is not an API-key, session-token or password workflow. Use Password Generator for that tool's password workflow, and a dedicated application security library for authentication tokens.