ToolNimba Browse

🆔 UUID Generator

By ToolNimba Editorial Team · Updated 2026-06-19

    Choose a count and press Generate.

    This UUID generator creates random version 4 UUIDs (also called GUIDs) directly in your browser. Pick how many you need, from one up to 50, and press Generate. Each identifier is produced from a cryptographically secure random source, so the values never touch a server and never leave your device. Copy a single UUID with the button beside it, or grab the whole batch at once with Copy all.

    What is the UUID Generator?

    A UUID (Universally Unique Identifier), known in the Microsoft world as a GUID (Globally Unique Identifier), is a 128-bit value written as 32 hexadecimal digits in five groups separated by hyphens, for example 3f2504e0-4f89-41d3-9a0c-0305e82c3301. The format is fixed at 8-4-4-4-12 digits, so a UUID is always 36 characters long including the four hyphens. The point of a UUID is to let many different systems generate identifiers independently and still be confident the values will not collide, without any central authority handing out numbers.

    There are several UUID versions. This tool produces version 4 UUIDs, which are built almost entirely from random data. Of the 128 bits, 6 are reserved to mark the version and the variant, leaving 122 bits that are random. That is why a v4 UUID is the safest choice for general use: it carries no timestamp, MAC address, or other identifying information, so it does not leak anything about the machine or moment that created it. You can spot a v4 UUID because the first digit of the third group is always 4, and the first digit of the fourth group is always 8, 9, a, or b.

    The randomness here comes from the browser crypto API, specifically crypto.randomUUID() where available, with a crypto.getRandomValues() fallback that sets the version and variant bits by hand. Both draw from a cryptographically secure pseudo-random number generator, not the ordinary Math.random(). With 122 random bits the pool of possible values is so vast (around 5.3 undecillion) that you would need to generate billions of UUIDs per second for many years before a duplicate became remotely likely, which is why v4 UUIDs are treated as practically unique in real systems.

    When to use it

    • Creating primary keys for database rows when you want IDs that can be generated by the application rather than the database.
    • Assigning unique identifiers to API requests, log entries, or distributed events so they can be traced across services.
    • Naming files, test fixtures, or temporary resources where you need a value that will not clash with anything else.
    • Generating correlation IDs, session tokens, or idempotency keys during local development and testing.

    How to use the UUID Generator

    1. Set how many UUIDs you want using the count field, anything from 1 to 50.
    2. Optionally tick Uppercase or Wrap in braces to match the format your code or platform expects.
    3. Press Generate to produce the batch (or change a setting, which regenerates automatically).
    4. Click Copy next to a single UUID, or Copy all to copy the whole list at once.

    Formula & method

    A v4 UUID is 128 bits: 122 random bits plus 6 fixed bits. Version nibble = 4, variant bits = 10. Written as 8-4-4-4-12 hex digits, e.g. xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx where y is one of 8, 9, a, or b.

    Worked examples

    Reading the structure of a single v4 UUID.

    1. Take the value 3f2504e0-4f89-41d3-9a0c-0305e82c3301.
    2. Count the groups: 8-4-4-4-12 hex digits, 36 characters total with hyphens.
    3. The third group starts with 4 (41d3), confirming it is version 4.
    4. The fourth group starts with 9 (9a0c), a valid variant digit (8, 9, a, or b).

    Result: A correctly formed, server-free version 4 UUID.

    Generating five UUIDs as uppercase values wrapped in braces.

    1. Set the count to 5.
    2. Tick Uppercase and Wrap in braces.
    3. Each result now looks like {3F2504E0-4F89-41D3-9A0C-0305E82C3301}.
    4. Use Copy all to paste the full list into a config file or SQL script.

    Result: Five brace-wrapped, uppercase GUIDs ready to paste.

    Common UUID versions and how they are generated

    VersionBased onBest for
    v1Timestamp + MAC addressTime-ordered IDs (can leak the host MAC)
    v3MD5 hash of a name + namespaceReproducible IDs from a known name
    v4Random data (122 random bits)General-purpose unique IDs (this tool)
    v5SHA-1 hash of a name + namespaceReproducible IDs, stronger hash than v3
    v7Unix timestamp + random dataSortable, time-ordered modern IDs

    Anatomy of a version 4 UUID

    GroupDigitsNotes
    1st8 hexRandom
    2nd4 hexRandom
    3rd4 hexStarts with 4 (the version)
    4th4 hexStarts with 8, 9, a, or b (the variant)
    5th12 hexRandom

    Common mistakes to avoid

    • Assuming UUIDs are guaranteed unique. Version 4 UUIDs are random, so a collision is astronomically unlikely but not mathematically impossible. For critical systems still keep a unique constraint in the database rather than relying on the format alone.
    • Using Math.random() to make UUIDs in code. Math.random() is not cryptographically secure and can repeat patterns. Use crypto.randomUUID() or crypto.getRandomValues() instead, which is what this tool does.
    • Treating a v4 UUID as sortable. A v4 UUID contains no timestamp, so sorting a list of them gives a random order. If you need chronological ordering, use v7 or store a separate created-at timestamp.
    • Mismatching case or braces. Some platforms expect lowercase, some expect uppercase GUIDs wrapped in braces. A UUID is case-insensitive in value, but a strict string comparison will fail, so match the format your system expects.

    Glossary

    UUID
    Universally Unique Identifier, a 128-bit value written as 32 hexadecimal digits in an 8-4-4-4-12 pattern.
    GUID
    Globally Unique Identifier, Microsoft's name for the same 128-bit identifier, often shown wrapped in braces.
    Version 4
    A UUID generated almost entirely from random data, with only the version and variant bits fixed.
    Variant
    Two or three bits that mark which UUID layout is in use. For standard UUIDs the fourth group starts with 8, 9, a, or b.
    CSPRNG
    Cryptographically secure pseudo-random number generator, the kind of randomness the browser crypto API provides.

    Frequently asked questions

    What is a UUID generator?

    A UUID generator creates Universally Unique Identifiers, 128-bit values written as 36-character strings like 3f2504e0-4f89-41d3-9a0c-0305e82c3301. This one makes random version 4 UUIDs in your browser, with no server involved.

    What is the difference between a UUID and a GUID?

    There is no real difference. GUID (Globally Unique Identifier) is Microsoft's name for a UUID. They use the same 128-bit format. GUIDs are often shown in uppercase and wrapped in braces, which you can toggle here.

    Are version 4 UUIDs truly random?

    Yes. A v4 UUID has 122 random bits, drawn from a cryptographically secure random source. Only 6 bits are fixed to mark the version and variant, so the values carry no timestamp or hardware information.

    Can two UUIDs ever be the same?

    In theory yes, but with 122 random bits the odds are vanishingly small. You would need to generate billions of UUIDs per second for many years before a duplicate became likely, so they are treated as unique in practice.

    Is this UUID generator safe and private?

    Yes. Every UUID is generated locally in your browser using the Web Crypto API. Nothing is sent to a server, logged, or stored, so the identifiers stay entirely on your device.

    How many UUIDs can I generate at once?

    You can generate from 1 up to 50 UUIDs in a single batch. Use the Copy all button to copy the whole list, one UUID per line, ready to paste into your code or config.