Guides हि
Bramhify Pro

Unlock advanced tools, unlimited usage, and priority support.

Upgrade Now
Home / Tools / JWT & SD-JWT Decoder
JWT & SD-JWT Decoder Icon

JWT & SD-JWT Decoder

New In-Browser • 100% Private

Decode JWT & SD-JWT (RFC 9901) tokens with SHA-256 disclosure checks.

JWT / SD-JWT Inspector 0 chars
HS256 — Signed Auth Token (valid)
RS256 — API Access Token
SD-JWT — Selective Disclosure (RFC 9901)
Expired Token (exp in past)
Admin Roles & Permissions (HS256)
Verify JWS Signature (100% Offline) HS256 / RS256 / ES256
100% browser-local decoding & SHA-256 SD-JWT digest verification. Tokens never leave your device.

Paste a JWT or SD-JWT (~) token to decode it

Auto-strips Bearer prefixes, inspects iat/nbf/exp timestamps, verifies JWS signatures via Web Crypto, and validates RFC 9901 SD-JWT disclosures.

JWT (RFC 7519) Signature Unverified

Header (Algorithm & Type)

Payload (Data & Claims)

What is a JSON Web Token (JWT) & SD-JWT?

JSON Web Token (JWT) is an open standard (RFC 7519) for transmitting signed JSON claims between parties across three Base64Url segments: Header, Payload, and Signature. SD-JWT (Selective Disclosure JWT, RFC 9901) extends standard JWTs by appending tilde-separated (~) disclosure strings and an optional Key Binding JWT (kb+jwt). This lets identity holders prove specific attributes (such as over_18: true) while keeping undisclosed claims cryptographically hidden inside salted SHA-256 digests (_sd).

How to Decode & Verify a JWT Offline

1
Paste Token or Header: Paste a raw eyJ... token, an Authorization: Bearer ... header (auto-stripped), a tilde-separated SD-JWT, or drop a local .jwt file.
2
Inspect Claims & Timestamps: View formatted Header & Payload JSON or switch to the Claims Inspector to convert iat, nbf, and exp epochs into human-readable dates and relative countdowns.
3
Verify JWS & SD-JWT Digests: Optionally paste an HMAC secret or SPKI PEM / JWK public key to verify signatures locally via Web Crypto—plus automatic SHA-256/384/512 verification for RFC 9901 disclosures.

How SD-JWT Selective Disclosure Verification Works

When you paste an SD-JWT (for example, from OpenID4VC, EUDI Wallet, or modern OAuth 2.0 / OIDC flows), Bramhify automatically detects the ~ delimiter, decodes each Base64Url disclosure array ([salt, claim_name, claim_value]), computes its digest locally via the browser's native Web Crypto API (SHA-256, SHA-384, or SHA-512 per _sd_alg), and verifies whether each digest matches an entry inside the Issuer JWT's _sd array. If a Key Binding JWT is attached, we also verify its sd_hash against the preceding SD-JWT presentation.

HS256 vs RS256 vs ES256 — Working with Signing Keys

Symmetric tokens (HS256) rely on a shared secret, while asymmetric tokens (RS256, PS256, ES256, EdDSA) are signed with a private key and verified with a public key. Need keys to sign or test RS256/ES256 tokens in PHP, Node.js, or API gateways? Generate them offline with our Public & Private Key Pair Generator, or unlock passphrase-protected PEM files with our Encrypted Private Key Decryptor.

Are JWT payloads encrypted? Is it safe to decode online?

Standard JWT payloads are Base64Url encoded, not encrypted — anyone who intercepts a token can read its claims. Never put passwords or sensitive PII in a plain JWT payload. Because Bramhify's JWT & SD-JWT decoder runs 100% client-side in your browser with zero network requests, your production access tokens, signing secrets, and selective disclosures never leave your machine. Read more in our JWT Security & Decoding Guide.

Frequently Asked Questions

Is it safe to paste my JWT or SD-JWT here?

Yes, it is 100% safe. This decoder runs entirely locally in your web browser with zero network requests. Your auth tokens, signing secrets, and selective disclosures are never uploaded to any server.

What is an SD-JWT (Selective Disclosure JWT)?

SD-JWT (IETF RFC 9901) extends standard JWTs with tilde-separated (~) disclosure strings so a holder can selectively reveal individual claims while keeping undisclosed claims hidden behind salted SHA-256 digests (_sd).

Does this tool verify SD-JWT disclosures and sd_hash?

Yes. Using your browser's native Web Crypto API, it computes SHA-256 (or SHA-384/SHA-512 per _sd_alg) digests for every attached disclosure, verifies matches against the issuer payload's _sd arrays, reconstructs the resolved claims JSON, and verifies kb+jwt sd_hash values.

Does this tool verify the cryptographic JWS signature?

Yes, 100% locally. Paste an HMAC secret (HS256/384/512, UTF-8 or Base64) or an SPKI Public Key PEM / JWK (RS256/384/512, PS256/384/512, ES256/384/512) to verify the JWS signature directly in browser memory via Web Crypto without remote JWKS fetches.

Why is a standard JWT payload readable by anyone?

Standard JWTs are Base64Url encoded, not encrypted. Anyone who intercepts the token can decode its payload, so you should never store passwords or raw secrets inside a standard JWT.