How to decode a JWT
Paste the token into the left-hand box. A leading Bearer is fine; we strip it. The decoded claims, payload and header appear on the right at once, with the expiry time shown in your own time zone.
No token handy? Press Load a sample to see how it works with a made-up one.
Why decode it in your browser
A JWT is a login credential. Whoever holds a valid one can act as that user until it expires. Pasting a production token into a site that sends it to a server hands a working credential to a stranger.
We never receive your token. The decoding is a few lines of JavaScript running on your device, and it works with the network turned off. Even so, the safest habit is to debug with tokens from a test environment where you can.
What is inside a JWT
Three Base64URL-encoded parts, separated by dots:
- Header: the token type and the signing algorithm, such as
RS256. - Payload: the claims. Who issued it (
iss), who it is about (sub), who it is for (aud), and when it expires (exp). - Signature: proof that the first two parts have not been changed.
The header and payload are encoded, not encrypted. Anyone holding the token can read them, which is why a JWT should never carry a password or other secret.
Reading the timestamps
exp, iat and nbf are seconds since January 1, 1970 (UTC). We convert them to a readable date and tell you how long ago or how far ahead each one is. "This token expired 3 hours ago" answers most "why am I getting a 401?" tickets on its own.
If a token looks valid but is rejected, compare nbf and iat with the server's clock. A server a few minutes behind will refuse a token as "not yet valid".
What decoding cannot tell you
We do not verify the signature, because that needs the issuer's secret or public key, and you should not paste a signing secret into any website. So a decoded token shows what the token claims. Only the service that checks the signature can say whether it is genuine.
We do warn you about one thing: a header that says "alg": "none". That token is unsigned and should not be trusted.
Last reviewed November 15, 2026.