UUID Format

UUID With Hyphens

The hyphenated 36-character form is the canonical presentation — what every validator expects and what you should use whenever interoperability matters.

36 characters8-4-4-4-12 layoutUniversally accepted

Generated locally with the Web Crypto API — nothing leaves your browser.

What Is UUID With Hyphens?

How to generate

  1. Leave the Hyphens toggle on (the default).
  2. Pick a version and generate.
  3. Paste anywhere — every validator accepts the canonical form.

Use Cases

How UUID With Hyphens Compares

Canonical36 chars with 8-4-4-4-12 grouping
Raw32 chars, no grouping
Braced38 chars, wrapped in { }

Code Examples

JavaScript
const id = crypto.randomUUID(); // canonical, hyphens included
PostgreSQL
SELECT gen_random_uuid();  -- prints with hyphens

Frequently Asked Questions

Why does the length include hyphens?
The canonical length of 36 counts the four hyphen characters; the payload is 32 hex digits.
Do hyphens affect sorting?
Lexicographic sorting of the canonical form matches sorting of the raw form, since hyphens occur at fixed positions.

Related tools