About the UUID Generator
A UUID (universally unique identifier, also called a GUID) is a 128-bit value written as 32 hexadecimal digits, for example 3f2b8c1e-9a4d-4e7f-b1c2-5d6e7f8a9b0c. UUIDs can be created independently on any machine with practically no risk of two being the same, which makes them a common choice for database keys, file names and request IDs.
This generator creates version 4 UUIDs, which are completely random, and version 7 UUIDs, which start with the current time so that newer IDs sort after older ones. Both follow RFC 9562 and use the secure random number generator of your browser. Nothing is sent to a server.
How to use it
- Choose the version: v4 (random) or v7 (time-ordered).
- Enter how many UUIDs you need, from 1 to 1,000.
- Optionally switch to uppercase, remove the hyphens or wrap each UUID in braces { }.
- Click Copy all to copy the list, or Download .txt to save it with one UUID per line. Click Generate for a fresh set.
Features
- Version 4 and version 7: Random UUIDs for general use and time-ordered UUIDs for database keys and logs.
- Ordered even within one millisecond: Version 7 UUIDs generated in one batch use a counter, so the list is always in creation order when sorted.
- Bulk generation: Create up to 1,000 UUIDs at once and copy or download them in one go.
- Formatting options: Lowercase or uppercase, with or without hyphens, and with braces for Windows-style GUIDs.
- Secure randomness: Random bits come from the Web Crypto API, the same source browsers use for encryption keys.
Examples
Primary keys for a new table
Choose v7 and generate as many keys as you need. Because they increase over time, inserts stay close together in database indexes instead of being scattered randomly.
Test data
Generate 500 v4 UUIDs, download them as a .txt file and import the list into a spreadsheet or a fixture file.
A GUID for a Windows registry entry or Visual Studio project
Turn on Uppercase and "Wrap in braces" to get the {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} format used by Microsoft tools.
Limitations and notes
- Only versions 4 and 7 are generated. Versions 1, 3 and 5 (based on MAC addresses or names) are not supported.
- A version 7 UUID reveals the time it was created, to the millisecond. Use version 4 if the creation time should stay private.
- The tool creates UUIDs but does not validate or decode existing ones.
- At most 1,000 UUIDs are generated per batch; click Generate again for more.
Frequently asked questions
Can two generated UUIDs ever be the same?
In theory yes, in practice no. A version 4 UUID has 122 random bits; you would need to generate billions of UUIDs per second for many years before a duplicate becomes likely.
What is the difference between UUID v4 and v7?
Version 4 is entirely random. Version 7 starts with a 48-bit Unix timestamp in milliseconds followed by random bits, so v7 UUIDs sort by creation time, which suits database indexes.
Is a UUID the same as a GUID?
Yes. GUID is the name Microsoft uses for the same 128-bit format. Some Microsoft tools write GUIDs in uppercase and inside braces.
Are the UUIDs stored or sent anywhere?
No. They are generated by JavaScript in your browser and exist only on this page until you copy or download them.