Decoder
JWT Decoder
Paste a JSON Web Token to see its header, payload and claims, with expiry times shown as readable dates.
How to decode a JWT
- Paste the token. A leading
Bearerfrom an Authorization header is removed automatically. - The header and payload are decoded instantly and shown as tables, with standard claims labelled.
- Time claims such as
exp,iatandnbfare shown as dates, with how long ago or how far ahead they are. - The status badge tells you whether the token has expired or is not valid yet.
What's inside a JWT
A JWT has three parts separated by dots: header.payload.signature.
- Header: the signing algorithm (
alg, for example HS256 or RS256) and token type. - Payload: the claims, such as the user (
sub), issuer (iss), audience (aud) and expiry (exp). - Signature: proves the token was issued by someone holding the key and has not been changed.
The header and payload are only Base64URL-encoded, not encrypted. Anyone who has a token can read its claims, so never put secrets like passwords inside a JWT payload.
Decoding is not verifying
This tool reads the token but does not verify the signature, because that needs the issuer's secret or public key. Your server must always verify the signature before trusting any claim.
Frequently asked questions
Is it safe to paste a real token here?
The token is decoded in your browser and never sent anywhere. Still, a valid token works like a password until it expires, so avoid sharing production tokens in screenshots or chats.
Does this verify the signature?
No. Verifying needs the secret or public key that signed the token. This tool only decodes the header and payload.
What does exp mean?
exp is the expiry time as seconds since 1 January 1970 (UTC). After that moment the token should be rejected.
Why can’t it decode my token?
It may not be a JWT, may be cut off, or may be an encrypted JWE with five parts, which can only be read with the decryption key.