About this tool
“Webhook signature verification failed” is one of the most common integration bugs, and the error rarely says why. Paste the headers and raw body your server received, plus your signing secret, and this verifier recomputes the signature the way the provider does. It shows the expected value and checks the timestamp, so you can tell a wrong secret from a modified body or an expired event.
Verification runs in your browser; nothing is sent anywhere. Prefer test-mode secrets when debugging.
Why verification fails
- The body was modified. The most common cause. Middleware parsed the JSON and you re-serialised it, changing spaces or key order. Capture the raw body before any parsing. Try the Webhook Tester to see the exact bytes that arrive.
- Wrong secret. Each Stripe endpoint and the Stripe CLI have their own
whsec_secret; test and live mode differ too. - Encoding mistakes. Shopify uses Base64, GitHub and Stripe use hex, and Standard Webhooks decodes the Base64 secret after
whsec_before using it. - Old timestamp. Replayed or delayed events fail the tolerance check even with a valid signature. Check your server’s clock.
Supported schemes
| Provider | Header | What is signed | Encoding |
|---|---|---|---|
| Stripe | Stripe-Signature: t=…,v1=… | timestamp.body | Hex HMAC-SHA256 |
| GitHub | X-Hub-Signature-256: sha256=… | Body | Hex HMAC-SHA256 |
| Razorpay | X-Razorpay-Signature | Body | Hex HMAC-SHA256 |
| Shopify | X-Shopify-Hmac-Sha256 | Body | Base64 HMAC-SHA256 |
| Slack | X-Slack-Signature: v0=… + X-Slack-Request-Timestamp | v0:timestamp:body | Hex HMAC-SHA256 |
| Standard Webhooks (Svix, Resend, Clerk…) | webhook-signature: v1,… + webhook-id, webhook-timestamp | id.timestamp.body | Base64 HMAC-SHA256, key = Base64 part of whsec_… |
FAQ
Why does Stripe say “No signatures found matching the expected signature”?
Your code verified a modified body or used the wrong secret. Pass the raw request body (not parsed JSON) and the endpoint’s own whsec_ secret to constructEvent.
How do I get the raw body in Express?
Use express.raw({ type: "application/json" }) on the webhook route instead of express.json(), and verify req.body (a Buffer).
What timestamp tolerance should I use?
Five minutes is the common default (Stripe’s libraries use 300 seconds). Make sure your server clock is synchronised.
Can I verify Svix webhooks?
Yes. Choose Standard Webhooks; svix-id, svix-timestamp and svix-signature headers are accepted.