Skip to main content

JWT Verifier & Signer

Verify JWT signatures and sign new tokens with HMAC, RSA, ECDSA or EdDSA keys

The algorithm is read from the token header
Result

Click Verify to check the signature

Uses the Web Crypto API. Tokens, secrets and keys never leave your browser. Verification checks the signature only; check exp, aud and iss against your own policy.

About JWT Verifier & Signer

Verify the signature on a JSON Web Token, or sign a new one, using the same algorithms your API uses: HS256/384/512 with a shared secret, RS256/384/512 and PS256/384/512 with RSA keys, ES256/384/512 with EC keys, and EdDSA with Ed25519. Keys can be PEM (SPKI public or PKCS#8 private), a JWK, or a JWK Set, where the token's kid picks the key. The algorithm is read from the token header and the key must fit it, so an RSA public key is never silently used as an HMAC secret. Unsecured tokens (alg: none) and unknown critical headers are rejected. Everything runs in your browser through the Web Crypto API.

How to Use JWT Verifier & Signer

  1. Choose Verify to check an existing token, or Sign to create one.
  2. To verify, paste the token and the secret or public key, then click Verify.
  3. To sign, pick an algorithm, enter the payload and any extra header fields, add the secret or private key, then click Sign.
  4. Read the result and any warnings about expiry, short secrets or small RSA keys.

JWT Verifier & Signer FAQ

Is it safe to paste a secret or private key here?

Verification and signing run locally through the Web Crypto API, and nothing you enter is sent to a server. Even so, prefer test keys, and verify with a public key where you can. A production HMAC secret is better checked inside your own infrastructure.

Which key formats are supported?

Shared secrets as UTF-8, Base64, Base64URL or hex for HS* algorithms; PEM SPKI public keys and PKCS#8 private keys; and JWKs or JWK Sets. A private key can verify as well as sign. PKCS#1, SEC1 and certificate PEMs are recognised, and the tool tells you the openssl command that converts them.

Why is my ES256 signature reported as the wrong length?

JWS ECDSA signatures are the raw r and s values joined together: 64 bytes for ES256. Many crypto libraries emit DER-encoded signatures instead, which are a different length and must be converted before they form a valid JWT.

Does a valid signature mean the token should be accepted?

Not on its own. The signature proves the token was issued by the key holder and not modified. Your application must still check expiry (exp), not-before (nbf), issuer (iss) and audience (aud). This tool flags expired and not-yet-valid tokens but does not enforce a policy.

Why are alg: none tokens rejected?

An unsecured token has no signature, so there is nothing to verify, and accepting one lets anyone forge claims. Real verifiers must refuse them, and so does this tool.

What is the algorithm-confusion warning?

If a server accepts HS256 tokens and uses its RSA public key as the HMAC secret, anyone with the public key can forge tokens. The tool warns when a PEM key is used as an HMAC secret so you can spot a token built that way.