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
- Choose the Version: v4 (random) or v7 (time-ordered).
- Enter How many you need, from 1 to 10,000.
- Choose a Format: lowercase, UPPERCASE, No hyphens or With {braces}.
- Click Generate new for a fresh set.
- Use Copy all or Download .txt to save them.
- 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.