UUID Generator & Validator

Generate v1 or v4 UUIDs, validate existing ones, detect versions, and inspect v1 timestamps. Use the tabs below to generate or inspect UUIDs.

Generation Options

About UUID Generator & Validator

A UUID is a 128-bit identifier you can generate anywhere — on any server, in any process, offline — with near-zero risk of two of them ever colliding. That property makes them the default choice for database primary keys, distributed system identifiers, idempotency keys, and anything that needs to be unique without a central authority handing out numbers.

The two versions you'll meet most often behave very differently. Version 4 is purely random, which makes it unguessable and ideal when you don't want IDs to leak ordering or timing. Version 1 is built from a timestamp and a node identifier, so it's sortable and carries the creation time — which this tool can extract and show you. Picking the right one matters: random UUIDs scatter across a database index, while time-based ones cluster.

This generator creates v1 or v4 UUIDs on demand and also works in reverse: paste an existing UUID to confirm it's well-formed, detect which version it is, and — for v1 — decode the embedded timestamp. Everything runs locally, so generated IDs are never logged or transmitted.

How to use UUID Generator & Validator

  1. Pick a version

    Choose v4 for random, unguessable identifiers, or v1 when you want the ID to encode its creation time and sort roughly in order.

  2. Generate

    Produce one or many UUIDs at once and copy them straight into your seed data, code, or test fixtures.

  3. Validate an existing UUID

    Paste a UUID to confirm it follows the correct 8-4-4-4-12 format and to detect which version it belongs to.

  4. Inspect a v1 timestamp

    For version 1 UUIDs, the tool decodes the embedded timestamp so you can see when the identifier was created.

Frequently asked questions