Generate UUIDs and GUIDs
A UUID (universally unique identifier), called a GUID in Microsoft products, is a 128-bit number written as 32 hexadecimal characters in five groups, such as 3f2b8c1e-9a4d-4e7b-8c21-5d6f0a9b3e47. They are used as IDs for database rows, files, orders, devices and test data, because anyone can create one without asking a central system, with no realistic chance of creating the same one twice.
This generator makes one at a time or thousands at once, in the format your code or spreadsheet needs. It uses the secure random generator built into your browser, and nothing is sent anywhere.
How to use it
- Copy the UUID at the top, or press New for another.
- For a list, choose how many (up to 10,000), the version and the format, and press Generate list.
- Copy or download the list as a text file, one per line.
- To read a UUID you already have, paste it into "Check a UUID" to see its version and, for time-based ones, when it was made.
Version 4 or version 7?
- Version 4 is completely random apart from six fixed bits: 122 random bits. It is the most widely used kind and the right default when you just need an ID.
- Version 7 (defined in RFC 9562, 2024) starts with the time in milliseconds, followed by random bits. UUIDs made later sort after earlier ones, which keeps database indexes compact and fast and makes logs easier to read. Use it for new database tables if your system accepts it.
Both are generated in this page; v7 UUIDs made within the same millisecond still come out in order.
Will two UUIDs ever clash?
For version 4, you would need to create about 2.7 quintillion (2.7 × 1018) UUIDs to have a 50% chance of a single duplicate. Generating a billion a second, that takes about 85 years. In practice, a well-made UUID is unique. What matters is a good random source, which is why this tool uses the browser's cryptographic generator rather than ordinary random numbers.
Using UUIDs in a spreadsheet or database
To give every row in a spreadsheet an ID, generate as many UUIDs as you have rows, copy the list and paste it into a column; each one lands in its own cell. In a database, store UUIDs in a column made for them (such as uuid in PostgreSQL or uniqueidentifier in SQL Server) rather than as text, which saves space and makes lookups faster.
Formats
- Lower case with hyphens is the standard form (RFC 9562) and what most systems print.
- Capital letters and {braces} are common in Windows, the registry and older Microsoft tools.
- No hyphens gives 32 characters, sometimes used in file names and compact storage.
- "Quotes", wraps each one in quotes with a comma, ready to paste into code or a SQL IN (…) list.
How this tool was tested
Before publishing, I ran 28 automated checks on the finished page in Microsoft Edge, which is built on Chromium like Chrome. Last full run: 21 November 2026.
- Version 4: 20,000 UUIDs all had the right form, version and variant, with no duplicates; their random digits passed a chi-square test for an even spread, and they come from the secure random generator.
- Version 7: 5,000 UUIDs had the right form and sorted in the order they were made, even within the same millisecond; the time inside matched the time they were made, and a fixed time gave the right first 48 bits.
- Reading UUIDs: any format (capitals, braces, no hyphens, urn:uuid:), and the example version 1 and version 7 UUIDs from RFC 9562 read back with the right date and time. Nil and max UUIDs are named; wrong values are refused.
- Using the tool: a UUID ready on opening, a list of 250 capital v7 UUIDs, quotes and commas for code, the 10,000 limit, the download and the checker.
What the tests did not cover: Safari and Firefox were not tested. Something not working? Tell me on the contact page.
FAQ
Is a GUID the same as a UUID?
Yes. GUID is Microsoft's name for the same 128-bit identifier.
Can I use these as passwords or secret tokens?
Version 4 UUIDs from this tool are random enough to be unguessable, but a purpose-made password or token is better. Use the password generator.
Does a version 7 UUID reveal when it was made?
Yes, to the millisecond. Use version 4 where that matters.