UUID Generator
Generate secure random UUID v4 or database-friendly time-ordered v7 identifiers — one or 1,000 at a time — in the format your code needs, and check any UUID’s version.
How to use the UUID Generator
- Choose v4 (random) or v7 (time-ordered).
- Set how many you need (up to 1000).
- Pick a format: uppercase, no hyphens, braces or quoted for code.
- Copy all or download as .txt.
v4 or v7?
- v4 is fully random — the most common choice.
- v7 starts with the current time, so new IDs sort in order — faster as a database primary key.
- UUIDs are created with the browser’s secure random generator.
Frequently asked questions
What is a UUID?
A 128-bit unique identifier written as 36 characters, for example 3f2b8c1e-9d4a-4f6b-8e2a-1c5d7e9f0a3b. GUID is Microsoft’s name for the same thing.
Can two UUIDs be the same?
In practice no — the chance of a v4 collision is astronomically small.
Why use UUID v7?
It is time-ordered, which keeps database indexes fast and lets you sort records by creation time.
Are these UUIDs secure?
They use crypto.getRandomValues, a cryptographically secure generator. Do not use UUIDs as passwords.
How do I check a UUID’s version?
Paste it into Check a UUID — it shows the version and, for v1 and v7, when it was created.
Is my data sent anywhere?
No. Everything is calculated in your browser on your own device. Nothing you type or open is uploaded.
v4 or v7: which UUID to use
| UUID v4 | UUID v7 | |
|---|---|---|
| Made from | 122 random bits | Time (milliseconds) plus random bits |
| Sorts by creation time | No | Yes |
| Best for | Tokens, file names, general IDs | Database primary keys, logs, events |
| Reveals when it was made | No | Yes, to the millisecond |
Why v7 is kinder to databases
Databases keep primary keys in a sorted index. Random v4 IDs land all over that index, so inserts get slower as the table grows. v7 IDs grow over time, so new rows are added at the end, much like an auto-increment number. UUID v7 is defined in RFC 9562, published in 2024, and most modern libraries support it.
Can two UUIDs ever be the same?
In practice, no. With 122 random bits you would need to create around 2.7 billion billion v4 UUIDs before the chance of one duplicate reached 50%. A bug in your code, such as copying the same value twice, is far more likely than a real collision.
When not to use a UUID
Do not use a UUID as a password or a secret link if the ID is also shown to other users. v7 also shows when a record was created, so avoid it where that time should stay private.