UUID Generator (v4 and v7)
Free UUID generator. Create random UUID v4 or time-ordered UUID v7 in bulk, with uppercase, hyphenless and braces options. Uses cryptographically secure randomness, nothing is logged.
Free, no sign-upRuns in your browserNothing uploaded
93131222-331c-4afb-bae9-7528749ca7d46ac17f45-8b82-4e41-aa70-cda8ae86f65b68986f6c-ab1e-4de8-b0f8-3a1d82858823f0b3e1bc-8bb3-44e1-ac3a-e30571e5a49308c71961-89ab-42ac-b5ea-b3d134f2a00a
- version
- V4
- count
- 5
- entropy
- 122 bits (CSPRNG)
- sortable
- no
v4 or v7?
Both give the same uniqueness guarantees. v7 starts with a millisecond timestamp, so its values sort chronologically as plain strings. That matters when the UUID is a database primary key: random v4 values scatter inserts across the whole B-tree index, which fragments it and slows writes. Use v7 unless something in your stack requires v4.
A UUID is a 128-bit identifier written as eight groups of four hexadecimal digits. What matters for choosing a version is not the format, all versions look the same, but how the bits are produced and therefore how they sort.
UUID v4 fills 122 bits from a cryptographically secure random source and sets the version and variant bits. Nothing about it encodes a time, a machine or a user, which makes it the right default for anything where predictability would be a problem. This tool uses crypto.getRandomValues, not Math.random, so the output is not guessable.
UUID v7 is the newer option and puts a millisecond timestamp in the leading bits, which means v7 values sort chronologically as plain strings. That makes them dramatically better as database primary keys: B-tree inserts land at the right edge of the index instead of scattering random pages across the whole file, which is where v4 fragmentation and write amplification come from. Use v7 unless something in your stack requires v4.
UUID Generator features
How to use the UUID Generator
Pick a version
v4 for random identifiers, v7 for sortable identifiers. v7 values embed a timestamp, so they increase in order.
Choose how many
Set the count from 1 to 10000. One at a time is fine for pasting into a seed file; bulk is for fixtures and migration scripts.
Set the output format
Standard lowercase with hyphens is the default. Uppercase for systems that require it, without hyphens for fixed-width columns, or wrapped in braces for a Windows registry or LDAP entry.
Copy or download
Copy one, copy all as a newline-separated list, or download as JSON, CSV or plain text. The list is also formatted as a ready-to-run SQL VALUES clause.
Frequently asked questions
What is the difference between UUID v4 and v7?
Should I use UUID or a database-generated ID?
Why is Math.random not used?
Is a UUID the same as a ULID or KSUID?
Are these values stored or sent anywhere?
What does the version digit mean?
Related tools
Every tool, in one place
ToolForge has uuid generator plus a growing set of image, colour and developer tools. All of them run locally in your browser, free and without an account.
Browse all tools