JWT Decoder
Read a JSON Web Token and check its signature.
Runs in your browser. Nothing is uploaded.
Updated
How to use JWT Decoder
- Paste the token.
- Read the header, payload and claims.
- Add the secret or public key to verify it.
JWT Decoder at a glance
Typical use: See why an API rejects a token: expired, or the wrong audience.
Runs in your browser; the token isn’t sent anywhere.
What is inside a JWT
A JSON Web Token has three parts separated by dots: a header (which algorithm signed it), a payload (the claims: who the token is for, when it expires, roles) and a signature. The first two are only Base64url-encoded, not encrypted: anyone holding the token can read them, which is exactly what this page does.
The page explains the standard claims (iss, sub, aud, exp, nbf, iat) and shows whether the token has expired or isn’t valid yet.
Checking the signature
- HS256, HS384, HS512: type the shared secret (tick “Base64-encoded” if it is).
- RS, PS, ES and EdDSA: paste the public key, as PEM (BEGIN PUBLIC KEY), a JWK, or the whole JWK set from the issuer’s jwks.json; the key with the token’s kid is used.
- A valid signature means the token was made by the key holder and wasn’t changed. Never paste a private key; the page refuses them.
JWT Decoder example
An API returns 401 errors. Copy the token from the Authorization header and paste it (with or without “Bearer”): the badge shows “Expired 2 hours ago” and the payload shows the token was issued for audience “web”, not “api”. Both explain the error before you read any server logs.
Prefer the terminal?
Read the payload in a terminal with jq:
jq -R 'split(".") | .[1] | gsub("-";"+") | gsub("_";"/") | @base64d | fromjson' <<< "$TOKEN"This only decodes; it doesn’t check the signature. Libraries such as PyJWT or jose do both: jwt.decode(token, key, algorithms=["RS256"]).
References
Frequently asked questions
Is it safe to paste my token here?
The token is decoded and checked in your browser and never sent anywhere. Still, a token is a password while it is valid: prefer expired or test tokens on any website.
Can I read a JWT without the secret?
Yes. The header and payload are only encoded, so anyone can read them; the secret or public key is only needed to check that the signature is genuine.
Why does it say the signature is invalid?
The key is wrong (a different secret, or another key from the set), the secret is Base64 but was typed as text, or the token was changed after it was signed.
Can it read encrypted tokens (JWE)?
It shows their header, but the content of a JWE can only be read with the private key, which should never be pasted into a website.