Skip to content
UniKit

JWT verifier

Verifies JWTs per RFC 7515: HS256/HS384/HS512 recompute the HMAC locally and compare in constant time, while RS / RSA-PSS / ES go through browser WebCrypto with a public key you paste. exp / nbf / iat are checked with an optional leeway, and the report states signature validity, remaining lifetime and a verdict per check; tampered payloads or signatures are always invalid.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Input

Result

Pure local computation; nothing is uploaded.

Enter input to see the result

Checks passed: 0 · Checks total: 0 · Seconds left: 0

What this tool does

  • Diagnose a 401 by telling a bad signature apart from an expired token.
  • Turn exp / nbf / iat deltas into a remaining lifetime so you know when to refresh.
  • Confirm a token issued elsewhere really validates under your key.

Example

Input

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiZXhwIjoxNzAwMDAzNjAwfQ.JzpbGN5ydtEwrj_XhqPG7D-VGuqghqaelojWxTK8zRo

Output

unsupported-algorithm / Algorithm not implemented locally

The HS family is recomputed locally and compared in constant time; RS / RSA-PSS / ES call crypto.subtle.verify inside the same event callback. The clock comes from the control; the module never reads the system time.

Frequently asked questions

How is the signature judged?

The HS family recomputes HMAC over Base64URL(header) + "." + Base64URL(payload) with your key and compares it in constant time. That verdict is separate from exp/nbf, so "valid but expired" never looks like "invalid signature".

How do RS/ES/PS verify?

Paste the public key (PEM or JWK) into the key control and the page runs crypto.subtle.verify in the callback; an unsupported browser raises an explicit error instead of pretending it passed.

What is leeway for?

Servers and clients usually differ by a few seconds; leeway tolerates that skew. The default 0 means strict second-level comparison.

Does an iat in the future fail the token?

It is reported as a warning but does not change the overall verdict; only the signature, exp and nbf decide that.

Keywords:jwt verifyRFC 7515

Related tools