UUID generator

Random UUIDs (version 4) or time-ordered ones for database keys (version 7), up to 1000 at once, from your browser's secure random generator.

The data entered in the form are processed only in your browser and will not be saved or sent anywhere.

Generate UUIDs

A UUID is a 128-bit identifier written as 32 hex digits in five groups, such as 017f22e2-79b0-7cc3-98c4-dc0c0c07398f. Choose the version and how many you need, up to 1000, and press "Generate". They come from your browser's secure random generator (crypto.getRandomValues), the same source used for keys, so the chance of two ever being equal is negligible.

"Version 4 (random)" is the classic: everything except the version and variant digits is random. "Version 7 (time first, sortable)" starts with the time in milliseconds and adds random bits after it, so new IDs sort after old ones. Databases like that: rows go to the end of the index instead of all over it, and inserts stay fast. For new database keys, version 7 is usually the better choice.

What the colours mean. The first UUID of each batch is drawn with its parts marked: the version digit (4 or 7) in red, the variant digit (8, 9, a or b) in orange, and for version 7 the time in blue. Below it you see the time written inside, so you can check what a version 7 UUID says about when it was made. A whole batch from one millisecond is sorted, so the list stays in order.

The format your code wants. Upper case for systems that write UUIDs that way, without hyphens for compact keys, in braces { } for Windows registry and .NET habits. The list copies with one button, one UUID per line, ready to paste into SQL, a spreadsheet or a test fixture.

Examples

  • 10 version 7 UUIDs as primary keys for a test table, in creation order.
  • 1000 random UUIDs without hyphens for a load test.
  • A GUID in braces and upper case for a Windows config file.

Who it is for

Developers, database designers and testers who need unique identifiers quickly, without writing a script or trusting a website that might log them.