UUID Generator
This free UUID generator creates identifiers in your browser: random v4, time-ordered v7, or deterministic v5 from a name. Make up to a thousand at once and export them as text, JSON, CSV or SQL. It also decodes any UUID, showing its version, variant and, for v7, the exact time it was created.
Fully random. The default choice for most identifiers.
What is a UUID and why use one?
A UUID is a 128-bit identifier written as 32 hexadecimal digits, like 550e8400-e29b-41d4-a716-446655440000. Its whole purpose is that you can create one on any machine, at any moment, without asking a central authority for permission, and still be practically certain nobody else will ever produce the same value.
That is what makes it different from an auto-incrementing number. A database sequence needs one place to hand out the next value, which becomes a bottleneck the moment you have several servers, an offline mobile client, or data merged from two systems. A UUID sidesteps all of it: the client generates the ID before anything is saved, and nothing has to coordinate.
Which version should I use?
Four choices here, and the honest answer is that most people want the first one:
| Version | What it is | Use it when |
|---|---|---|
| v4 | 122 random bits | The default. Any identifier where you just need uniqueness |
| v7 | Timestamp in front, then random | It is a database primary key, or you want IDs that sort by creation |
| v5 | Deterministic hash of a namespace and a name | The same input must always give the same ID |
| Nil | All zeros | A placeholder or explicit "no value" |
Pick v4 unless you have a reason not to. Pick v7 when the identifier is going into an indexed column, because new rows then land next to each other instead of scattering across the index, which keeps inserts cheap as the table grows.
Do v7 UUIDs really sort in order?
Here they do, including inside the same millisecond, and that is worth checking on any tool you use.
The timestamp in a v7 UUID has millisecond resolution. Generate a batch in one go and every identifier shares the same millisecond, so the ordering falls back to the random bits, which is to say no ordering at all. That defeats the only reason to choose v7 over v4.
RFC 9562 solves it with a monotonic counter: the bits right after the timestamp hold a number that increments for each UUID created in the same millisecond. This tool implements it, so a batch of a thousand comes out strictly ascending. It is a small detail that decides whether the format does what it claims.
What does UUID v5 solve?
Version 5 turns a name into a UUID, and always the same one. It hashes a namespace UUID together with your text using SHA-1, so example.com in the DNS namespace produces one specific identifier, today and in five years.
That is useful whenever you need a stable ID for something that already has a natural name: a URL, a file path, a product code from a supplier's system. Instead of storing a mapping table, you recompute the UUID whenever you need it. The four standard namespaces (DNS, URL, OID and X.500) are built in, and different namespaces give different results for the same name, which is exactly the point.
How do I decode a UUID I already have?
Paste it into the Decode tab. The tool reads the version digit and the variant bits and tells you what format you are looking at, and for a version 7 UUID it extracts the embedded timestamp and shows exactly when it was created, in your local time and in UTC.
A coloured map underneath shows which part of the value is what: the timestamp, the version marker, the counter, the variant, and the random remainder. It accepts the value with or without hyphens, wrapped in braces, prefixed with urn:uuid:, in upper or lower case.
One honest limit: a v4 UUID contains nothing to extract. It is random by design, so there is no creation time and no machine information hidden in it. Any tool claiming otherwise is guessing.
Generating in bulk and exporting
Up to a thousand identifiers in a single batch, which covers seeding a test database or filling a fixture file. The list on screen shows the first two hundred so the page stays responsive; copying and downloading always include the whole batch.
Four output formats are available: plain text, JSON array, CSV with a header row, and a ready multi-row SQL INSERT. The SQL uses a placeholder table and column name, so change those to match your schema before running it.
Formatting follows whatever your platform expects. Uppercase, hyphens removed, and braces are all one click, and braces in particular is how the .NET world usually writes a GUID.
Is any of this sent to a server?
No. Every value is generated and decoded in your browser, using the built-in cryptographic random source, the same one browsers use for security keys. Nothing is uploaded, logged or stored, and the page keeps working offline once it has loaded.
That matters more than it might seem. An identifier generated by someone else's server is an identifier someone else has seen, which is the wrong property for a primary key in a private system. Here they never leave your device.
Frequently asked questions
What is a UUID?
A UUID (universally unique identifier) is a 128-bit value written as 32 hexadecimal digits in five groups, like 550e8400-e29b-41d4-a716-446655440000. It is designed so you can generate one anywhere, anytime, without a central authority, and be practically certain no one else will ever generate the same one.
What is the difference between UUID v4 and v7?
Version 4 is fully random, the right default when you just need a unique ID. Version 7 puts a millisecond timestamp at the front, so identifiers sort in the order they were created. That ordering makes v7 a better database primary key, because new rows land together instead of scattering.
Do v7 UUIDs really sort in order?
Here they do, even within the same millisecond. A batch generated at once would otherwise share one timestamp and fall back to random order, so this tool adds the monotonic counter described in RFC 9562. Generate a thousand and they come out strictly ascending, which is the whole point of v7.
What is UUID v5 for?
Version 5 is deterministic: the same namespace and name always produce the same UUID. It is how you turn a URL, a filename or an external key into a stable identifier without storing a lookup table. Different inputs give different UUIDs, and the result never changes between runs.
Can two UUIDs ever be the same?
In theory yes, in practice no. A version 4 UUID has 122 random bits, so you would need to generate about 2.7 quintillion of them before a collision became likely. Every value here comes from your browser cryptographic random source, not a weak pseudorandom generator.
How do I find out when a UUID was created?
Switch to Decode and paste it in. The tool reports the version and variant, and for a version 7 UUID it extracts the embedded millisecond timestamp and shows it in your local time and in UTC. A version 4 UUID has no time inside it, because it is pure randomness.
Why does my UUID have braces or no hyphens?
They are the same value in different clothes. The .NET world often writes GUIDs wrapped in braces, some systems strip the hyphens to save space, and casing varies by platform. This tool generates any of those forms and accepts all of them when decoding, so a paste never fails on styling.
How many can I generate at once?
Up to a thousand in a single batch, which is enough to seed a test database or fill a fixture file. The list shows the first two hundred so the page stays quick, while copying and downloading always include every identifier in the batch.
Can I export them as SQL or JSON?
Yes. Choose plain text, JSON, CSV or a ready SQL insert statement, then copy the result or download it as a file. The SQL option writes a multi-row INSERT you can paste into a client after changing the table and column names to match your schema.
Is my data sent anywhere?
No. Every UUID is generated and decoded locally in your browser with JavaScript. Nothing is uploaded, logged, or stored, and the values disappear when you close the tab. You can safely generate identifiers for private projects, and it keeps working offline once the page has loaded.
Related tools
GeneratorsPassword GeneratorCreate strong, random passwords right in your browser.
DeveloperTimestamp ConverterConvert Unix timestamps to dates and back, in any unit.
GeneratorsRandom Number GeneratorFair numbers, up to 1000 at a time, with a record of the draw.
GeneratorsLorem Ipsum GeneratorPlaceholder text as plain text or ready-to-paste HTML.
GeneratorsQR Code GeneratorCreate a QR code for any link or text and download it.
Last updated: September 17, 2026