Decode a JSON Web Token instantly, check its expiry and claims, and verify the signature with a secret, PEM key or JWKS, all in your browser.
Initializing in your browser…
Build and sign a JSON Web Token with HS, RS, PS or ES algorithms, generate secrets or key pairs, and verify the result in your browser.
Encode and decode text, files and JSON as base64, base64url or hex as you type, with a check that every result decodes back exactly.
Percent-encode and decode URLs as you type in four character sets, build query strings, and take any URL apart parameter by parameter.
Two tokens arrive at your API. They decode to almost the same payload, but one has gained "role": "admin". Which one did your server sign?
Tokens, verified with the HS256 secret
Signed HS256 sample Tampered payload sample alg: none sample
Verdicts
Signed: Signature verified with HS256.
{"sub":"1234567890","name":"John Doe","iat":1516239022}
Tampered: The signature does not match.
{"sub":"1234567890","name":"John Doe","role":"admin","iat":1516239022}
alg none: This token claims alg: none, which means it carries no signature at all.
Issued at: 2018-01-18T01:30:22Z. No exp claim, so the token never expires on its own.The tampered token reuses the original signature with an edited payload. Decoding shows the new admin role perfectly well, which is exactly why decoding alone proves nothing. Verification recomputes the HMAC over the header and payload with the secret and compares it with the signature: it matches for the real token and fails for the edited one. The alg: none token has no signature to check, so it is refused rather than accepted. The missing exp claim is worth noticing too: a token without one is valid until the key changes.
Paste a JSON Web Token to see its header and payload decoded instantly, with expiry and other time claims checked against the current time. Add the secret or public key and the tool also verifies the signature, so you know whether the token is genuine as well as readable.
A JWT has three parts separated by dots: a header that names the signing algorithm, a payload of claims such as the user ID and the expiry time, and a signature. The first two are only base64url-encoded, not encrypted, so anyone holding the token can read them, which is what this decoder does the moment you paste one. A leading Bearer is ignored, so you can paste an Authorization header as it is. Each part is shown in its own colour, the header and payload are pretty-printed and can be copied, and registered claims are labelled in plain words.
Reading a token is not the same as trusting it. Anyone can edit the payload of a token and encode it again; only the signature shows whether the issuer actually produced those claims. Paste the key and the tool checks the signature in your browser. HMAC tokens (HS256, HS384, HS512) take the shared secret, as text, base64 or hex. RSA (RS256 to RS512, PS256 to PS512), elliptic curve (ES256 to ES512) and EdDSA tokens take a public key as a PEM block, a certificate, a JWK or a whole JWKS, in which case the key is chosen by the token's kid. The verdict says verified, does not match, refused (with the reason), or not checked because no key was given.
Some tokens are refused outright. A token with alg set to none carries no signature, so the tool says so instead of treating it as valid; accepting such tokens is a well-known security flaw. An RS256 token is never checked against a shared secret either, because that mismatch is the basis of the algorithm confusion attack, and the tool explains which kind of key the header requires. A five-part token is an encrypted JWE, which cannot be read without the decryption key, and the tool identifies it.
The time claims are checked live. Expiry (exp) is compared with your clock and shown as how long the token remains valid or how long ago it expired; a token is treated as expired from its exp second onwards, as RFC 7519 requires. Not before (nbf) and issued at (iat) are checked too, and an iat in the future is flagged because it usually means a clock is wrong. Under the claims you can enter the audience and issuer you expect and a clock leeway in seconds, the same settings a server-side verifier uses.
Tokens and keys are secrets, so neither ever leaves the page. They are not sent anywhere, not stored, and never written into the address bar; a share link carries only the audience, issuer, leeway and secret format.
Paste the token your app sent and see at once whether it has expired, which audience it was issued for and which claims it carries.
Verify a webhook or API token against the provider's published key or JWKS before trusting its claims.
Confirm that a service rejects edited tokens by changing a claim and checking that the signature no longer matches.
Try the three samples to see a properly signed token, the same token with an edited payload, and an unsigned alg: none token.
The token and key are processed only in your browser and are never sent, stored or added to the URL. Even so, treat production tokens with care: anyone who sees a valid token on your screen could use it until it expires.
Yes. The header and payload are only encoded, not encrypted, so anyone can read them. The secret or public key is needed to check the signature, which proves the token was not changed.
Because decoding says nothing about authenticity. Without a key the signature cannot be checked, so the tool will not call the token valid. Paste the secret or public key to verify it.
It has no signature, so anyone could have written it. Accepting such tokens has caused real security breaches, and libraries reject them by default. The tool decodes it but refuses to treat it as verified.
The issuer's public key, as a PEM block (-----BEGIN PUBLIC KEY-----), an X.509 certificate, a JWK, or the JWKS your provider publishes, often at a URL ending /.well-known/jwks.json. The private key is not needed and should never be shared.
Its exp time has passed, compared with your device's clock. If your clock or the server's is slightly off, set a clock leeway of 30 to 60 seconds, as many servers do.
Conversions run on your device in JavaScript. The values you enter are never sent over the network.