Skip to content
Devlar

Runs in your browser. Your input stays on your device.

UUID Generator

Generate random version 4 or time-ordered version 7 UUIDs, one or thousands at a time, and inspect any UUID to see its version, variant, and creation time.

Version

Generate UUIDs

  • v4: 122 random bits, best when you just need a unique ID.
  • v7: starts with the creation time, so IDs sort in order, ideal for database keys.
Format

Generated UUIDs

    Select a UUID to copy it. Use the arrow keys to move through the list.

    0 UUIDs

    Inspect a UUID

    Privacy: This tool runs in your browser. Your input is processed on your device and is never uploaded to a server.

    How to use

    1. Choose a version: v4 for general-purpose random IDs, or v7 when the IDs will be database keys and should sort by creation time.
    2. Enter how many to generate (1 to 10,000) and pick the format: lowercase or uppercase, with or without hyphens, with braces, one per line or as a JSON array.
    3. Select Generate, or press Ctrl+Enter (Cmd+Enter on a Mac) anywhere in the generator. To copy a single UUID, select it in the list (or move through the list with the arrow keys and press Enter). Press ? to see all keyboard shortcuts.
    4. Use Copy output or Download to save the whole batch as a .txt or .json file.
    5. To check an existing UUID, paste it into the inspector below the generator to see whether it is valid, its version and variant, and for time-based versions, when it was created.

    Example

    The inspector reading a version 7 UUID from RFC 9562 (uppercase input is fine).

    Input
    017F22E2-79B0-7CC3-98C4-DC0C0C07398F
    Output
    Valid UUID: 017f22e2-79b0-7cc3-98c4-dc0c0c07398f
    Version: Version 7 (Unix time ordered)
    Variant: RFC 9562
    Created (UTC): 2022-02-22T19:22:22.000Z

    Frequently asked questions

    Should I use UUID v4 or v7?

    Use v4 when you only need a unique identifier: it is 122 random bits with no information about when it was made. Use v7 for database primary keys: it starts with the creation time in milliseconds, so new rows are inserted in order, which keeps B-tree indexes compact and faster than with random keys. The trade-off is that a v7 UUID reveals roughly when it was created.

    Are these UUIDs random enough to be unique?

    Yes. They are generated in your browser with the Web Crypto API (crypto.getRandomValues), the same source of randomness browsers use for encryption keys, never Math.random. A v4 UUID has 122 random bits; you would need to generate about a billion per second for 85 years before the chance of a single duplicate reached 50%.

    Can I use a UUID as a password or secret token?

    A v4 UUID is unpredictable, but it is not designed as a secret: it often ends up in URLs, logs, and analytics, where secrets should not be. Use a dedicated token generator for secrets. Never use a v7 UUID as a secret, because its first 48 bits are a readable timestamp.

    What are the nil and max UUIDs?

    The nil UUID (all zeros, 00000000-0000-0000-0000-000000000000) and the max UUID (all f) are special values defined by RFC 9562, often used as placeholders such as “no value” or “end of range”. They have no version, and the inspector labels them.

    Unix Timestamp Converter

    Convert Unix timestamps in seconds, milliseconds, microseconds, or nanoseconds to dates in any time zone, and back.

    Keyboard shortcuts

    Run the tool, from anywhere in it
    Ctrl+Enter
    Move through the UUID list
    ↑↓
    First or last UUID in the list
    HomeEnd
    Copy the UUID in focus
    Enter
    Show this list (outside text fields)
    ?
    Close this list
    Esc