BrowserLeaksUSBrowserLeaksUS

JWT Decoder

Decode and inspect JSON Web Tokens - fully client-side

JWT Decoder

What this tool does

Decodes JSON Web Tokens into their three parts - header, payload, and signature - so you can inspect claims, expiration, and algorithm. Runs fully client-side.

Who it's for: Backend developers debugging authentication flows, security engineers auditing token contents, and anyone troubleshooting 401/403 errors in an API.

When to use

  • •Inspect an expired JWT to see its exp claim and reissue timing.
  • •Verify the algorithm (alg) used by an identity provider.
  • •Debug a failed API call by decoding the user's token.
  • •Understand which claims (sub, scope, custom fields) your system issues.

How it works

  1. 1Paste a JWT (three base64 segments separated by dots).
  2. 2The tool splits it and base64-decodes the header and payload.
  3. 3Signature is displayed as-is - verifying it requires the issuer's public key.
  4. 4Nothing is sent anywhere; the token never leaves your browser.

Tips

  • •Never paste production JWTs into random online decoders - use a trusted one like this.
  • •An expired token still decodes fine; check the exp claim (Unix timestamp).
  • •JWT base64 uses URL-safe alphabet (- and _ instead of + and /).

Using this result

How to read a decoded JWT

01

Header, payload, and signature

A JWT is three Base64URL parts separated by dots. This page decodes the first two so you can read them. The header names the algorithm, usually in the alg field, and sometimes a key id in kid. The payload is the claims: sub, exp, iat, iss, aud, and whatever else the issuer added. The third part is the signature. Decoding does not check that signature. A readable payload is not a valid token. Anyone can edit the payload and leave a broken signature, or switch alg to none.

Read exp and iat as Unix seconds, not as milliseconds. If exp is in the past, the token is expired even when the signature would have passed. nbf, if present, is the time before which the token should be refused. aud should be your site or API, and iss should be the identity provider you expect. A token minted for another audience is not yours, even if it decodes cleanly.

02

What this page will not do

The decoder does not contact the issuer, does not fetch JWKS, and does not verify HMAC or RSA. If you need to confirm a signature, do it with the issuer's public key in your own stack. Treat the decoded JSON as untrusted data. Do not paste production tokens into a shared machine. The payload often contains an email or a user id, and the token itself is a bearer credential until it expires. Clearing the box does not un-copy it from your clipboard.

If the middle segment fails to decode, the token was truncated or it is not a JWT. JWE (encrypted tokens) have five segments and will not show a readable payload here. Use Timestamp to turn exp into a local time, and Base64 only if you are inspecting one segment by hand. Prefer this page for tokens, because it splits on the dots and uses the URL-safe alphabet for you.