🔎

UUID Validator

Validate UUID format and detect the version. Paste one or many UUIDs (one per line) for bulk validation.

About UUID Validator

This tool checks whether a string is a correctly formatted UUID and identifies which version (v1–v8) it is. It also detects the variant (RFC 4122 standard vs others), flags the nil UUID (all zeros), and handles both uppercase and lowercase UUIDs with or without hyphens.

UUID Structure

A standard UUID has the format xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx where M is the version digit (1–8) and N encodes the variant (8, 9, a, or b for RFC 4122).

How to Use

  1. Paste a UUID (or multiple UUIDs, one per line) into the input.
  2. The validator checks format instantly and shows: Valid / Invalid.
  3. For valid UUIDs, the tool also shows the version (v1, v4, etc.) and variant.
  4. Use Bulk Validate to check a list of UUIDs from a database export.

How It Works

The validator uses a regex pattern matching the RFC 4122 UUID format: /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i. The version digit (position 13) and variant bits (position 17) are extracted to identify the UUID type.

Example

550e8400-e29b-41d4-a716-446655440000 → Valid UUID v4
not-a-uuid → Invalid
550e8400e29b41d4a716446655440000 → Invalid (missing hyphens)

FAQ

The nil UUID is a special UUID where all 128 bits are zero: 00000000-0000-0000-0000-000000000000. It is a valid UUID but semantically represents "no UUID" - similar to null or zero.
The 32-character hex string without hyphens (e.g. 550e8400e29b41d4a716446655440000) is often used as a compact UUID representation. This tool accepts both formats.
The variant bits (bits 64–65) define the UUID layout. The RFC 4122 standard requires variant "10xx" - encoded as hex 8, 9, a, or b. Most UUIDs you encounter will be RFC 4122 compliant.