JWT Signature Verifier

Verify the signature of a JSON Web Token with your HMAC secret or a public key, and read the header, payload, issue and expiry times in your browser.

For RS/PS/ES/EdDSA: paste the PUBLIC key only.

About JWT Signature Verifier

The JWT Signature Verifier checks whether a JSON Web Token's signature is valid for your HMAC secret or public key, and shows the header, the claims and the issue and expiry times.

Clear results

A matching key shows the signature as valid. A wrong key or a changed token shows INVALID.

Unsigned tokens

A token with alg none is flagged: never accept such a token.

Base64 secrets

Tick the box if your HMAC secret is stored Base64 or Base64URL encoded.

What valid means

The contents match a signature made with that key. You still need to check the expiry, issuer and audience in your app.

Private

Verification runs in your browser. Even so, do not paste production secrets into any website.

What is a JWT?

A JSON Web Token has three Base64URL parts separated by dots: header, payload and signature. Anyone can read the payload, so never put secrets in it.

Claims to check

Besides the signature, servers should check exp (expiry), nbf (not before), iss (issuer) and aud (audience).

How to use JWT Signature Verifier

  1. Paste the JWT into the Token box.
  2. Paste the HMAC secret or the public key, and tick the Base64 box if the secret is Base64 encoded.
  3. Press Verify.
  4. Read the signature result, the expiry information, the header and the payload.

Help & FAQ

What does the JWT Signature Verifier do?

It checks the signature of a JSON Web Token against a secret or public key and decodes the header and payload.

Which algorithms are supported?

HMAC (HS256, HS384 and HS512 all verified in a test) with a secret, and RS, PS, ES and EdDSA algorithms with a public key, according to the tool page.

What does Signature VALID mean?

The signature matches the key you gave, so the token has not been altered since it was signed. It does not show who made it, and it does not check whether the claims suit your application.

Why does it say INVALID?

The key does not match, or the token was changed. A wrong Base64 setting for the secret is another common cause.

Does it check expiry?

It reads the exp claim and tells you when the token expired. A token can have a valid signature and still be expired.

What does alg none mean?

The token is unsigned. The tool warns that such a token must never be accepted for authentication.

Why does a token with five parts fail?

Five parts means a JWE, which is encrypted rather than signed. This tool verifies signed tokens only.

When should we tick the Base64 option?

When your HMAC secret is stored as Base64 or Base64URL text instead of plain text.

Should we paste a private key?

No. For RS, PS, ES and EdDSA, paste the public key only.

Is it safe to paste real secrets?

Verification happens in your browser, but avoid live production secrets and real user tokens in any web page. Use test values.

Does the tool store our token?

No. In a test, only the site's small analytics calls were made.

Is a valid signature enough to trust a token?

No. A server must also check the issuer, audience and time claims, and restrict which algorithms it accepts.

More in Developer Tools

See all 39 in Developer Tools