UUID Generator
Generate up to 1000 UUID v4, v7 or ULID values at once, and inspect a UUID's version and creation time.
Fully random. The most widely used.
Generate up to 1000 UUID v4, v7 or ULID values at once, and inspect a UUID's version and creation time.
Fully random. The most widely used.
Generates unique identifiers (UUIDs) that almost never collide. Use it when you need a temporary ID during development.
Choose the count and format.
Click the generate button.
Copy it and use it.
A UUID is a 128-bit identifier written as hexadecimal digits in an 8-4-4-4-12 pattern. v4 is mostly random, so it has no relation to the order of creation, while v7 puts the Unix time (in milliseconds) in the first 48 bits and fills the rest with random values, so it sorts in order of creation. ULID is the same idea written as 26 alphanumeric characters (Crockford Base32).
As a database primary key, the sortable v7 or ULID tends to be better for indexes, and v4 is fine if you do not want to reveal the order. Just note that v7 and ULID contain the creation time in the value.
The first character of the third group is the version. For example, in ae960ac7-e54f-4efc-84c4-342f150ffe56 the third group is 4efc and its first character is 4, so it is v4. The first character of the fourth group (one of 8, 9, a or b) indicates the variant.
This tool tells you the version of a pasted UUID and, for v7, decodes the first 48 bits into a time and shows the creation time. For example, a value whose first 48 bits are 0x018f3a2b4c5d was created around 2024-05-02 16:37:47 (UTC).
v4 has 122 random bits, so the chance of getting the same value by accident is negligible in practice. Still, for values that must be hard for a person to guess (such as password-reset tokens), do not rely on the UUID format itself; create them separately with a security-grade random generator.
You can create up to 1000 at a time and copy them to use as test data or sample records.
A UUID is a 128-bit value, written as 32 hexadecimal characters split by hyphens in an 8-4-4-4-12 pattern.
With the hyphens it's 36 characters, and without them it's 32.
Example: 123e4567-e89b-12d3-a456-426614174000 shows the format; actual generated values are different every time.
Effectively the same concept; GUID is the name used in the Microsoft world.
The format is the same too, though in Windows and .NET environments the convention is uppercase with curly braces.
In this tool, the uppercase, braces and remove-hyphens options let you match these notations.
The same UUID can take several shapes through letter case, hyphens and braces, so it's safest to ignore these differences when comparing.
Default
Uppercase
No hyphens
Braces
You can, but performance varies with the storage method and sort order, so choose the type carefully.
Random v4 values can slot new rows all over the index and hurt write performance, while time-ordered v7 or ULID have less of that problem.
There's no single answer; it depends on whether you need something short and simple or something generated in several places without collisions.
Uniqueness
Length
Guessability
Ordering
It has the advantage of being hard to guess, but it can't replace permission checks.
If anyone who knows the UUID in the URL can get access, the data is exposed the moment the URL leaks.
Note too that UUID v7 and ULID contain the creation time in their first part, so the time of creation shows.
Always handle access control on the server with login and permission checks.
UUIDs come in several versions depending on how they're generated, and the latest standard is RFC 9562.
v1
v3, v5
v4
v6, v7
v8
A ULID is 26 characters: the first 10 are the creation time and the last 16 are a random value.
It uses a character set called Crockford Base32, which leaves out the easily confused I, L, O and U, and it's safe to put directly in a URL.
This tool also creates ULIDs, and it analyzes a pasted value to show even the creation time.
This tool can create up to 1,000 at once, and you can copy them joined by line breaks, commas or as a JSON array.
UUIDs are generated with your browser's cryptographic random numbers, and what you enter isn't sent to a server.
In v4, 122 of the 128 bits, after the 6 bits for version and variant, are random, so there are about 5.3 times 10 to the 36th possibilities.
Even if you generate a billion, the chance of getting the same value is practically negligible, so in practice they're used on the assumption that they won't collide.
In environments with a weak random number generator this assumption breaks, which is why a generator that uses cryptographic randomness, like this tool, matters.
Most languages provide a v4 generation function out of the box.
JavaScript (browser)
Python
Java
PostgreSQL
Linux command
Look at whether it's 36 characters of hexadecimal in the 8-4-4-4-12 pattern, and whether the version and variant digits are right.
Paste a value into this tool's UUID/ULID analysis box and it tells you whether the format is valid, which version it is and, for types that carry a time, even the creation time.
A v7 holds a Unix time in milliseconds in the first 48 bits, so it sorts in the order it was created.
There's a method that uses a counter to keep order even within the same millisecond, and the remaining bits are filled randomly.
So note that reading just the first 12 characters tells you when it was created.
A random UUID itself causes few problems when made public, but it depends on what it's used for.
For tests that need dummy values in the right format, it's handy to create them all at once with this tool.
When possible, using a dedicated UUID type or a 16-byte binary type instead of a string is better for space and speed.
Storing it as a 36-character string uses far more space per row and makes the index bigger.
Dedicated UUID type
Binary type (BINARY 16)
String (CHAR 36)
Lowercase with hyphens, 36 characters, is the most common, and if you want it shorter, 32 characters without hyphens is also widely used.
If uppercase and lowercase get mixed, the same value is treated as different strings and can be processed twice, so standardize on one form when storing.
If you need a shorter URL, you could consider the 26-character ULID or a Base64 variant notation, but they aren't standard notations, so you have to watch compatibility.
You use them when the same name must always produce the same UUID.
v3 uses MD5 and v5 uses SHA-1, mixing a name with a namespace, and the same name gives the same result no matter how many times you generate it.
They're used in data migration to turn unique names from another system into UUIDs, and this tool creates random v4, time-ordered v7 and ULIDs.
Anyone who knows the input can generate the same value for a name-based UUID, so it isn't suitable as a secret token.
Both are time-sortable identifiers; if compatibility matters, UUID v7 fits, and if a short notation matters, ULID does.
Length
Standard
Characters
Time precision
DB compatibility
Unify letter case, hyphens and braces before comparing so the same UUID is judged equal.
Pasting a value into this tool's UUID analysis box gives you a quick check on whether the format is valid.
A v7 or ULID, which carry the time, lets you tell roughly when it was created from the ID alone.
A v4 has no time information, so it needs a separate created-date column, while with v7 the ID itself shows the rough creation order, so sorting recent items is easy.
However, being able to estimate the creation time from an ID also means that information is exposed to outsiders.
This tool creates UUIDs with your browser's cryptographic random number generator.
It uses secure randomness provided by the operating system, not weak randomness like Math.random, so it's hard to predict and the chance of a collision is practically nil.
The generated values are used only on screen and aren't sent to a server or stored.