Skip to main content

Web Tools

UUID Generator

Generate secure UUID v4 identifiers. Free online tool — no sign-up required.

See how to use this tool

UUID Generator

Generate secure UUID v4 identifiers in your browser.

Run the tool to see the result.

Privacy: this tool processes input locally in your browser without server upload.

About UUID Generator

ToolConv's UUID generator produces RFC 4122 universally unique identifiers using the crypto.getRandomValues API for cryptographic-strength randomness. It supports the three versions most applications need: version 4 (random, the default and most common), version 7 (time-ordered, combining a Unix millisecond timestamp with random bits — increasingly preferred for database primary keys), and the nil UUID (all zeros, used as a sentinel/null value in some protocols).

All generation happens locally in your browser — nothing is transmitted, which matters because UUIDs are often used as database keys, request correlation IDs, or access tokens. The tool can generate a single UUID or a batch of thousands, with options to uppercase, strip hyphens (for compact 32-char hex storage), wrap in braces (Microsoft-style GUID), and add a URN prefix (urn:uuid:). A duplicate-detection pass checks the batch for collisions, which should be astronomically rare for v4/v7.

How to use it

  1. 1Pick a UUID version: v4 (random), v7 (time-ordered), or nil.
  2. 2Enter a count if you need a batch (e.g. 1000 for a test dataset).
  3. 3Toggle formatting: hyphens on/off, uppercase, braces, or URN prefix.
  4. 4Click Generate — values are produced locally via crypto.getRandomValues.
  5. 5Copy a single UUID or export the whole batch as a text/CSV file.

When to use it

  • ✓Generating database primary keys for a test-data fixture without server round-trips.
  • ✓Producing v7 UUIDs for a time-ordered event log that is also globally unique.
  • ✓Creating correlation IDs for distributed tracing across microservices.
  • ✓Generating API keys or nonce values for one-time-use request signing.

Features

  • •Generates v4 (random), v7 (time-ordered), and nil UUIDs per RFC 4122.
  • •Cryptographic randomness via crypto.getRandomValues — not Math.random.
  • •Formatting options: strip hyphens, uppercase, braces (GUID), URN prefix.
  • •Batch generation of thousands with built-in duplicate-detection.
  • •100% local — no generated UUID leaves your browser.

Related tools

FAQ

What is the difference between UUID v4 and v7?

v4 is fully random (122 random bits). v7 encodes a 48-bit Unix millisecond timestamp in the high bits followed by 74 random bits, making v7 values naturally sortable by generation time — ideal for database indexes and log entries that benefit from temporal locality. v4 remains the safe default when no ordering is needed; v7 is preferred for high-volume primary keys.

How likely is a UUID collision?

For v4, the probability of a collision among 103 trillion randomly generated IDs is still about 50%. In practical terms, generating 1 billion v4 UUIDs gives a collision probability of roughly 1 in 10^18. v7 has the same random-bit capacity for a given millisecond, so collisions are equally negligible. The batch generator runs a duplicate check anyway for safety.

Are the generated UUIDs sent anywhere?

No. UUIDs are generated locally using the browser's crypto.getRandomValues CSPRNG. No value, count, or formatting choice is transmitted. This matters because UUIDs are often used as access tokens or primary keys that must stay private until deployed.

Why use crypto.getRandomValues instead of Math.random?

Math.random is a non-cryptographic PRNG optimized for speed; its output is predictable enough that it must not be used for identifiers tied to security, like session tokens or unguessable resource IDs. crypto.getRandomValues is a CSPRNG suitable for UUID generation, ensuring the values are unguessable as well as unique.

What is the nil UUID and when would I use it?

The nil UUID is 00000000-0000-0000-0000-000000000000 — all bits zero. It is defined in RFC 4122 as a special sentinel value. Some protocols and databases use it to mean 'no UUID' distinct from NULL, or as a placeholder before a real ID is assigned. The generator can emit it on demand.

Can I generate UUIDs without hyphens for compact storage?

Yes. Toggle 'strip hyphens' to get a 32-character hex string like 550e8400e29b41d4a716446655440000. This saves 4 bytes per row in a database CHAR(32) column compared to the 36-character hyphenated form. The generator supports uppercase, braces, and urn:uuid: prefix for the same reason.