Developer Tools

UUID Generator

Generate cryptographically secure UUID v4 identifiers in bulk.

Random. The default choice for unique identifiers.
0 generated

    About this tool

    A UUID (Universally Unique Identifier) is a 128-bit value such as 3f2b8c1e-9d4a-4c7b-8e21-5a6f0b9c2d13 that can be generated anywhere, by any machine, without a central registry, and still be unique in practice. Applications use them as database keys, request IDs, file names and message IDs, especially in distributed systems where an auto-increment counter would need coordination.

    This generator creates UUID version 4 (random) and version 7 (time-ordered, standardized in RFC 9562 in 2024), plus two popular alternatives: ULID and NanoID. All values come from your browser's cryptographically secure random number generator. You can also paste an existing UUID or ULID to see its version and, for time-based IDs, when it was created.

    How to use UUID Generator

    1. Pick the ID type: UUID v4, UUID v7, ULID or NanoID. A one-line hint under the toolbar explains when to use each.
    2. Set how many IDs you need (up to 1,000). The list regenerates when the type or quantity changes.
    3. For UUIDs, choose uppercase, with or without hyphens, or wrapped in braces as used by Microsoft tools. These options re-format the same IDs instead of generating new ones, so a list you already copied stays valid.
    4. For NanoID, choose the length and the alphabet, for example digits only, or a readable set without look-alike characters such as 0/O and 1/l.
    5. Copy a single ID, copy all, or download the list as a text file. Paste any UUID or ULID into the inspector to decode it.

    Examples

    UUID v4 (random)

    Input
    Type: UUID v4
    Result
    9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d

    The 13th hex digit is always 4 (the version); the 17th is 8, 9, a or b (the variant).

    UUID v7 (time-ordered)

    Input
    Type: UUID v7, generated on 2026-11-14
    Result
    01a1d758-2290-7a1c-8b2d-4f6e9a0c1d2e

    The first 48 bits are the Unix timestamp in milliseconds, so IDs created later sort later.

    NanoID for short URLs

    Input
    Type: NanoID, length 10, alphabet A-Za-z0-9
    Result
    Xk2fP9qLmT

    UUID v4 vs. v7 vs. ULID vs. NanoID

    • UUID v4: 122 random bits. Universally supported, ideal when order does not matter. As a database primary key it scatters inserts across the index, which can slow down large tables.
    • UUID v7: a millisecond timestamp followed by random bits. Same format and column type as v4, but new rows land at the end of the index like an auto-increment ID. The best default for new database schemas.
    • ULID: also timestamp + randomness, written as 26 Crockford Base32 characters. Shorter than a UUID, case-insensitive and sortable as a string; popular in event logs.
    • NanoID: no timestamp, just random characters from an alphabet you choose. The default 21 characters give about the same collision resistance as UUID v4 in a much shorter, URL-friendly string.

    Can two UUIDs ever collide?

    In theory yes, in practice no. A UUID v4 has 122 random bits. You would need to generate about 2.7 quintillion (2.7 × 10^18) of them to reach a 50% chance of a single duplicate. The real risks are bugs, such as seeding a non-cryptographic random generator identically on many machines; this tool always uses the browser's secure crypto.getRandomValues.

    UUIDs are identifiers, not secrets. Do not use them as passwords, API keys or unguessable session tokens; v7 and ULID even reveal when they were created.

    Frequently asked questions

    Everything you need to know about this tool and data security.

    Which UUID version should I use for database primary keys?

    UUID v7. It keeps the global uniqueness of UUIDs while inserting in time order, which keeps B-tree indexes compact in PostgreSQL, MySQL and SQL Server. Use v4 when the creation time must not be visible in the ID.

    Are uppercase and lowercase UUIDs the same?

    Yes. RFC 9562 defines UUIDs as case-insensitive and recommends lowercase output. Some Microsoft tools display them in uppercase and wrapped in braces; this tool can produce that format too.

    What is the nil UUID?

    The nil UUID is all zeros (00000000-0000-0000-0000-000000000000) and is used to mean "no value". The max UUID (all f) is its counterpart. The inspector recognizes both.

    Are the IDs generated on a server?

    No. They are generated in your browser with the Web Crypto API and never leave your device.

    Is my data safe when using this tool?

    Yes, 100% safe. This tool operates entirely inside your web browser using client-side JavaScript and WebAssembly. Your data never touches any external server.