UUID v4 Generator

Generate UUID v4 identifiers with Web Crypto in your browser. Choose 1–100 IDs, switch letter case without changing identity, then copy or download the list.

Count applies when you click Generate. Uppercase changes formatting only.

Uppercase
No UUIDs yet

Copy or download the whole list, one UUID per line.

Steps

How to use

  1. Choose a count from 1 to 100; the current output stays unchanged.
  2. Click Generate for a new batch. Uppercase changes the current list formatting only.
  3. Copy or Download all displayed UUIDs. Clear removes output and errors while keeping your settings.
Examples and use cases
  • Generate 20 IDs and download them for a seed-data fixture.
  • Generate one ID for a mock API record, then keep it when updating that record.
Privacy, limits and tool details

Key facts

Version
UUID v4: 128 bits total, 122 random bits
Batch size
1–100 identifiers; five on initial load
Case
Lowercase or uppercase; switching keeps the same IDs
Output
Hyphenated UUIDs; copy the list or download uuids.txt
Processing
Local Web Crypto; no generated-ID upload or persistent storage
Main limitation
No global uniqueness check, timestamp ordering or authentication workflow
Privacy

Privacy and processing

Processing method: Uses crypto.randomUUID() when available; otherwise draws 16 bytes with crypto.getRandomValues() and sets version/variant bits. Secure-randomness failures abort the entire batch.

Privacy model: Generated IDs stay in component memory, are not uploaded or saved to browser storage, and the output is marked for Clarity masking. Explicit Copy and Download place the list on your clipboard or in a local file; Share uses the page URL.

Limitations

Limitations

  • Generates v4 only, without a global collision check or existing-record lookup. Count applies to the next Generate action. Plain-text list export only; no JSON, CSV, single-row copy or pasted-UUID validation.
Features

Benefits

Stable formatting controls

Change case without replacing the current identifiers.

Small batch export

Copy or download the displayed list in one explicit action.

Tips

Pro tips

  • Keep a reviewed fixture list when tests need repeatable IDs.
  • Use a database uniqueness constraint and handle conflicts where duplicate IDs would matter.
  • Normalize letter case consistently when comparing UUID strings.
Watch out

Common mistakes to avoid

  • Assuming random UUIDs provide a global uniqueness guarantee.
  • Treating uppercase and lowercase strings as different UUID values.
  • Using knowledge of a record UUID as proof of authorization.
Detailed UUID Generator guide

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

  1. 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.
  2. 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.
  3. Choose lowercase or Uppercase. The switch reformats the current identifiers without drawing new random values. Lowercase is the default.
  4. 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.
  5. 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.

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.

Frequently asked questions

Version 4 only, written as five hyphen-separated groups of hexadecimal digits. Its format is defined in RFC 9562, which replaces RFC 4122. It does not generate name-based or time-ordered UUID versions.

No. Secure random generation gives a large value space and low collision risk, but this tool does not check other records or reserve IDs globally. Use a database uniqueness constraint and handle conflicts where required.

No. The switch changes the letter case of the current list without drawing new values. Uppercase and lowercase hexadecimal represent the same UUID, although plain string comparison may be case-sensitive.

No. Count sets the size of your next batch. Click Generate to replace the list. The output label reports the number of IDs currently displayed.

Copy and Download act on the entire displayed list, one UUID per line. Download creates uuids.txt. Choose a count of one and Generate for a one-ID list. There is no separate row-copy, JSON or CSV export control.

Generation fails with a visible error, clears the old list and disables Copy and Download. The tool prefers crypto.randomUUID(), or uses crypto.getRandomValues() if that method is absent. It never falls back to Math.random().

The generator keeps them in component memory without uploading them or saving them to browser storage. The output is marked for Clarity masking. Copy and Download create external copies under your control; Clear does not erase your clipboard or downloaded file.

This page provides record identifiers, not an authentication-token workflow. Knowledge of an ID must not grant access to a record. Use authorization checks and a security library designed for your token requirements.
5 min read