UUID generator

Get random v4 or time-ordered v7 UUIDs, one at a time or in bulk.

UUID settings

Check a UUID

What it does

A UUID is a 128-bit identifier you can create anywhere without asking a central server, with practically no chance of two being the same. Version 4 is fully random. Version 7, standardised in 2024 (RFC 9562), starts with the current time, so new IDs sort in creation order, which keeps database indexes compact and fast. UUIDs here are made with your browser’s cryptographically secure random generator, and v7 values made in the same millisecond still come out in order. You can also paste any UUID to see its version and, for v1 and v7, the moment it was created.

How to use it

How it works
  1. A new version 4 UUID is ready as soon as the page opens. Click “Copy” to use it.
  2. Need more? Choose v4 or v7, enter how many (up to 1000) and click “Generate”. Uppercase, hyphens and braces can be switched on or off.
  3. Copy them all, or download them as a text file with one UUID per line.
  4. To check an existing UUID, paste it under “Check a UUID” to see its version and, for v1 and v7, when it was created.

Common uses

  • Creating primary keys or test fixtures for a database
  • Generating IDs for API requests, idempotency keys or correlation IDs
  • Finding out when a v7 or v1 UUID from a log or database was created

Tips

  • Prefer v7 for database primary keys: random v4 keys land all over the index and slow down inserts on large tables.
  • A v7 UUID reveals when it was created. Use v4 where that time shouldn’t be visible, such as public share links.
  • Store UUIDs in a native uuid or 16-byte binary column rather than as 36-character text; it’s less than half the size.

Questions

Can two UUIDs ever be the same?

In theory yes, in practice no. A v4 UUID has 122 random bits; you would need to generate a billion per second for about 86 years to reach a 50% chance of a single duplicate.

What’s the difference between v4 and v7?

v4 is entirely random. v7 starts with a millisecond timestamp followed by random bits, so v7 IDs sort by creation time while staying unique and hard to guess.

Are these UUIDs safe to use as secret tokens?

They’re made with a cryptographically secure generator, but UUIDs aren’t designed as secrets, and v7 shows its creation time. For passwords or API keys, use a dedicated token generator with more randomness.

Is a GUID the same as a UUID?

Yes. GUID is Microsoft’s name for the same 128-bit format. Some Microsoft tools write it in uppercase or inside braces, which you can switch on here.

Related tools

  • JSON formatter and validator

    Format, validate and minify JSON in your browser. Clear errors with line and column, big numbers kept exact, duplicate keys flagged. No upload.

  • JWT decoder and verifier

    Decode a JWT to read its header, payload and expiry, and check its signature with a secret or public key. Runs in your browser; the token stays private.

  • Base64 encoder and decoder

    Encode text or files to Base64 and decode Base64 back, with proper UTF-8, URL-safe Base64 and file detection. Free, in your browser, no upload.

  • URL encoder and decoder

    Percent-encode text for URLs and query strings, or decode %20-style escapes back to text. Handles UTF-8, + for spaces and splits URLs into parts.

  • Hash generator and checksum checker

    Calculate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or files, and check a download against its checksum. In your browser, no upload.

  • Compress images

    Shrink image file size without visible quality loss. Private, fast, free.