Security

JWT inspector

Paste a JSON Web Token to read its header and claims in plain words, and check its signature.

Runs in your browserNothing you paste is sent anywhere

Never paste a production secret. Nothing leaves this page.

Paste the whole thing, including both dots.

0 B of 64 KB

Paste a token to start.

Or press Try an example and I'll fill it in for you.

Check the signature

Paste a token first, then its secret or public key.

What it does

It splits a JSON Web Token into its three parts, decodes the header and the payload, and explains each claim in words: who issued it, who it is for, and when it expires, in your own time zone. It warns you about the classic mistakes, like alg: none, a token that never expires, a token that is not valid yet, or times written in milliseconds when they should be seconds. Give it the secret or the public key and it checks the signature too.

How to use it

  1. Paste a token into the box, or press Try an example. A leading Bearer and stray line breaks are fine; I drop them.
  2. Read the warnings first, then the claims. The times are in your time zone, with how long ago or how soon.
  3. To check the signature, choose Secret or Public key and paste it in. A public key can be a PEM (BEGIN PUBLIC KEY), a JWK, or a whole key set, where I pick the key named by the token's kid.

How I built it

The decoding is plain TypeScript: split on the dots, base64url-decode, parse the JSON. The signature check uses the Web Crypto API your browser already has, so there is no library and no server. It covers HS256, HS384 and HS512 with a secret; RS, PS and ES at 256, 384 and 512 with a public key; and EdDSA with Ed25519 keys, where your browser supports it. I only ever import the public half of a key, and if you paste a private key I refuse it and tell you to keep it to yourself. I also refuse to check a signed-with-a-secret token against a public key, or the other way round, because mixing those up is an old trick for forging tokens. For the same reason, if the secret you paste is really a public key, I call the token risky even when it matches. A test scans this tool's code for anything that could send data away, which is how "Nothing leaves this page" stays true.