Developer Tools

JWT Decoder

Decode JSON Web Tokens locally — header, payload, expiry and signature explained.

Tool

Header

Payload

About the JWT Decoder

The JWT Decoder runs entirely in your browser — your code and data never leave your machine. Paste, click, copy the result.

JSON Web Tokens are three Base64URL segments joined by dots: header.payload.signature. This tool decodes the first two locally, pretty-prints them, and highlights what developers check most: token type, algorithm, subject, issued-at and — crucially — whether the token has expired.

How to use this tool

  1. Paste the full token from the Authorization header or jwt.io debugging tab.
  2. Press Decode — header and payload appear as readable fields.
  3. Check the exp field: the tool tells you if the token is expired and when it expires.
  4. Copy the decoded JSON for debugging.

What the claims mean

ClaimMeaning
alg / typSignature algorithm and token type (usually HS256 / JWT)
subSubject — who the token is about (user id)
iss / audIssuer (who made it) / audience (who it's for)
exp / nbfExpiry timestamp / not-before timestamp (Unix seconds)
iatIssued-at timestamp

⚠️ Security note

Decoding is not verifying. Anyone can decode a JWT — the signature is what prevents tampering, and only the server holding the secret can check it. Never trust a token just because the payload "looks right", and never send production tokens to untrusted online decoders. This tool runs entirely in your browser, but treat any hosted decoder with suspicion.

Who is this tool for?

Backend developers debugging auth flows, QA testers inspecting session tokens, and anyone checking why a 401 error keeps appearing.

Developer tip

Expired token? Check whether your clock is skewed — servers reject tokens whose iat/exp fall outside a small tolerance window (often 30–60 seconds).

Frequently asked questions

No — verification requires the secret or public key, which must stay on your server. This decoder only reads the unencrypted header and payload.
No. Decoding is pure Base64 handling in your browser; the token never leaves the page.
JWTs are encoded, not encrypted — Base64URL is trivially reversible. Only the signature protects integrity; put sensitive data on the server side.

Related tools

Guides for this tool