New Livestream: OWASP Top 10 2025 Explained for .NET Developers.
Generate RFC 9562 UUID/GUID v4 or v7 values, one at a time or in bulk, in any common format.
| # | UUID | Actions |
|---|---|---|
| Field | Value |
|---|---|
| Version | |
| Variant | |
| Embedded timestamp | ( ms) |
A UUID (Universally Unique Identifier) is a 128-bit value, standardized
in
RFC 9562,
used to identify something without a central coordinating authority.
GUID is Microsoft's name for the same format: a
System.Guid in .NET can hold any UUID version.
v4 is fully random (122 random bits), so nothing about it reveals when it was created. v7 embeds a 48-bit millisecond Unix timestamp followed by random bits, so v7 values generated close together in time sort close together, which is much better for B-tree database indexes (sequential inserts instead of scattered random writes) when used as a primary key.
.NET 9 added Guid.CreateVersion7() directly on the existing
System.Guid type:
Csharp
// .NET 9+
Guid idV7 = Guid.CreateVersion7(); // time-ordered, good for DB keys
Guid idV4 = Guid.NewGuid(); // random (v4)
string jti = idV7.ToString(); // use as a JWT "jti" claim, etc.Vanishingly small. v4 has 122 random bits, so the "birthday problem" math says you'd need to generate on the order of 2.71 × 10^18 UUIDs before a 50% chance of any collision. In practice, don't worry about UUID collisions for identifiers, session IDs, or database keys.
As a jti (JWT ID) claim to detect token replay, as
client_id values, session identifiers, and request correlation
IDs. Any version works for a jti, since only uniqueness
matters there; for a client_id that appears in a public
redirect URL, v4 avoids exposing a creation timestamp, while v7 is
fine if that's not a concern. See the
JWT decoder to inspect how
jti and other claims appear inside a real token, and
IdentityServer docs.
Generate a code_verifier and code_challenge pair for OAuth 2.0/2.1 PKCE flows, plus state, nonce and example requests.
Encode and decode Base64, Base64URL and MIME-wrapped Base64, text or files.
The OpenID Connect and OAuth 2.0 framework for ASP.NET Core, from the team that built this tool.