Decode a JSON Web Token and, if you have the key, verify its signature. Decoding alone doesn't prove a token is genuine.
Your data stays in your browser
This tool runs on JavaScript inside your browser. Nothing you add here is uploaded to our server, so it works for confidential data too. How we handle data
Three pieces of text joined by dots: a header, a payload and a signature. The header says how the token was signed, for example HS256. The payload holds the claims: who the user is, who issued the token and when it expires. Both are just JSON written in base64url, which anyone can decode. The signature is what stops someone changing the payload, and it can only be checked with the right key.
No, and mixing them up causes real security bugs. Decoding only reads the payload; it tells you nothing about whether the token is genuine. Verifying recomputes the signature with the key and compares it. In our tests, we changed one claim in a signed token from "admin" to "superadmin": it still decoded perfectly, but verification failed straight away. A server must always verify before it trusts a claim.
HS256, HS384 and HS512 with a shared secret (plain text, or base64 if you tick the box), and RS256 to RS512, PS256 to PS512 and ES256 to ES512 with a public key in PEM format, the kind that starts with -----BEGIN PUBLIC KEY-----. Older PKCS#1 keys (BEGIN RSA PUBLIC KEY), certificates and JWK keys aren't supported yet. Encrypted tokens (JWE, with five parts) can't be decoded without the decryption key, and the tool tells you when it sees one.
The decoding and verification run in your browser using its built-in Web Crypto, and the page makes no network request with your token. You can check: open your browser's developer tools, watch the Network tab and paste a token. Even so, a live token is a password for as long as it's valid, so prefer test tokens or expired ones, and never paste a production signing secret into any website.
Only need one part decoded? The Base64 Decoder handles plain Base64. To tidy up a long payload, paste it into the JSON Formatter, and to read the exp and iat numbers on their own, use the Unix Timestamp Converter. Our guide on whether it's safe to decode a JWT online goes further.