Anatomy of a JWT
A JWT is three base64url segments separated by dots: header.payload.signature. The header declares the algorithm (alg) and type; the payload carries claims like sub (subject), iat (issued at), and exp (expiry); iat and exp are Unix timestamps. The signature proves the token wasn't tampered with.
Reading the decode
- Expiry countdown — the tool converts
expto "expires in Xh Ym" or "expired X ago". A token with noexpnever expires — a security smell in most systems. - Signature check — the decoder verifies the token has three segments and that the signature is valid base64url; it does not cryptographically verify the signature (that needs the secret key, which you should never paste anywhere).
- alg=none — if the header says
alg: "none", the token isn't actually signed — classic attack vector; your server should reject it.
Security note
JWTs are base64, not encrypted — anyone can read the payload. Never put secrets in them, and never paste tokens containing sensitive claims into online tools. This one runs entirely in your browser.
Where it breaks down
b64urlDecode() converts the URL-safe alphabet back to standard Base64 — minus to plus, underscore to slash — and restores the padding that JWTs strip, because atob rejects unpadded input. The header and payload are then parsed as JSON and displayed, and the signature segment is shown as raw bytes. Nothing is verified: the page decodes and formats, which is what you need when a token is rejected and you want to see what is actually inside it.
Formats, sizes and other limits
Decoding requires no key, and that is exactly why it proves nothing: a JWT payload can be edited by anyone and re-sent with the original signature. This page does not verify signatures, so a green result would be meaningless even if it offered one. Expiry claims are shown, not enforced, and clock skew between issuer and verifier is outside the tool's knowledge. Encrypted tokens (JWE) are not supported — those have five segments, not three.
Privacy: no data leaves this tab
The token is Base64-decoded in this tab. Nothing is sent — which is the only acceptable behaviour for a token that may still be valid.
Frequently asked questions
Can I trust the payload because it decodes?
No. Decoding needs no key. Only the issuer's signature check tells you the token is genuine, and that happens on the server.
Why does my token have five parts?
That is a JWE, an encrypted token. This page handles the three-part signed form (JWS).
Does it check expiry?
It displays the exp claim and converts it to a date; it does not judge whether the token is still valid for a particular server.