⌘

UUID Generator

Generate uuid using the options shown.

Choose a file or fill the fields, then click Generate.

About UUID Generator

Database seed rows, test fixtures, message IDs, idempotency keys and file names often need identifiers that will not collide with anything else. Developers and testers generate a batch of UUIDs here when writing SQL inserts, mocking API data or setting up configuration that requires unique IDs.

How it works

Each identifier comes from the browser's crypto.randomUUID function. It produces random version 4 UUIDs from a cryptographically secure generator. Each one is 36 characters: 32 lowercase hex digits in five groups, 8-4-4-4-12, separated by hyphens. The third group always starts with 4, and the fourth group starts with 8, 9, a or b. You can request up to 50 at once, and any higher number is capped at 50. Results appear one per line and are generated locally.

How to use UUID Generator

  1. Complete the available fields: How many. Use the field labels and examples shown in the workspace.
  2. Select “Generate” and check the result before copying or downloading it.

Worked example

Asking for 3 produces three lines shaped like 3f2b8c1e-9d4a-4f6b-a1c2-7e5d9b0f3a68, each different every time you run it. That one is only an illustration of the format, since real output is random. Notice the 4 at the start of the third group, which marks version 4, and an a in the variant position.

Tips for a better result

  • If your database stores UUIDs in a native uuid column, insert them as-is. For binary(16) storage, strip the hyphens and convert the hex first.
  • Random v4 UUIDs scatter inserts across a B-tree index. For very large tables, consider time-ordered UUID v7 generated in your application.
  • Uppercase or lowercase does not change a UUID's value, but some systems compare them as text. Keep the lowercase form consistently.

Frequently asked questions

Can two generated UUIDs ever be the same?

In theory yes, but version 4 UUIDs contain 122 random bits, so a collision is astronomically unlikely in practice. Most systems still use a unique constraint in the database as a safety net.

Can I use a UUID as a secret token?

It is randomly generated, but UUIDs are designed as identifiers and often end up in logs and URLs. For session tokens or password-reset links, use a dedicated token generator and your framework's security guidance.

Why do I get an error on some pages or browsers?

crypto.randomUUID is available only in reasonably modern browsers and in secure contexts such as HTTPS pages. Very old browsers will fail to generate IDs here.

What to check

A formatted or parsed result is not proof that code is secure, correct or production-ready. Never paste production secrets.

Read the Privacy Policy for information about local processing, connected services and advertising.