What does a JWT contain?
A JWT (JSON Web Token) is a string in three parts separated by dots: the header, the payload and the signature. The header states the signing algorithm, the payload carries the information (the user, the permissions, the dates), and the signature proves the content has not been modified.
The first two parts are not encrypted: they are only encoded in base64url. Anyone can therefore read them, which is what this tool does. Never put a secret in the payload of a token.
Dates and expiry
Three claims carry a date, in seconds since January 1, 1970:
- iat: the moment the token was issued;
- nbf: the moment before which it is not valid;
- exp: the moment it expires.
Verifying the signature
For HMAC algorithms (HS256, HS384, HS512), enter the secret: the tool recomputes the signature and compares it. A valid signature proves the token has not been tampered with. Public-key algorithms (RS256, ES256…) are not verified here; decoding, however, works for all of them.
Frequently asked questions
Are my token and my secret sent anywhere?
No. Decoding and verification happen in your browser; nothing is sent and nothing is stored, not even the secret. Still, be careful with a production token that is still valid.
Does decoding a token prove it is authentic?
No. Reading the content requires no key. Only verifying the signature, with the secret or the public key, proves authenticity.
Why does the tool reject my token?
It must have three base64url parts separated by dots, and the first two must contain JSON. Remove any quotes or a leading “Bearer” if the text does not decode.
Which secret should I try with the example?
The example button fills in the secret “your-256-bit-secret”, which matches this demonstration token.