# JWT decoder

> Paste a JSON Web Token, read the claims, and verify the signature in the browser.

Decode a JWT and verify HS, RS, PS, ES, and EdDSA signatures in the browser. The token and keys are not uploaded.

- Page: https://benchline.fabwaseem.com/t/jwt-decoder
- Runs: in the browser. Input stays on the device.
- Price: free, no account
- Input: A signed JWT, plus an optional HMAC secret or public key.
- Output: Header JSON, payload JSON, claim times, and a signature result. An encode tab signs test tokens.
- Keywords: JWT decoder, JWT verify, JSON Web Token, JWKS, base64url
- Updated: 2026-10-16
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Paste the token.** Copy a JWT from an Authorization header, a cookie, or a session. A Bearer prefix is stripped.
2. **Add the secret or public key.** HS256, HS384, and HS512 use a shared secret. RS, PS, ES, and EdDSA use a public key as PEM, a JWK, or a JWKS document.
3. **Read the checks.** A verified badge means the signature matches. exp, nbf, and iat are shown as a relative phrase and a UTC time.

## Use it from an AI agent

MCP tool name: `decode_jwt`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/jwt-decoder with the input as the JSON body
This call does not fetch anything. It runs on the arguments you send.

Decode a signed JSON Web Token into its header, payload, and registered claims. Dates are absolute ISO timestamps. The signature is not checked.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "description": "A signed JWT, with or without a Bearer prefix. The signature is not verified."
    }
  },
  "required": [
    "token"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "decode_jwt",
    "arguments": {
      "token": "eyJhbGciOiJub25lIn0.eyJzdWIiOiJhZGEifQ."
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### Does this verify the signature?

Yes. Verification runs in the browser with the jose library. HMAC algorithms use the secret you paste. RSA, RSA-PSS, ECDSA, and EdDSA use a public key in PEM, JWK, or JWKS form, matched by kid when the header has one.

### Is the token sent to a server?

No. Decoding, verification, and signing stay in the browser. The token and keys are not posted and they are not stored.

### What does alg none mean?

The header says the token has no signature algorithm. Anyone can edit the payload. An app should reject alg none instead of treating the payload as trusted.

### Can I create a token here?

Yes. The Encode tab signs a header and payload with HS256, HS384, or HS512. Asymmetric signing needs a private key, and this page does not ask for one.

### Can I decode an encrypted token?

No. An encrypted JWE has five segments and the payload stays ciphertext without the key. This page only reads a signed JWT, which has three segments.

## Related tools

- [Meta tags inspector](https://benchline.fabwaseem.com/t/meta-tags-inspector): Read title, description, canonical, robots, Open Graph, Twitter, and JSON-LD types from one public URL.
- [Cron expression builder](https://benchline.fabwaseem.com/t/cron-expression-builder): Build or paste a cron schedule, read it in plain English, and see the next run times.
- [JSON-LD schema generator](https://benchline.fabwaseem.com/t/schema-generator): Fill a form, get valid schema.org JSON-LD for Article, FAQ, Product, Organization, and more.
- [AI SEO checker](https://benchline.fabwaseem.com/t/ai-seo-checker): Score crawler access, llms.txt, structured data, and the on-page signals AI search uses.
