UUID Tool
UUID Formatter
Different systems expect UUIDs in different shapes — upper vs lower case, with or without hyphens, sometimes braced. Normalise them in one step.
Upper / lower caseHyphens on or offOptional { } braces
Generated locally with the Web Crypto API — nothing leaves your browser.
What Is UUID Formatter?
- The formatter parses a UUID into its 16 bytes and rewrites it in whatever shape you need: case, hyphenation, and braces are independent toggles.
- It is lossless — the underlying 128-bit value never changes, only its textual representation.
How to generate
- Paste a UUID (any of the supported shapes) into the input.
- Toggle Uppercase, Hyphens, and Braces.
- Copy the reformatted result.
Use Cases
- Matching formats expected by a database or API.
- Cleaning pasted values from logs or docs.
- Normalising mixed sources before a bulk insert.
How UUID Formatter Compares
| Formatter | Reshapes an existing UUID's text |
| Generator | Creates a new UUID |
| Validator | Checks an existing UUID |
Code Examples
JavaScript
const norm = (s) => s.replace(/{|}/g,'').replace(/-/g,'').toLowerCase();
const pretty = `${norm.slice(0,8)}-${norm.slice(8,12)}-${norm.slice(12,16)}-${norm.slice(16,20)}-${norm.slice(20)}`;Python
import uuid
pretty = str(uuid.UUID(raw))Frequently Asked Questions
Does formatting change the value?
No. Only the text representation changes; the 128 bits are identical.
Can it handle braces and missing hyphens?
Yes — it first strips braces and hyphens, then re-applies your chosen style.
Should I store UUIDs with or without hyphens?
Either is fine; databases like PostgreSQL store them as 128-bit values regardless of text form.