Skip to main content
CalcChef

UUID Generator

Generate 1 to 1,000 random v4 UUIDs, or time-based v1, or name-based v5 and v3 from a namespace and a name, and copy them. Repeats of v4 are very unlikely. How it works

Use the UUID Generator

Random: 122 bits from the browser's cryptographic generator. For IDs that sort by time, use the UUID v7 generator.

    About the UUID Generator

    A version 4 UUID has 122 random bits, written as 32 hex digits in 8-4-4-4-12 groups, such as 550e8400-e29b-41d4-a716-446655440000. This generator makes 1 to 1,000 of them from the browser’s cryptographic random source and copies the list. Repeats are possible but very unlikely, as the example below works out. The Version list also makes time-based version 1 UUIDs and name-based versions 5 and 3: the DNS namespace and the name www.example.com always give the version 5 UUID 2ed6657d-e927-568b-95e1-2665a8aea6a2.

    How to use this tool

    1. Choose the Version: 4 (random, the default), 1 (time-based), or 5 or 3 (name-based).
    2. For version 4 or 1, type a quantity from 1 to 1,000 and press Generate; the list on screen is replaced. For version 5 or 3, pick the namespace and type the name.
    3. Press Copy for the whole list, one UUID per line, or the copy button on a row for one UUID.

    Frequently asked questions

    Is a UUID v4 guaranteed to be unique?
    No. RFC 9562 says global uniqueness cannot be guaranteed without a shared scheme, and a v4 value is only 122 random bits. A repeat is very unlikely, but a table that must never hold two equal keys should still enforce that with a unique constraint.
    Is a GUID the same as a UUID?
    Yes. RFC 9562 names GUID (Globally Unique IDentifier) as another name for a UUID, and GUID is the term Microsoft uses. A v4 UUID from this page works wherever a GUID is asked for. It is printed in lower case without braces; some tools write the same value in upper case or inside { }.
    Can I use a UUID as a password reset token or API key?
    Not on its own. RFC 9562 says implementations should not assume UUIDs are hard to guess and must not use them as security capabilities, identifiers whose mere possession grants access. Use a token generator built for secrets instead.
    How many UUIDs can I generate at once?
    From 1 to 1,000 whole numbers. Empty, 0, 1001, 2.5, -3 and 1e3 each show a message next to the field, and Generate stays off until the number is valid.
    How do I make a version 5 UUID from a name?
    Choose Version 5, pick the namespace (DNS, URL, OID or X.500 from RFC 9562, or a custom UUID) and type the name. The namespace and the name, in UTF-8, are hashed with SHA-1, so the same pair always gives the same UUID: DNS and www.example.com give 2ed6657d-e927-568b-95e1-2665a8aea6a2, and version 3, which uses MD5, gives 5df41881-3aed-3515-88a7-2f4a814cf09e. Those are the test values in RFC 9562 appendix A. Anyone who guesses the name can compute the UUID, so it is not a secret.
    What is the difference between UUID v4 and UUID v7?
    A v4 value is random, so new values land at scattered positions in a database index (RFC 9562 section 2.1). A v7 value starts with a millisecond timestamp, so its text form sorts in time order. The UUID v7 Generator makes and decodes those.

    Related Tools

    View all tools