Inspect JSON Web Tokens and debug webhook signatures without pasting secrets into a third-party server. This tool runs entirely in your browser with the Web Crypto API: tokens, keys and payloads never leave the page.
JWT Inspector
- Decodes the header and payload and shows
iat,nbfandexpin your local time and UTC, with a live countdown. - Warns about expired tokens, tokens not yet valid, clock skew and tokens with no expiry.
- Verifies HS256, HS384 and HS512 with a shared secret (plain or base64), and RS256, RS384 and RS512 with a PEM public key or a JWK.
Webhook HMAC Verifier
- Stripe: parses
Stripe-Signature(t=…,v1=…), signstimestamp.bodyand warns when the timestamp is older than five minutes. - GitHub: checks
X-Hub-Signature-256(sha256=…) against the raw body. - Generic: HMAC-SHA256 or HMAC-SHA512, hex or base64, with an optional timestamp prefix.
- If the signature only matches after trimming whitespace or changing line endings, it tells you: that usually means your framework changed the body before you verified it.
FAQ
Is it safe to paste a production secret here?
The page makes no network requests with your input; all decoding and signing happens in your browser. Even so, rotate any secret that has been exposed somewhere you do not control, and prefer test keys when you can.
Why does my Stripe webhook signature not match?
The most common cause is verifying a parsed and re-serialised JSON body instead of the exact raw bytes Stripe sent. Other causes are using the secret of a different endpoint or of test mode, and a server clock that is more than five minutes off.
Can it verify ES256 or PS256 tokens?
Not yet. It supports HMAC (HS256, HS384, HS512) and RSA PKCS#1 v1.5 (RS256, RS384, RS512).
My public key starts with BEGIN CERTIFICATE. What do I do?
Extract the public key first with openssl x509 -pubkey -noout -in cert.pem, then paste the BEGIN PUBLIC KEY block.
