JWT Signature Verifier

Verify a JWS signature with the algorithm you choose (HS, RS, PS, ES, EdDSA) and check exp, nbf, iss and aud separately. Rejects alg none.

Options

Input

Ctrl + Enter to run

Result

Verify a JWS signature with the algorithm you allow, not the one the token claims: if the header declares another alg, or “none”, it is rejected. Supports HS256/384/512 with a secret, RS and PS with an RSA public key, and ES256/ES384 with an EC key, as PEM (BEGIN PUBLIC KEY), PEM certificate or public JWK.

Signature and claims are evaluated separately: you see whether the signature is valid and, independently, whether exp, nbf, iat, iss and aud satisfy the policy you set, with optional clock tolerance. Verification uses the jose library and Web Crypto.

How to use it

  1. Paste the token.
  2. Paste the public key or HMAC secret.
  3. Choose the single allowed algorithm and, optionally, the expected iss and aud.
  4. Press Run.

Example

Example input
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyLTEyMyIsIm5hbWUiOiJFamVtcGxvIiwicm9sZSI6InRlc3RlciIsImlhdCI6MTc2NzIyNTYwMCwiZXhwIjo0MTAyNDQ0ODAwfQ.6CGJfEG9ShjTwW5fwktuWdZslH9HdLYGBCb4fbYr74Y

secreto-de-pruebas-utiligo-no-usar-en-produccion
Result
Signature VALID for the given key and algorithm.
All active claim checks pass.

// Payload
{
  "sub": "user-123",
  "name": "Ejemplo",
  "role": "tester",
  "iat": 1767225600,
  "exp": 4102444800
}

Limitations

  • Private keys are rejected: the public key is enough to verify.
  • No remote JWKS, jku or x5u lookups.
  • Certificate trust chains are not validated.
  • JWE and EdDSA are not supported yet.

FAQ

What is HS/RS algorithm confusion?
An attack where a token is signed with HMAC using the RSA public key as the secret. This tool blocks it: with HS* it refuses keys that look public, and it never takes the algorithm from the token.
The signature is valid but shown in red. Why?
Because a claim fails, for example exp in the past. A properly signed token can still be expired or meant for another audience.

Related tools

References