About UUID Generator
A UUID (universally unique identifier) is a 128-bit value written as 32 hexadecimal digits in five groups, such as 3b241101-e2bb-4255-8caf-4136c566a962. Version 4 UUIDs are generated from random numbers, so you can create them anywhere without asking a central server or checking a database.
Developers use UUIDs as primary keys, file names, session identifiers, correlation IDs in logs and idempotency keys for API requests. This tool creates five fresh version 4 UUIDs each time you click Run Tool, using the secure random generator built into your browser.
How to use UUID Generator
- Click Run Tool. Five new UUID v4 values appear in the output box.
- Copy one or all of them. Click Run Tool again for a new set.
- Paste them into your database seed, test fixture or code.
Common uses
- Creating unique IDs for rows in a database without relying on auto-increment.
- Generating test data or mock records that need realistic identifiers.
- Adding a request ID header to trace a call across services.
Privacy and safety
This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.
Frequently asked questions
Can two UUIDs ever be the same?
In theory yes, in practice no. A v4 UUID has 122 random bits, so you would need to generate about 2.7 quintillion of them before the chance of one collision reaches 50 percent.
Is a UUID a secret?
No. Do not use a UUID as a password or access token on its own. For secrets, use the API Key Generator, which produces 256 bits of randomness.
What is the difference between UUID and GUID?
They are the same format. GUID is the name used in Microsoft products, UUID is the name used in the standard (RFC 4122 and its successor).