UUID Format
UUID With Braces
Braces around a UUID are a Microsoft convention — the style you see in Windows registry paths, COM type identifiers and .NET tooling.
{…} wrappedMicrosoft GUID styleAny version
Generated locally with the Web Crypto API — nothing leaves your browser.
What Is UUID With Braces?
- Wrapping a UUID as
{8-4-4-4-12}is the Microsoft GUID convention. It is the same 128 bits, just presented with a delimited envelope. - The format originates in Windows tooling: registry strings, COM CLSIDs and
.NET's defaultGuid.ToString("B")all use braces.
How to generate
- Turn the Braces toggle on.
- Choose a version and generate.
- Copy the braced value — 38 characters including the braces.
Use Cases
- Windows and .NET configuration values.
- COM / registry entries that expect the braced form.
- SQL Server scripts that print GUIDs with braces.
How UUID With Braces Compares
| Braced | {9a8b7c6d-5e4f-4a3b-8c1d-2e3f4a5b6c7d} — 38 chars |
| Canonical | 9a8b7c6d-5e4f-4a3b-8c1d-2e3f4a5b6c7d — 36 chars |
| Raw | 9a8b7c6d5e4f4a3b8c1d2e3f4a5b6c7d — 32 chars |
Code Examples
JavaScript
const id = '{' + crypto.randomUUID() + '}';C#
var s = Guid.NewGuid().ToString("B"); // bracesPowerShell
[guid]::NewGuid().ToString("B")Frequently Asked Questions
Are braces part of the UUID?
No — they are presentation only. Strip them before validating or storing.
Why does .NET use braces?
It is a legacy of COM and the Windows registry. The 'B' format specifier has kept the convention alive.
Will a database accept the braced form?
PostgreSQL's uuid type accepts it on input and strips the braces. Others may reject it, so normalise first.
Related tools
UUID v1 GeneratorUUID v3 GeneratorUUID v4 GeneratorUUID v5 GeneratorUUID v6 GeneratorUUID v7 GeneratorUUID v8 GeneratorBulk UUID GeneratorShort UUID GeneratorUUID ValidatorUUID FormatterUppercase UUID GeneratorLowercase UUID GeneratorUUID Without HyphensUUID With HyphensUUID With BracesShort UUID Format