Skip to main content

uuid

$uuid

Validates that a string matches valid UUID format (versions 1-5). UUIDs must follow RFC 4122 format: 8-4-4-4-12 hexadecimal digits separated by hyphens.

  • 550e8400-e29b-41d4-a716-446655440000 (v4)

  • 6ba7b810-9dad-11d1-80b4-00c04fd430c8 (v1)

  • 3d813cbb-47fb-32ba-91df-831e1593ac29 (v3)

  • A6EAFB30-E49B-51D4-9B1D-8F6C0F89E8B3 (case-insensitive)

  • 550e8400-e29b-41d4-a716 (too short)

  • 550e8400e29b41d4a716446655440000 (missing hyphens)

  • 550e8400-e29b-61d4-a716-446655440000 (invalid version digit)

  • not-a-valid-uuid-string