JWT

JWT Verifier

Paste a JWT and its matching secret or public key to check whether the signature is genuine. Runs entirely in your browser; nothing is ever sent.

Encoded JWT
Paste a JWT above — the expected key input (secret or public key) will appear here once its algorithm is detected.
Paste a JWT above to get started.

Quick Learn

Decoding a JWT tells you what it claims. Verifying tells you whether you can believe it — by recomputing the signature and checking it matches. The two operations use different keys depending on the algorithm in the header: HMAC algorithms (HS256, HS384, HS512) use the same shared secret for both signing and verifying, while RSA and ECDSA algorithms (RS256/384/512, ES256/384/512) sign with a private key and verify with the matching public key — so verifying a token never requires knowing the private key.

This tool reads the algorithm out of the token's header automatically and asks for whichever key that algorithm needs. Everything — reading the token, importing the key, and running the cryptographic check — happens locally using your browser's built-in Web Crypto API. Nothing you paste here, including a secret, is ever sent anywhere.

Best Practices

  • •A token with alg: "none" has no signature at all — this was a real, widely-exploited JWT vulnerability where attackers stripped the signature and set alg to none, and some careless libraries accepted it anyway. This tool always reports it as invalid, with no way to "verify" it.
  • •For RSA and ECDSA algorithms, paste a public key, not a private key — a public key is safe to share and is all verification ever needs. If you only have a private key, export its public counterpart first.
  • •A public key must be in SPKI PEM format, the block that starts with "-----BEGIN PUBLIC KEY-----". A "-----BEGIN RSA PUBLIC KEY-----" (PKCS#1) key is a different format and needs converting first (e.g. openssl rsa -pubin -in key.pem -pubout).
  • •"Signature invalid" almost always means one of two things: the secret or public key doesn't match the one used to sign the token, or the token's header/payload was edited after signing. Either way, don't trust the token.

More JWT Tools

See all JWT tools

Frequently Asked Questions

Is my secret or private key uploaded anywhere?

No. Verification runs entirely in your browser using the Web Crypto API — nothing you type, including a secret, ever leaves your machine.

Which algorithms does this tool support?

HS256, HS384, HS512 (HMAC with a shared secret), RS256, RS384, RS512 (RSA with a public key), and ES256, ES384, ES512 (ECDSA with a public key) — the algorithms used by the overwhelming majority of real-world JWTs.

Why does it ask for a public key instead of a private key for RS256/ES256?

Verifying a signature only requires the public half of an RSA or EC key pair — that's the entire point of asymmetric signing. The private key stays with whoever issues tokens; anyone checking a token only ever needs the public key.

What does it mean if the signature is invalid?

Either the secret or public key you provided doesn't match the one used to sign the token, or the token's header or payload has been modified since it was signed — both cases mean the token can't be trusted.

Why does a token with alg: "none" always fail?

An unsigned token can't be verified by definition — there's no signature to check. This was also a known real-world attack (an attacker strips the signature and sets alg to "none", hoping a careless verifier skips the check), so this tool always flags it rather than treating it as valid.

Want the engineering deep-dives behind tools like this one?