UUID Generator

Generate UUIDs v1, v3, v4, v5, v7, Nil, and Max, plus ULIDs. Batch generation, namespace input for v3/v5, and five output formats.

How to generate UUIDs

  1. Choose a version: v4 (random), v7 (time-ordered), v1, v3 or v5 (name-based), Nil, Max, or ULID.
  2. For v3 and v5, pick a namespace (DNS, URL, OID, X.500, or your own) and enter a name.
  3. Generate up to 100 at once and choose a format: standard, uppercase, no hyphens, braces, or URN.
  4. Copy one, or copy them all. Use the Decode tab to check any UUID or ULID's version and embedded timestamp.

Which version should I use?

Use v4 for general-purpose random IDs. Use v7 for database primary keys: it starts with a timestamp, so new IDs sort in creation order and keep indexes efficient. ULID offers the same benefits in a shorter, case-insensitive 26-character form. Use v5 when the same input must always produce the same ID, for example to derive a stable ID from a URL. v1 and v3 are mainly for compatibility with older systems.

Frequently asked questions

Are these UUIDs truly random?

Random bits come from your browser's cryptographically secure random number generator, the same source used for encryption keys. Nothing is generated on, or sent to, a server.

Can two UUIDs collide?

In practice, no. A v4 UUID has 122 random bits, so you could generate billions per second for years before a duplicate became likely.

Can I tell when a UUID was created?

For v1, v7, and ULIDs, yes: the Decode tab shows the embedded timestamp. v4 contains no time information. For other timestamps, use the Epoch & Timestamp Converter.

Related tools

More in Generators · All 73 tools