Skip to content
WebUtilityHub

UUID Generator (v4)

Generate random version 4 UUIDs, also known as GUIDs, using your browser’s cryptographically secure random number generator. Copy one value or the whole list.

From 1 to 1000.

Format

Generated UUIDs

    How to use the UUID Generator

    1. Choose how many UUIDs you need, from 1 to 1,000, and click “Generate new UUIDs”.
    2. Choose a format if needed — uppercase, without hyphens, or wrapped in braces. The list updates instantly.
    3. Click “Copy” next to a value to copy it, or “Copy all” to copy the whole list, one UUID per line.

    Examples

    Standard format
    Input
    1 UUID, default options
    Result
    3f2b8c1e-9d4a-4e6f-8a1b-2c3d4e5f6a7b
    Example only — every value you generate is random and different.
    Uppercase without hyphens
    Input
    Uppercase on, Hyphens off
    Result
    3F2B8C1E9D4A4E6F8A1B2C3D4E5F6A7B
    Registry-style braces
    Input
    Uppercase on, Braces on
    Result
    {3F2B8C1E-9D4A-4E6F-8A1B-2C3D4E5F6A7B}

    UUID format

    A standard UUID has 36 characters: 32 hexadecimal digits and four hyphens, in groups of 8, 4, 4, 4 and 12. Hexadecimal digits are case-insensitive, so the lowercase and uppercase forms represent the same value. The RFC 9562 standard recommends lowercase output, which is the default here.

    Generating many at once

    Up to 1,000 UUIDs can be generated in one go. “Copy all” copies them one per line, ready to paste into a spreadsheet column, a SQL script or a test file. Changing the format options reformats the same values; click “Generate new UUIDs” for fresh ones.

    To check JSON test fixtures that contain your generated IDs, use the JSON Formatter. To place an ID in a URL, no encoding is needed: UUIDs only use characters that are safe in URLs.

    Common uses

    • Creating primary keys and identifiers for database rows, documents and records.
    • Generating test data, fixtures and mock IDs for development.
    • Naming files, uploads or cache entries so they never collide.
    • Producing correlation and request IDs for logs and distributed tracing.

    Limitations

    • Only version 4 (random) UUIDs are generated. Time-ordered versions such as v1 or v7 are not available.
    • Random UUIDs are not sortable by creation time, which can make some database indexes less efficient than with time-ordered IDs.
    • A UUID is an identifier, not a secret. Use a dedicated tool for passwords and security tokens.

    Frequently asked questions

    What is a UUID v4?

    A UUID (Universally Unique Identifier) is a 128-bit value written as 32 hexadecimal digits in five groups, such as 3f2b8c1e-9d4a-4e6f-8a1b-2c3d4e5f6a7b. Version 4 UUIDs are generated from random numbers; the “4” at the start of the third group marks the version, and the first digit of the fourth group is always 8, 9, a or b.

    Is a UUID the same as a GUID?

    Yes. GUID (Globally Unique Identifier) is Microsoft's name for the same 128-bit format. Windows tools often display GUIDs in uppercase and sometimes inside braces, which you can choose in the format options.

    Can two generated UUIDs ever be the same?

    In theory yes, in practice no. A version 4 UUID has 122 random bits, so you would need to generate around a billion UUIDs every second for about 85 years to reach a 50% chance of a single duplicate.

    Are these UUIDs secure?

    They are created with crypto.randomUUID or crypto.getRandomValues, the browser's cryptographically secure random number generators, never with Math.random. They are therefore unpredictable, but a UUID is still meant to identify things, not to protect them.

    Format, minify and validate JSON with precise error locations. Numbers and key order are preserved.

    Developer

    Percent-encode or decode URLs, query parameters and form data, with full UTF-8 support.

    Developer