UUID Generator
Generate random v4 or time-ordered v7 UUIDs one at a time or in bulk, and inspect any existing UUID to see its version and timestamp.
How to use it
- 01
Choose a version: v4 if you just need a unique identifier, or v7 if you’ll use it as a database key.
- 02
Set how many you want and the format: uppercase, with or without hyphens, or wrapped in braces the way Windows shows them.
- 03
Copy each UUID with its button, or copy them all at once, one per line.
- 04
To find out what kind of UUID you already have, paste it into “Inspect a UUID.”
How it works
A UUID (called a GUID in the Microsoft world) is a 128-bit number written as 32 hexadecimal digits in groups of 8-4-4-4-12. The first digit of the third group is the version, and the first digit of the fourth group encodes the variant.
Version 4 has 122 random bits. Collisions are so unlikely that you’d need to generate a billion UUIDs per second for about 85 years to have a 50% chance of a single duplicate.
Version 7, defined in RFC 9562 (2024), starts with a Unix timestamp in milliseconds. Because v7 UUIDs are ordered by time, database indexes fragment much less than with v4. The trade-off is that they reveal when they were created.
The random bits come from crypto.getRandomValues, your browser’s cryptographic random number generator. UUIDs are generated on your device and never sent to a server.
Examples
- Database primary key
A v7 UUID like 019a6f4e-5c2b-7d31-9f0a-3b8c2e1d4a77 sorts right next to others created at the same moment.
- Windows or .NET identifier
Turn on uppercase and braces to get the registry-style GUID format: {3F2504E0-4F89-41D3-9A0C-0305E82C3301}.
- Test data
Generate 100 v4 UUIDs at once and copy them all, one per line, to paste into a spreadsheet or script.
Frequently asked questions
Can two v4 UUIDs ever be the same?
In practice, no. There are 2^122 possible values (about 5.3 undecillion). A programming bug or a weak random number generator is far more likely than a genuine collision.
What’s the difference between a UUID and a GUID?
There’s no difference in format: GUID is just Microsoft’s name for a UUID. Windows tends to show them in uppercase and wrapped in braces.
Should I use v7 instead of v4?
For database keys, yes: new rows are inserted in order and indexes perform better. If the ID will be public and you don’t want to reveal when it was created, stick with v4.
Related tools
- 07.02
Strong Password Generator
Generators - 07.01
Random Number Generator
GeneratorsRandom - 03.09
Binary, Decimal and Hex Converter
Converters - 10.02
QR Code Generator
Developer tools - 10.03
JSON Formatter and Validator
Developer tools - 10.04
Base64 Encoder and Decoder
Developer tools - 10.05
URL Encode and Decode
Developer tools - 10.06
MD5, SHA-1 and SHA-256 Hash Generator
Developer tools