zerouploads

UUID Generator

Make version 4 or version 7 UUIDs in your browser, one or five hundred, with the version and variant bits read back to you.

  • Unlimited
  • No signup
  • Private
  • Works offline

Generate UUIDs

Which version

UUIDsv4

    0 UUIDs · lowercase · hyphenatedmade in the page

    Settings

    Shape

    What is in the first one

    version
    —
    variant
    —
    random bits
    —
    source
    crypto.randomUUID
    Identifiers appear here

    Version 4 or version 7

    Version 4 is 122 random bits. It is the one most people mean by UUID, and it is the right answer when the identifier should give nothing away. Two of them made a second apart look no more alike than two made years apart.

    Version 7 puts the time first. It starts with 48 bits of the clock, then adds 74 random bits. Sort a column of them and they come out in the order they were made. A database index wants exactly that, because rows written together are then stored together.

    The trade is that a v7 tells anyone who reads it when it was made, to the millisecond. For a row id that is usually fine and often useful. For a password reset link it is a leak, so use v4 there.

    Versions
    v4 random, v7 time-ordered, and the nil identifier when you need a placeholder.
    Randomness
    crypto.randomUUID for v4, and crypto.getRandomValues for the random part of v7. Never Math.random.
    Output
    One per line, CSV, a JSON array, or a ready-made SQL insert. You also choose the case and the wrapping.
    Anatomy
    The panel reads the first one back: version, variant, random bits, and a v7's own clock.

    Will two ever be the same

    Not in any system you will build. You would need about 103 trillion version 4 UUIDs before the chance of even one clash reached one in a billion. Made at a billion a second, that many takes more than a day.

    That holds only while the randomness is real. This page uses your browser's cryptographic random source, the kind used to make encryption keys. A UUID made with Math.random has the same shape but far weaker randomness, and it can collide.

    Frequently asked questions

    Are these identifiers sent to me from a server?
    No. Your own browser makes them in this tab. The page sends no request, so nothing is logged and nobody else has seen them. You can turn off your network and keep going.
    Which version should I use?
    Version 4 unless you are using it as a database key. Version 7 sorts by the time it was made, which keeps an index tidy. Anything a stranger can see should be version 4.
    Is version 7 safe to expose?
    It leaks the moment it was made, down to the millisecond. For a row id that rarely matters. For anything that should be unguessable, or anything that hints when an account was created, use version 4.
    Can two of these ever clash?
    In practice, no. Version 4 has 122 random bits, which allows about 5 × 10³⁶ different values. The real risk is a weak random source, and this page does not use one.
    Why does the nil UUID exist?
    It is all zeros, and it means no identifier. Databases and APIs use it where null is awkward. It is a placeholder, never something to store as a real key.
    How many can I make at once?
    Up to 500 a time, and there is no daily limit. Take them as a list, a CSV, a JSON array or a SQL insert, whichever your next step wants.
    Are these GUIDs?
    Yes. GUID is the Microsoft name for the same 128-bit identifier. Pick Braces {…} under Wrapping if you need the shape their tools print.
    Browse all web tools