Skip to content

UUID Generator

Generates random UUID v4, time-sorted UUID v7, ULID, NanoID and MongoDB ObjectId identifiers, one or a thousand at a time.

Your IDs stay on this device

This tool runs entirely inside your web browser. Your IDs are processed on your own device and are never sent to our servers. How this works

Completely random. The most widely supported choice.

Your ID

UUID Generator is a free tool that creates universally unique identifiers: random UUID version 4, time-ordered UUID version 7, and ULIDs. Generate one or up to 1,000 at a time, in lowercase or uppercase, with or without hyphens. IDs are created in your browser with a cryptographically secure random number generator.

How to generate UUIDs

  1. Choose the type: v4, v7 or ULID.
  2. Set how many you need. A fresh set is generated immediately.
  3. Copy them all, download them as a text file, or click Generate new for another set.

v4, v7 or ULID?

Shorter IDs with NanoID

Choose NanoID for short, URL-friendly IDs with the length and characters you want, for example 10 letters and numbers for a public reference. The NanoID Generator explains how to pick a safe length.

MongoDB ObjectIds

Choose MongoDB ObjectId to generate the 24-character IDs MongoDB uses for _id. The check box also reads ObjectIds and shows when they were created. For more, including turning a date into an ObjectId for queries, see the MongoDB ObjectId Generator.

Checking a UUID

Paste any UUID into Check a UUID to see whether it is valid, its version and variant, and for time-based versions (1, 6 and 7), when it was created. That helps when debugging, for example to find out when a record was inserted.

Uniqueness

UUIDs can be generated independently on any device without a central server and still be practically unique. The chance of two random v4 UUIDs ever matching is so small that it can be ignored for any real system.

Frequently asked questions

Which version should I use?

Use v4 for general-purpose random IDs. Use v7 for database keys: it starts with a timestamp, so new rows are inserted in order, which is faster for most databases. ULID has the same benefit in a shorter, URL-friendly form.

Can two generated UUIDs be the same?

Practically, no. A v4 UUID has 122 random bits; you would need to generate billions per second for many years before a collision became likely.

Is a UUID the same as a GUID?

Yes. GUID is Microsoft’s name for the same 128-bit identifier. Some Microsoft tools display them in uppercase or with braces.

Are these safe to use as secret tokens?

v4 UUIDs are generated with secure randomness, but v7 UUIDs and ULIDs reveal when they were created. For secrets such as API keys or reset links, a dedicated random token is a better choice.

Last updated

Missing a feature, or need a tool we don’t have? Suggest it.