UUID Generator

When two systems need to label a record without asking each other first, a random 128-bit identifier avoids collisions. This tool generates version 4 UUIDs, ready to copy or download.

UUID GeneratorRuns in your browser

How to Use

  1. Set How many UUIDs, from 1 to 20.
  2. Choose a format: lowercase with hyphens, uppercase with hyphens, or lowercase without hyphens.
  3. Click Generate UUIDs and check the confirmation line, which verifies the v4 structure.
  4. Use Copy all or Download TXT, or Reset to return to five lowercase UUIDs.

Practical Examples

  • A database row id created on the client before the record is sent to a server.
  • A correlation id attached to a log entry so a request can be traced across services.
  • An unhyphenated 32-character id for a system that expects a compact key.

Understanding the Result

A UUID is a 128-bit value written as 32 hexadecimal digits in five groups. Version 4 means the bits are random apart from the fixed version and variant markers, rather than derived from a timestamp or a name.

The tool uses the browser's crypto.randomUUID when available and otherwise builds the same layout from cryptographically random bytes. The format option only changes presentation, not the underlying value.

After each batch the tool checks every line against the version 4 pattern and reports the result.

Limitations and Useful Notes

  • UUIDs are identifiers, not secrets. They are not credentials or session tokens, and an exposed value should not be treated as a secret.
  • Randomness makes collisions extremely unlikely, not impossible. Keep a uniqueness constraint at the storage layer where it matters.
  • Version 4 UUIDs contain no timestamp or ordering information, so sorting them does not sort by creation time.
  • At most 20 are generated per batch and nothing is stored, so a previous set cannot be reproduced.
  • The tool does not check whether a generated UUID is already in use in your system.
Privacy: UUIDs are created in your browser and are not uploaded or logged.

Common Questions

What is UUID version 4?

A 128-bit identifier whose bits are random, with fixed bits marking version and variant. It is the common form for identifiers generated without a central authority.

Can I use these as passwords or API tokens?

No. A UUID is a label, often visible in URLs and logs. Use the Password Generator for credentials.

Do UUIDs sort by creation time?

Not version 4. There is no embedded timestamp, so lexical order is effectively random.