Skip to content
MyToolkit.pro

Code & Data

UUID Generator

Enter how many UUIDs to generate (1–100), or leave the field empty for one, then click Generate.

Private by design: identifiers are generated only in this browser.

Options

From 1 to 100 UUIDs per generation.

Version 4 is generated locally with secure browser randomness.

Generated UUIDs

UUID version 4

Count
0

    About UUID v4

    A version 4 UUID is a 128-bit identifier whose random bits are formatted in the standard 8-4-4-4-12 hexadecimal layout.

    How to generate UUID v4 values in bulk

    1. Type a number from 1 to 100 in How many UUIDs. If you leave the field empty, you get one UUID.
    2. Choose a format. Include hyphens is on by default and gives the standard 36-character form. Turn it off to get a 32-character string.
    3. Tick Uppercase letters if the system you are pasting into expects A–F rather than a–f.
    4. Click Generate UUID. The tool also makes a new batch whenever you change the number or switch either option, so the list always matches the current settings.
    5. To copy one value, use the Copy button next to it.
    6. To copy the whole list at once, one UUID per line, use Copy all.
    7. To save the batch as a plain text file with one UUID per line, use Download TXT.
    8. For a spreadsheet or database import, use Download CSV. The file has a uuid header row, then one UUID per row.

    Every value is a random version 4 UUID, built from your browser's cryptographic random number generator. You can't choose another version here, such as v1, v5 or v7.

    What the four output formats look like

    The options only change how a UUID is written. The 128-bit value stays the same. Here is one generated UUID in every combination:

    Include hyphens Uppercase letters Output
    on off c115ca40-0a53-4358-ad4c-76afe44b5768
    on on C115CA40-0A53-4358-AD4C-76AFE44B5768
    off off c115ca400a534358ad4c76afe44b5768
    off on C115CA400A534358AD4C76AFE44B5768

    A batch of three with the default settings looks like this (you get different values every time):

    c115ca40-0a53-4358-ad4c-76afe44b5768
    6d646645-9370-4dd1-89b4-65d4b5e19a73
    981209ea-1b13-4eed-8024-447ca5c98718
    

    To spot a v4 UUID, check two positions. The first character of the third group is always 4, which is the version. The first character of the fourth group is always 8, 9, a or b (A or B in uppercase), which is the variant. Without hyphens, these are the 13th and 17th characters.

    Where a batch of random UUIDs is useful

    • Seeding a database: generate 50 IDs and use the CSV download to import them as primary keys for test rows in PostgreSQL (uuid column), MySQL (CHAR(36), or BINARY(16) after converting with UUID_TO_BIN()) or SQLite.
    • Fixtures and mocks: paste values into JSON fixtures, API mocks or unit tests, where every record needs a fixed, unique id that you hard-code once.
    • Idempotency and correlation keys: when you test an API by hand and it accepts an Idempotency-Key or X-Request-ID header, use a fresh UUID for each request.
    • Compact tokens: switch off hyphens for file names, cache keys or URL segments where you want 32 hex characters with no separators.

    If you need JSON objects such as [{"uuid": "…"}], download the CSV and run it through CSV to JSON. The uuid header becomes the property name.

    Limits and when to use something else

    • Up to 100 per click: the count must be a whole number written in digits. Values such as 0, 101, 2.5, -3 or 1e2 show the message "Enter a whole number between 1 and 100." Spaces around the number are ignored, and a leading zero like 05 counts as 5. For thousands of IDs, generate them in code, for example with crypto.randomUUID() in JavaScript or uuid.uuid4() in Python.
    • Nothing is saved: each click or option change replaces the list. If you want to keep a batch, copy or download it before you change any settings.
    • Only v4: if your database needs time-ordered keys, use a UUID v7 function from your language's library. The current UUID standard is RFC 9562, which replaces RFC 4122.
    • Very old browsers: if the browser has no secure random generator, the tool shows an error. It does not fall back to weaker randomness.
    • A UUID is not a secret: a v4 UUID has 122 random bits, but it is designed to be unique, not hidden. For passwords or API secrets, use the Password Generator.

    Frequently asked questions

    What is the difference between a UUID and a GUID?

    Nothing in practice. GUID is Microsoft's name for the same 128-bit identifier format, so a v4 UUID from this page works anywhere a GUID is expected, for example in .NET or Windows registry entries.

    Can two generated UUID v4 values ever be the same?

    In theory, yes, but you need about 2.7 × 10¹⁸ (2.7 quintillion) v4 UUIDs for a 50% chance of a single duplicate. Even with a billion values the probability is about 10⁻¹⁹, so applications treat them as unique without a central registry.

    Are UUIDs case-sensitive?

    No. The standard says hex digits should be written in lowercase but must be accepted in either case, so `ABC` and `abc` mean the same value. Some string comparisons in code are case-sensitive, though, so pick one style and stick to it.

    Should I use UUID v4 as a database primary key?

    It works, and it lets you create IDs anywhere without a central counter. Random v4 keys land at random spots in a B-tree index, which can slow inserts on large tables. Time-ordered UUID v7 avoids that.

    How do I get a GUID in braces, like {…}, for .NET?

    This tool doesn't add braces. Generate with hyphens on, and turn on uppercase if your project uses it, then add `{` and `}` yourself. .NET's `Guid.Parse` accepts the value with or without braces.

    All in Code & Data

    Password Generator

    Generate strong, random passwords in your browser. Choose the length and character sets, avoid ambiguous characters, and see the entropy in bits. Nothing is uploaded.

    Code & Data In your browser

    Random Picker

    Pick one or more random items from a list, with or without replacement. Private, fair selection entirely in your browser.

    Text & Lists In your browser

    Random team generator

    Split a list of people into balanced random teams, with an optional seed for a repeatable draw.

    Text & Lists In your browser

    QR Code Generator

    Generate a QR code from text or a URL, entirely in your browser. No upload, no external library, no tracking. Download as PNG.

    Code & Data In your browser

    Hash Generator

    Generate MD5, SHA-1, SHA-256 and SHA-512 hashes of any text in your browser. Digests update instantly and nothing is uploaded.

    Code & Data In your browser

    Cron Expression Helper

    Explain a cron expression in plain English and preview its next run times. Runs entirely in your browser — nothing is uploaded.

    Code & Data In your browser

    What do you need?

    Swipe up for the next one