Webhook Signature Verifier
Check whether a webhook's signature is valid, see exactly what the provider signed, or sign a test payload and send it to your own endpoint with curl.
Last updated
GitHub: sha256=<hex HMAC-SHA256 of the raw body>
Result
Signature doesn't match
Keyboard shortcuts:Ctrl ↵Copy expected signatureCtrl KSearch tools
How to use the Webhook Signature Verifier
Pick the provider
GitHub, Stripe, Slack, Shopify, Standard Webhooks / Svix, or a custom HMAC.
Paste the request
Enter the raw body exactly as received, your signing secret and the signature header (plus timestamp or ID where needed).
Read the result
See whether it's valid, the signature you should have received and the exact string that was signed.
Or sign a test
Switch to Sign to generate correctly signed headers and a curl command for your local endpoint.
Features
- GitHub (X-Hub-Signature-256, plus legacy SHA-1), Stripe (Stripe-Signature), Slack (v0 signatures), Shopify (X-Shopify-Hmac-Sha256) and Standard Webhooks / Svix
- Custom HMAC mode: SHA-1, SHA-256 or SHA-512, hex or base64, with an optional prefix
- Shows the expected signature and the exact string that was signed
- Warns about timestamps older than 5 minutes, wrong Stripe secrets and Windows line endings
- Sign mode generates headers and a ready-to-run curl command
- Supports Stripe's multiple v1 signatures and Svix's multiple signatures during secret rotation
- Uses the browser's Web Crypto API for HMAC
Privacy
The payload, secret and signature are processed with the Web Crypto API in your browser tab. Nothing is sent anywhere. In Sign mode, DevNest only shows a curl command — you run it yourself.
Examples
GitHub's own test vector
The example from GitHub's documentation — the signature is valid.
Body · secret · X-Hub-Signature-256
Hello, World! It's a Secret to Everybody sha256=757107ea0eb2509fc211221cce984b8a37570b6d7586c22c46f4379c8b043e17Result
Valid signature HMAC-SHA256 of the raw body, hex-encoded, prefixed with sha256=A Stripe event
Stripe signs the timestamp, a dot and the body. Valid — the tool also warns that the timestamp is old.
Body · Stripe-Signature
{"id":"evt_1QX","type":"invoice.paid","data":{"object":{"id":"in_1QX","amount_paid":4900}}} t=1767225600,v1=22bfee086f436c24292711417c3cb3680f6456c2bac39273bc556944f7ad31e2Result
Valid signature Signed: 1767225600.{body} Expected v1: 22bfee086f436c24292711417c3cb3680f6456c2bac39273bc556944f7ad31e2Slack: why verification fails
The framework URL-decoded the body before verification, so the bytes no longer match what Slack signed.
Body received · X-Slack-Signature
token=xyz&team_id=T0001&command=/deploy&text=api v0=b561f3cec848b6a81abf6c1e3fbb7db9eaed888ee8c66e921e4ac53d9a4c1581Result
Signature doesn't match Expected: v0=f8ffec10b8adc20993663b8461825cea932529d5c02bfd39be394ebb7a5f6e94 Fix: verify the raw body (command=%2Fdeploy), before any parsing.
Understanding webhook signatures
How webhook signatures work
The provider and your server share a secret. For each webhook, the provider computes an HMAC — a keyed hash — of the request body (often with a timestamp) and sends it in a header. Your server computes the same HMAC with its copy of the secret and compares. If they match, the request really came from the provider and wasn't modified on the way.
| Provider | Header | What is signed |
|---|---|---|
| GitHub | X-Hub-Signature-256 | body → sha256=<hex> |
| Stripe | Stripe-Signature | {t}.{body} → v1=<hex> |
| Slack | X-Slack-Signature | v0:{timestamp}:{body} → v0=<hex> |
| Shopify | X-Shopify-Hmac-Sha256 | body → <base64> |
| Standard Webhooks / Svix | webhook-signature | {id}.{timestamp}.{body} → v1,<base64> |
Why verification fails
- The body was parsed and re-serialised. Frameworks often parse JSON before your handler runs; verify against the raw bytes instead (for example
express.raw()or reading the raw request body). - Wrong secret: test and live modes, or different endpoints, have different secrets. For Stripe, use the endpoint's
whsec_…secret, not your API key. - The timestamp is too old. Providers' libraries reject requests older than about 5 minutes to stop replay attacks.
- Line endings or encoding changed — signatures cover the exact bytes.
Verifying in your code
// Node.js — GitHub
import { createHmac, timingSafeEqual } from "node:crypto";
const expected = "sha256=" + createHmac("sha256", secret).update(rawBody).digest("hex");
const ok = expected.length === header.length &&
timingSafeEqual(Buffer.from(expected), Buffer.from(header));Always compare with a constant-time function such as timingSafeEqual, so attackers can't learn the signature from response timing.
Frequently asked questions
Is this a webhook receiver with a public URL?
No. DevNest runs entirely in your browser and has no server to receive requests. Instead it verifies signatures you paste, and its Sign mode creates a correctly signed curl command to test your own endpoint.
Is it safe to paste my signing secret?
The secret never leaves your browser: the HMAC is computed locally with the Web Crypto API and nothing is stored. Even so, prefer test-mode secrets, and rotate any secret you suspect has been exposed.
Why does my Stripe signature fail when the secret is correct?
Usually because the body was changed before verification — for example parsed as JSON and serialised again. Stripe signs the exact raw body, prefixed with the timestamp and a dot.
Which providers use Standard Webhooks?
Svix and services built on it, such as Clerk and Resend, use the Standard Webhooks scheme: webhook-id, webhook-timestamp and webhook-signature headers with a whsec_ base64 secret.
Can I verify other providers?
Yes, if they use an HMAC of the raw body. Choose Custom HMAC and set the algorithm, encoding (hex or base64) and any prefix such as sha256=.