Decode claims and test signature handling
Token rejected and you do not know why? Decode it, check every claim and verify the signature here.
Decode JWT headers and claims, verify supported signatures with your key, and inspect expiry, issuer and audience locally in your browser. No sign-up. Jump to: What does it mean?, How to fix it, Break it, Ask your agent.
Example An HS256 token signed in this tab, with its secret, issuer and audience filled in so every check passes. Replace it in the box on the left.
Your token and key stay in your browser. Decoding, editing and signature checks run in this tab with Web Crypto; nothing is uploaded or stored.
No request leaves this page. Key URLs in the header (jku, x5u) are never fetched and an embedded jwk is never trusted, so a token cannot choose its own key.
Findings
Header
Payload
Header
Payload
Token
Decoded claims are untrusted until the signature and your application’s requirements are checked. A token re-signed here passes checks for anyone who trusts the same key.
Take it further
What this result means
Written for the example. Check your own token and every card is rewritten for it.
An HS256 token from issuer https://issuer.example for audience tamperbox-demo passes every check: the signature matches the key, it expires in about an hour, and the issuer and audience match what was expected. Decoded with Tamperbox in the browser; the token and key were not shared. What should my server verify on a token like this beyond the signature, and in what order? The check came from Tamperbox /jwt. Its method and limits are at https://docs.tamperbox.dev/tools/jwt.md; read them before relying on the result.
Connect Tamperbox MCP and the agent can run this check itself, with the same limits.
The three parts separated by dots are the header (how it is signed), the payload (the claims) and the signature. The payload is encoded, not encrypted: never put a secret in it.
The findings list each claim check and the signature result separately, because a token can pass one and fail another: a valid signature on an expired token is still rejected.
- Pin the algorithm on the server; never let the token's alg header choose it, and refuse alg: none.
- Check exp and nbf with a small clock tolerance, and iss and aud against fixed values.
- Keep tokens short-lived and refresh them; a long exp is a long window for a stolen token.
- Rotate keys with kid, and never ship an HMAC secret to a browser or mobile app.
Heal it offers the repair for each break: extend exp, remove nbf, set the expected audience, restore the algorithm or re-sign with your secret.
Issuer and audience are compared exactly: a trailing slash or a different case is a mismatch. Edited tokens are re-signed only for HMAC algorithms with your secret, or for the example pair generated in this tab; user-supplied private keys are never accepted.
Nothing you enter is stored.
How it works
Paste a JWT, or an Authorization: Bearer line, and the header and payload are decoded in your browser as you type, with every claim shown beside what it means. Add the key or secret and the signature is verified here with Web Crypto; set the issuer, audience and a clock tolerance and the claims are checked against them, in the order a server checks them. Edit any claim, or press Break it, and the token is rebuilt in the box, re-signed with your HMAC secret where it can be, so you can test what a server does with it.
The full method, every rule and worked examples are on docs.tamperbox.dev.
Limits and interpretation
Decoding does not verify a token: a token that decodes is readable, not trusted, and only the signature check proves it came from the holder of the key you supplied, and a token can pass that check and still be expired or meant for another application. Key URLs in the header (jku, x5u) are never fetched and an embedded jwk is never used, so a token cannot choose its own key. Encrypted tokens (JWE), crit extensions and unencoded payloads (b64: false) are not verified. Issuer and audience are compared exactly, so a trailing slash or a different case is a mismatch. Time claims are judged against your device clock with the tolerance you set (0 to 300 seconds); an invalid tolerance is treated as zero. Edited tokens are re-signed only for HMAC algorithms with your secret, or for the example pair generated in this tab; private keys are never accepted. Input is limited to 100,000 characters. Nothing is stored.
Frequently asked questions
Does decoding a JWT verify it?
No. The payload is Base64URL-encoded, not encrypted, so anyone can read it. Only verifying the signature with the issuer's key shows the token was not altered, and the claims still have to be checked.
Why does the signature not match my key?
The usual causes are a rotated key (compare the kid header with the issuer's current key set), an HMAC secret pasted in the wrong encoding, or a token that was trimmed or re-encoded after signing.
Why is a valid-looking token rejected?
Expiry, not-before, issuer and audience are checked separately from the signature. A token past exp, before nbf, or issued for another audience is rejected even when its signature is correct.
References
JSON Web Token: RFC 7519, section 4.1 (registered claims) and section 7.2 (validation) · JSON Web Signature: RFC 7515, section 5.2 · JSON Web Algorithms: RFC 7518, section 3.1 · JSON Web Key: RFC 7517, section 4 · JWT best current practices: RFC 8725, section 3 · Ed25519 for JOSE: RFC 8037, section 3.1 · Base64URL: RFC 4648, section 5.
Are you an AI agent? You are in the right place.
This page and every tool are available as plain text with their methods and limits, and the same checks run over MCP.