UUID Generator
Generate UUIDs (also called GUIDs) in your browser. Choose version 4 for fully random IDs or version 7 for IDs that start with a timestamp and sort in the order they were made, pick how many you need, and set the format: upper case, with or without hyphens, with or without braces. Nothing is sent anywhere.
What you enter
- Version
- How many
- Upper case
- Hyphens
- Curly braces
What you get
- UUIDs generated
- Random and counter bits in each
How it works
- Choose version 4 for random IDs or version 7 for time-ordered IDs, and set how many you want, from 1 to 1,000.
- Tick the format options: upper case, hyphens and curly braces. Leave the defaults for the standard lower-case 8-4-4-4-12 form.
- Press the button. The IDs are made with your browser's secure random number source.
- Copy the whole list, or download it as a text file with one ID per line.
How the two versions are built
Every UUID is 16 bytes. In a version 4 UUID almost all of them are random, with a few bits overwritten to mark the version (4) and the variant (the first digit of the fourth group is 8, 9, a or b). That makes v4 the easiest choice when all you need is a unique label with no meaning inside it.
Version 7 puts the time first: the first 48 bits are the Unix time in milliseconds, then come the version bits, a counter and random bits. Because the time leads, sorting v7 IDs as text or bytes sorts them by creation time. This generator advances the counter for IDs made in the same millisecond, so a batch comes out in strictly increasing order.
Choosing between them in a real project
Random v4 IDs are fine for most things, but in a large table with an index on the ID column they scatter new rows across the whole index, which can slow down writes. Time-ordered v7 IDs append near the end, much like an auto-incrementing number, while still being unique across machines. That is the main reason people switch.
The cost of v7 is that the ID leaks its creation time to anyone who sees it. If that matters, for example in public URLs where you do not want to reveal when an account was made, stay with v4. Also check that your database orders its UUID type the way you expect: SQL Server, for one, compares uniqueidentifier values in an unusual byte order, so a v7 value does not sort by time there.
Tips
- For a database primary key that is inserted often, version 7 is usually kinder to the index, because new IDs sort after older ones instead of landing at random places in it.
- Do not use a UUID as a secret. A random UUID is hard to guess, but it is meant as an identifier, and a v7 ID even reveals when it was created. Use a proper secret token for access control.
- Store UUIDs in the database's native type when it has one. Storing them as 36-character text uses more than twice the space of the 16 bytes they really are.
- SQL Server writes GUIDs in upper case with hyphens, and Windows tools often show them in braces. Tick upper case or braces to match what the system you are pasting into expects.
- Compare UUIDs without caring about case. The same ID in upper and lower case is the same value, so normalise before comparing as text.
Frequently asked questions
What is a UUID?
A UUID is a 128-bit identifier written as 32 hexadecimal digits in five groups, like 123e4567-e89b-42d3-a456-426614174000. It is built so that you can generate IDs on any machine without asking a central server and still be extremely unlikely to ever produce the same one twice.
What is the difference between UUID v4 and v7?
Version 4 is 122 random bits plus 6 fixed bits for version and variant. Version 7 starts with a 48-bit Unix timestamp in milliseconds, followed by a 12-bit counter and 62 random bits, so later IDs sort after earlier ones. In both, the 13th hex digit is the version number, 4 or 7.
Is a UUID the same as a GUID?
Yes for practical purposes. GUID is the name used by Microsoft tools, including SQL Server and .NET. The format is the same 128-bit value, and the braces and upper case options help you match the style those tools show.
Can two generated UUIDs be the same?
In theory yes, in practice almost never. With 122 random bits in version 4, you would need to generate about a billion UUIDs every second for roughly 85 years to reach even a 50 percent chance of one repeat. Version 7 adds a counter so IDs made in the same millisecond in one batch stay in order and distinct.
Are the UUIDs generated safely and privately?
They are made in your browser with its cryptographically secure random number generator. Nothing is uploaded or stored by this page.
Related: API key generator, JSON generator, Hex converter.
Start for free or see all free tools. We.Inc is free to start, with no card needed. AI building is on paid plans from $20 a month.
More in Free Tools
- Website UX Audit Checklist
- vCard Generator
- VPAT Template (Accessibility Conformance Report)
- Web Design Proposal Template
- Web Design Client Questionnaire
- Free PNG to WebP Converter
- What CMS Is This Site? Website Builder Checker
- Website Copyright Notice Generator for Your Footer
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App