guid-formatter
Generate a random GUID, or paste one you already have, and see it in every format .NET's Guid.ToString() supports.
client-side only
v4 random
input.guid
// the five formats
- N — 32 digits, no dashes:
32digits - D — 32 digits with hyphens (the default from
Guid.ToString()andGuid.NewGuid()):8-4-4-4-12 - B — same as D, wrapped in braces:
{8-4-4-4-12} - P — same as D, wrapped in parentheses:
(8-4-4-4-12) - X — the four-part hex constructor form used when writing
new Guid(0x..., 0x..., ...)directly in code, e.g. for seeded/well-known IDs in EF Core migrations.
SQL Server's
uniqueidentifiertype is happy with the D format (with or without braces) but will reject the N format outright since it expects the hyphens. Going the other way, some third-party APIs expect N format specifically and will fail silently or reject a request if you send hyphens. This mismatch is a common source of "works locally, breaks against this one API" bugs — worth checking the exact format a downstream system expects rather than assuming.ToString()'s default is universal.