Skip to content

JWTtool

Loading local WebAssembly engine...

Your tokens stay in the browser. Nothing is uploaded.

This usually takes a few seconds on first visit.

A JWT tool to decode, check, and attack tokens in your browser

JWTtool is a JSON Web Token decoder and testing workbench for authorized security work. Paste a JWT, a full Authorization: Bearer header, or a token= query value and it decodes the header, payload, and signature, flags risky claims and algorithms, and generates attack variants you can replay against your own API. Parsing, analysis, and signing run locally through WebAssembly: the token is not uploaded to a server.

How to use it

  1. Decode the JWT. A JWT is three base64url parts separated by dots: header, payload, and signature. The decoder shows each claim (alg, kid, sub, iss, aud, exp, nbf, iat) and how long until the token expires, or how long ago it did.
  2. Review the risk findings. Findings are ranked by severity: an unsigned token, a symmetric HS256 signature that might use a weak secret, a missing audience, privilege claims such as an admin role, an expired token.
  3. Run the suggested attacks. Presets match the token: alg:none variants, RS256 to HS256 key confusion, kid injection, jku and x5u header injection with a mock JWKS, claim tampering, and expiry changes.
  4. Check and export the results. Each variant comes with a diff against the original and a ready-made curl command. Export them as JSON or text for your report.

JWT checks it covers

  • alg:none. "none" is the algorithm for an unsecured JWT (RFC 7518, section 3.6). A verifier that accepts it trusts any payload. JWTtool generates variants such as None, NONE, and nOnE with an empty signature. See alg none lessons from production.
  • HS256 secret cracking. Test an HMAC-signed token against a wordlist, one candidate per line. When a candidate matches the signature, you can re-sign forged tokens with that secret.
  • HS256 / RS256 confusion. Signs the token with HMAC using the RSA public key, for verifiers that take the algorithm from the token header. See HS256 and RS256 confusion attacks.
  • kid, jku, and x5u. Header values that choose the verification key, tested with path and injection payloads or a JWKS you host yourself.
  • exp, nbf, and clock skew. RFC 7519 lets verifiers allow a small leeway, usually no more than a few minutes. Extend exp or backdate nbf to see whether the API really enforces them. See JWT expiration and clock skew.

The optional live test sends a variant to the endpoint you enter, straight from your browser. Only test systems you own or are authorized to assess. The docs explain the workflow and shortcuts, and the examples open safe sample tokens.