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
- Paste the full token from the Authorization header or jwt.io debugging tab.
- Press Decode — header and payload appear as readable fields.
- Check the
expfield: the tool tells you if the token is expired and when it expires. - Copy the decoded JSON for debugging.
What the claims mean
| Claim | Meaning |
|---|---|
alg / typ | Signature algorithm and token type (usually HS256 / JWT) |
sub | Subject — who the token is about (user id) |
iss / aud | Issuer (who made it) / audience (who it's for) |
exp / nbf | Expiry timestamp / not-before timestamp (Unix seconds) |
iat | Issued-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).