UUID Format

UUID Without Hyphens

Removing the four hyphens gives a 32-character string that many APIs and mobile clients prefer, since it is shorter and needs no escaping.

32 charactersHyphens removedSame 128 bits

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

What Is UUID Without Hyphens?

How to generate

  1. Turn the Hyphens toggle off.
  2. Generate in the version you need.
  3. Copy the 32-character result.

Use Cases

How UUID Without Hyphens Compares

With hyphens36 chars — 8-4-4-4-12
Without hyphens32 chars — raw hex
Short form22 chars — base64url of the same 16 bytes

Code Examples

JavaScript
const id = crypto.randomUUID().replace(/-/g, '');
Python
import uuid
print(uuid.uuid4().hex)  # 32 chars, no hyphens
SQL
SELECT replace(gen_random_uuid()::text, '-', '');

Frequently Asked Questions

Is a hyphen-free UUID still a valid UUID?
It carries the same 128 bits, but strict validators reject it because the 8-4-4-4-12 shape is part of the definition. Re-add hyphens before validating.
Can I convert back?
Yes — insert hyphens after positions 8, 12, 16, 20. The formatter tool does this for you.
Which is better for a database key?
Store the native 128-bit type where possible; otherwise a 32-char column saves four bytes per row against CHAR(36).

Related tools