Skip to content
toolwise

UUID Generator

Generate random version 4 UUIDs in bulk.

When to use it

Use this tool to create universally unique identifiers (UUIDs), also called GUIDs. Developers use them as database keys, file names, request IDs, test data and anywhere a unique ID is needed without asking a central server. You can also paste any UUID to check whether it is valid and see its version.

How to use it

  1. Choose the Version: v4 (random) or v7 (time-ordered).
  2. Enter How many you need, from 1 to 10,000.
  3. Choose a Format: lowercase, UPPERCASE, No hyphens or With {braces}.
  4. Click Generate new for a fresh set.
  5. Use Copy all or Download .txt to save them.
  6. To check one, paste it into Check a UUID.

Worked example

You need five test IDs for a database. Leave v4 and 5 selected and copy the list. Each looks like 22594f3c-a0d8-4faf-8974-d5d30e5c53ea: 32 hexadecimal digits in groups of 8, 4, 4, 4 and 12. The 4 at the start of the third group shows it is version 4.

Now switch to v7 and generate again. The IDs start with similar characters, because the first part is the current time. Paste one into Check a UUID and the tool says it is valid, version 7, and shows the date and time it was created.

Paste something wrong, like a UUID with a missing digit, and it tells you it is not valid.

Why not just count 1, 2, 3?

Numbered IDs need one place that hands out the next number. UUIDs can be created on any device at any time without checking with anyone, and they will still not clash. That is useful for offline apps, merging data from several sources, and IDs that should not reveal how many records exist.

Tips

  • Use v7 for database keys. Because v7 values increase over time, new rows are added at the end of an index, which keeps inserts fast in many databases.
  • Use v4 when timing should stay private. Random IDs reveal nothing about when they were created.
  • Pick the format your system expects. Most use lowercase with hyphens. Some older Windows tools expect uppercase in braces.

Common mistakes

  • Using UUIDs as secret tokens. They are unique, not secret. Use a password or token generator for secrets.
  • Comparing UUIDs as case-sensitive text. ABC and abc are the same UUID. Store them in one consistent format.
  • Removing hyphens in one place but not another. Mixed formats make matching and searching harder.

UUIDs are created on your device with secure randomness and never sent anywhere.

Frequently asked questions

What is the difference between v4 and v7?

Version 4 UUIDs are completely random. Version 7 UUIDs start with the current time in milliseconds, followed by random data, so they sort in the order they were created. That makes v7 a good choice for database keys.

Can two UUIDs ever be the same?

In theory yes, but in practice no. A v4 UUID has 122 random bits. You would need to create billions every second for many years before a repeat became likely.

Are these UUIDs secure?

They use your browser's cryptographic random number generator, so they are unpredictable. Still, a UUID is an identifier, not a password, and v7 UUIDs reveal when they were created.

What is a GUID?

GUID is Microsoft's name for a UUID. They are the same thing. Some Microsoft tools write them in curly braces and uppercase, which you can choose under Format.

How many can I create at once?

From 1 to 10,000. Use Download .txt for large batches, with one UUID per line.