How to use the JWT Decoder tool
- Paste the tokenCopy it from a header, cookie or log; any “Bearer ” prefix or wrapping is cleaned up for you.
- Inspect the contentsBoth JSON sections are pretty-printed with colours, and recognised claims get a short explanation.
- Review the datesexp, iat and nbf become calendar dates, with a clear Expired or Not expired badge.
- Check the signatureWith HMAC-signed tokens you can type the shared key to find out whether the signature holds up.
JWT decoder features
- Decodes instantlyResults appear as soon as you paste, with no buttons to press.
- Claims in plain EnglishStandard fields such as issuer, subject, audience and expiry are named and described.
- Expiry at a glanceA badge tells you if the token is still live, already lapsed or not yet valid.
- HMAC verificationValidate HMAC-signed tokens with WebCrypto directly in your browser.
- Safe for live tokensYour token is never transmitted, so even real session credentials remain confidential.
What is a JSON Web Token?
JWT (said like “jot”) is an open standard for packaging a set of statements about a user or session into one string that can travel inside URLs and HTTP headers. Identity providers, OAuth and OpenID Connect flows, and countless APIs hand them out after sign-in. Every JWT consists of three dot-separated sections:
- Header: metadata saying it’s a JWT and which algorithm signed it, e.g. HS512 or ES256.
- Payload: the actual statements, for example the account ID and an expiry moment.
- Signature, proving the token was produced by a key holder and hasn’t been tampered with.
The first two sections are only Base64URL-encoded, not encrypted; whoever has the string can read them, and that’s all this decoder is doing. Never store passwords or other secrets inside a payload.
Registered JWT claims
iss, the issuer, identifies who created the token.sub, the subject, is typically the user’s ID.aud, the audience, lists which services should accept it.expmarks when it stops being valid, counted in seconds since 1970.nbf, “not before”, is the earliest moment the token becomes valid.iat, “issued at”, records when the token was minted.jti, the token ID, is a unique value used to block replay attacks.
Those time values are epoch seconds; for any other epoch number, use the Timestamp Converter.
Decoding a JWT isn’t the same as verifying it
Decoding merely reveals what a token says. A backend should only rely on it after it has validated the signature, compared exp and nbf with the clock, and checked that issuer and audience are the ones it expects. Any token using "alg": "none" carries no signature and should always be rejected.
- HS256, HS384 and HS512 sign and verify with one shared secret, which you can enter above.
- Asymmetric schemes such as RS256, ES256 and PS256 sign with a private key; the matching public key, usually exposed through a JWKS URL, is what verifies them, ideally in server code using a well-maintained library.
Good habits with JWTs
- Give access tokens a lifetime measured in minutes and rely on refresh tokens to keep users signed in.
- Choose an HMAC key that is lengthy and unpredictable; weak keys fall to offline guessing. The Password Generator makes a suitable one.
- Treat real tokens like passwords and inspect them only with tools that never send data away, like this page.