JWT Decoder

Paste a JSON Web Token to see its header, payload and standard claims such as exp, iat and nbf in readable form. Decoding happens entirely in your browser, so tokens are not sent anywhere.

How to use the JWT Decoder

  1. Paste the token into the box. A leading "Bearer " is removed for you.
  2. Read the header (algorithm and type) and the payload (the claims). Time claims are shown as UTC dates.
  3. Check the status line: it tells you whether exp has passed or nbf is still in the future.
  4. Use Copy payload to take the decoded JSON with you. Use Load sample to see an example.

How a JWT is built

A JSON Web Token (RFC 7519) is three Base64URL-encoded parts joined by dots: a header that names the signing algorithm, a payload of claims, and a signature. The first two parts are just JSON encoded as text; they are not encrypted, so anyone holding the token can read them.

Registered claims have standard meanings: iss (issuer), sub (subject), aud (audience), exp (expiration time), nbf (not valid before), iat (issued at) and jti (token ID). The time claims are numbers of seconds since 1 January 1970 UTC.

Decoding is not verifying

This tool only decodes. It does not check the signature, because that needs the secret or public key. A token that decodes cleanly can still be forged or tampered with, so a server must verify the signature, the issuer, the audience and the expiry before trusting any claim.

Tokens with five parts are encrypted (JWE) and cannot be read without the key. Do not put secrets in a normal JWT payload, since it is only encoded.

Frequently asked questions

Is it safe to paste my token here?

The token is decoded by JavaScript running in your browser and is not sent to any server. Even so, treat live tokens like passwords: prefer expired or test tokens, and revoke any token you have shared in public.

Does this verify the signature?

No. Verifying needs the secret key (HMAC algorithms) or the public key (RSA, ECDSA). Use your auth library on the server for that.

Why does the decoder say my token is expired?

The exp claim is a Unix time in seconds. If it is earlier than the current time of your device, the token has expired. A wrong device clock can also cause this.

What does alg "none" mean?

It means the token is unsigned. A server must reject such tokens unless it explicitly expects them, because attackers can craft them freely.

Why can I read the payload without a key?

The payload is only Base64URL-encoded, not encrypted. Signing protects against changes, not against reading.