UUID Generator

    About this tool

    The UUID Generator creates one or up to 1000 UUIDs per RFC 9562, ready to copy or download as a text file. The default is v4 (random); v7, v1 and v5 are available, as well as v6, v3, Nil and Max. The output format can be adjusted, for example uppercase, without hyphens, in braces or as a URN. The tool can also take an existing UUID apart into its fields. All computation happens in your browser.

    What you can use it for

    Frequently asked questions

    What is a UUID?

    A UUID is a 128-bit value that is practically globally unique without a central authority. It is written as 32 hexadecimal digits grouped 8-4-4-4-12. Microsoft calls it a GUID.

    Which UUID version should I use?

    For everyday use, v4 (pure randomness) is the usual choice. For database keys, v7 is a good fit because it sorts by creation time. For a stable ID derived from a name use v5; v1, v6 and v3 are mainly for legacy systems.

    What is the difference between v4 and v7?

    Apart from version and variant, v4 consists of 122 random bits. v7 starts with the Unix time in milliseconds, so v7 UUIDs sort by creation. The trade-off is that the creation time can be read from a v7 UUID.

    Can UUIDs collide?

    With v4 you would need about 2.7 · 10¹⁸ UUIDs for a 50 % chance of a collision, which is practically impossible. The random bits come from crypto.getRandomValues, the browser's cryptographic random generator.

    How is a v5 UUID created?

    It is computed with SHA-1 from a namespace UUID and a name. The same input always gives the same UUID, on any machine. You can choose DNS, URL, OID, X.500 or a custom namespace.

    How do I generate several UUIDs at once?

    Enter a count from 1 to 1000. From two on, a list appears that you can copy in full or save as a text file with one UUID per line. For v5 and v3, #0, #1 … is appended to the name, otherwise all would be identical.

    What are the UPPER, no −, { } and URN formats for?

    The value stays the same, only the notation changes. Some Windows programs expect uppercase, "no −" is compact for URLs and file names, the Windows registry uses { }, and URN prefixes urn:uuid:.

    How can I tell the version and variant of a UUID?

    The version is the first character of the third block. The variant is the first character of the fourth block: 8, 9, a or b means the standard variant. The tool shows both when you paste a UUID to decode it.

    Are my UUIDs stored or transmitted?

    No. The computation, including SHA-1 and MD5, runs in your browser and nothing is sent. Note that a UUID is not meant to be used as a secret token.

    Background

    A UUID (Universally Unique Identifier) is a 128-bit identifier. It is usually written as 32 hexadecimal digits in five groups (8-4-4-4-12). Its appeal is that many systems can create identifiers independently, without coordinating and without a central registry. Microsoft uses the term GUID for the same concept.

    The current specification is RFC 9562 from 2024. It replaces RFC 4122 and adds versions 6, 7 and 8. The version is the first character of the third block and the variant the first character of the fourth; for today's standard variant that is 8, 9, a or b.

    The versions differ in layout. Apart from version and variant, v4 consists of 122 random bits and is the all-rounder. v1 combines a time in 100-nanosecond steps since 1582 with a clock sequence and a node; the time is scrambled within the value, so v1 does not sort by creation. v6 reorders the time fields so it is sortable and is meant to replace v1. v7 starts with the Unix time in milliseconds, followed by random bits and a counter for several UUIDs within one millisecond. v3 and v5 are name-based: they hash a namespace UUID plus a name (MD5 or SHA-1) and always return the same result for the same input. The standard namespaces are DNS, URL, OID and X.500. There are also the Nil UUID (all bits 0) and the Max UUID (all bits 1).

    For databases, v7 is often advantageous: because the first 48 bits hold the time, new rows land at the end of the index. Random v4 keys instead scatter across the whole B-tree and cause more page splits. The trade-off is that the creation time can be read from the UUID. This also applies to v1 and v6, and a v1 node may contain the machine's MAC address. This tool always uses a random node.

    A UUID is an identifier, not a secret. For access tokens or password reset links, a dedicated token generator should be used.

    The generator takes all random bits from crypto.getRandomValues and computes SHA-1 and MD5 itself in the browser. No data is sent. To decode, you can paste an existing UUID, including uppercase, in braces, as a URN or without hyphens. The tool shows version, variant and, for time-based UUIDs, the timestamp, along with the layout of the 128 bits.

    Help & info

    What is a UUID?

    A 128-bit value that is practically globally unique without a central authority. Written as 32 hex digits in 8-4-4-4-12. Microsoft calls it GUID. RFC 9562 (2024) replaced RFC 4122 and added v6, v7, v8.

    Which version to use?

    When in doubt, v4: pure randomness, reveals no time. For database keys use v7: the first 48 bits are Unix time in milliseconds, so new rows land at the end of the index; random v4 keys scatter across the whole B-tree and cause more page splits (trade-off: the creation time can be read from the UUID). Stable ID from a name: v5. v1/v6 only for legacy data, v3 only for compatibility.

    Name-based (v3, v5)

    A hash over namespace UUID + name. The same input always yields the same UUID, on any machine. The four standard namespaces: DNS, URL, OID, X.500. Custom namespaces are UUIDs you generated yourself.

    How random? Collisions?

    All random bits come from crypto.getRandomValues, the cryptographic random generator of the browser. With v4 (122 bits) you would need about 2.7 · 10¹⁸ UUIDs for a 50 % collision chance, which is practically impossible.

    What does a UUID reveal?

    v1, v6 and v7 contain the creation time; a v1 node may be the MAC address (this tool always uses a random node). No UUID is suitable as a secret token, use the Token Generator for that.

    Notations

    All local

    The computation (including SHA-1 and MD5) runs in your browser; nothing is sent or stored, not even in the address.

    G generates a new UUID · / opens "Decode a UUID" and jumps to its input field.

    ⚠️ Bitte beachten

    Die Werkzeuge auf dieser Website werden als kostenloses Hobbyangebot bereitgestellt und dienen ausschließlich zur Information und privaten Nutzung. Für die Richtigkeit, Vollständigkeit oder Eignung der Ergebnisse für einen bestimmten Zweck wird keine Gewähr übernommen. Vor Verwendung der Ergebnisse — insbesondere bei finanziellen, rechtlichen oder sicherheitsrelevanten Entscheidungen — sind diese eigenverantwortlich zu prüfen. Eine Haftung für Schäden aus der Nutzung ist ausgeschlossen, soweit dies gesetzlich zulässig ist.