Skip to content
FR
  1. LuzineDebug
  2. Tools
  3. JWT decoder

JWT decoder: header, payload and expiry

Decode a JWT: header, payload, readable expiry dates and whether the token has expired. Everything happens in your browser.

The claims to check

  • exp: expiry date. After it, the token must be rejected.
  • iat and nbf: issue date and the date from which it is valid.
  • iss, aud, sub: issuer, audience and subject (user).
  • alg in the header: always reject none on the server and enforce the expected algorithm.

Frequently asked questions

Is decoding a JWT the same as verifying it?

No. A JWT payload is only base64url-encoded: anyone can read it. Only verifying the signature (with the secret or public key) proves it was not tampered with. Never put secret data in a JWT.

Why does my API answer 401 with a token that looks fine?

Check exp (expired?), nbf (not valid yet?), aud and iss (right audience and issuer?), then the server clock: a few minutes of drift is enough to reject a token.

Is my token sent anywhere?

No, decoding and HMAC verification happen in your browser. Still, avoid pasting a live production token into a site you do not know.

Other tools