What a version 4 UUID contains
A UUID is 128 bits shown as 32 hexadecimal digits in five groups. In version 4, 122 bits are random; the remaining bits mark the version (the 4 at the start of the third group) and the variant.
Create random version 4 UUIDs (also called GUIDs) for database records, test data, file names or API requests. Choose how many you need, from 1 to 1000, upper or lower case, and whether to keep the hyphens. The identifiers come from your browser’s cryptographically secure random generator and are never sent anywhere.
Tools
Enter a number from 1 to 1000.
Upper or lower case, with or without hyphens.
Press Generate UUIDs, then copy the list.
Choose by who will read the ID.
| Option | Best for | Trade-off |
|---|---|---|
| UUID Generator (this page) | Unique IDs for systems and databases. | Long and not human-friendly. |
| Password Generator | Secrets people must keep private. | Not designed as identifiers. |
| Barcode Generator | IDs that must be scanned. | Encode a shorter code for easier scanning. |
| QR Code Generator | Sharing an ID or link by camera. | Needs a phone to read. |
| Epoch Converter | Time-based references. | Not unique on their own. |
You need five unique IDs for sample rows in a database.
Use it when seeding databases with test records, labelling uploaded files or exports, creating request IDs while testing APIs, or giving temporary items a unique reference that does not reveal a sequence.
A UUID is 128 bits shown as 32 hexadecimal digits in five groups. In version 4, 122 bits are random; the remaining bits mark the version (the 4 at the start of the third group) and the variant.
Unlike counting numbers, random IDs can be created anywhere without checking a central list, and they do not reveal how many records exist or which came first.
UUIDs are unique, not confidential. Do not use them as passwords or access tokens unless your system is designed for it.
Most databases and programming languages accept the standard lowercase form with hyphens, such as 123e4567-e89b-42d3-a456-426614174000. Some Microsoft tools display GUIDs in upper case, and some systems store the 32 digits without hyphens. The options here cover those forms without changing the underlying random value.
To give rows in a spreadsheet unique references, generate as many UUIDs as there are rows, copy the list and paste it into a column. Each line becomes one cell, and because every value is random, you can merge sheets later without clashes.
A valid version 4 UUID has 36 characters with hyphens: groups of 8, 4, 4, 4 and 12 hexadecimal digits. The third group starts with 4, and the fourth group starts with 8, 9, a or b. A value that breaks this pattern was not produced as a standard version 4 UUID, which is a quick way to spot copy-and-paste mistakes in configuration files or test data.
Random version 4 UUIDs spread new rows across an index, which can slow inserts in very large tables. Some systems prefer time-ordered identifiers such as UUID version 7 for that reason. For most applications, test data and file names, version 4 is simple and perfectly adequate.
Because UUIDs contain only letters, digits and hyphens, they are safe in web addresses and file names on every operating system. They also reveal nothing about the order or number of records, which is why many sites use them in links to documents and orders.
No, only version 4.
No. Generating again replaces the list.
Copy the list and paste it into a file or spreadsheet.
In practice no. Version 4 UUIDs have 122 random bits, so a repeat is astronomically unlikely.
Yes. GUID is Microsoft’s name for the same 128-bit identifier format.
The browser’s crypto.randomUUID function, which uses a secure random generator.
IDs are produced by your browser’s secure random generator; SortMyFile never sees them.