Skip to content

Webhook signature checker

Check a Stripe, GitHub, Shopify, Slack, Twilio or Standard Webhooks signature against the raw body and your secret. When it does not match, it tells you the likely reason.

It runs in your browser with the Web Crypto API. The secret, body and headers you paste are not sent anywhere, not stored and not recorded by analytics. Free, no sign-in.

Provider

Pick the provider, paste the values from one delivery and choose Check signature. The example fills in a correctly signed request you can then change.

How each provider signs

Stripe Stripe-Signature

Stripe sends Stripe-Signature: t=<unix time>,v1=<signature>. The v1 signature is the hex HMAC-SHA256 of the timestamp, a full stop and the raw request body, keyed with the endpoint's whole signing secret, whsec_ prefix included. There can be more than one v1 while a secret is being rolled; any match counts. Stripe's libraries reject a timestamp more than five minutes from the current time.

GitHub X-Hub-Signature-256

GitHub sends X-Hub-Signature-256: sha256=<signature>, the hex HMAC-SHA256 of the raw request body keyed with the webhook's secret. There is no timestamp, so the same delivery verifies whenever it is checked. X-Hub-Signature is the older SHA-1 version of the same thing.

Shopify X-Shopify-Hmac-SHA256

Shopify sends X-Shopify-Hmac-SHA256, the base64 HMAC-SHA256 of the raw request body keyed with the app's client secret. It is base64, not hex, and there is no timestamp.

Slack X-Slack-Signature

Slack sends X-Slack-Signature: v0=<signature> and X-Slack-Request-Timestamp. The signature is the hex HMAC-SHA256 of v0, the timestamp and the raw body joined by colons (v0:<timestamp>:<body>), keyed with the app's Signing Secret. Slack recommends rejecting a timestamp more than five minutes old.

Twilio X-Twilio-Signature

Twilio sends X-Twilio-Signature, the base64 HMAC-SHA1 of the full URL Twilio requested (scheme, host, path and query string) followed by each POST parameter's name and value, sorted by name, keyed with the account's Auth Token. When the body is JSON, the URL carries a bodySHA256 parameter instead: the signature covers the URL alone and bodySHA256 is the hex SHA-256 of the body.

Standard Webhooks (Svix) webhook-signature

Standard Webhooks, used by Svix and the services built on it, sends webhook-id, webhook-timestamp and webhook-signature (svix-id, svix-timestamp and svix-signature on Svix). The signature is the base64 HMAC-SHA256 of the id, the timestamp and the raw body joined by full stops. The key is the base64 part of the secret after whsec_, decoded to bytes. The header is a space-separated list of v1,<signature>; any match counts. The official libraries reject a timestamp more than five minutes from now.

Why a correct secret still fails

The body was re-serialised

Most frameworks parse JSON before your handler sees it. Writing the parsed object back out changes spacing, key order or number formatting, and the signature no longer matches. Read the raw bytes first and verify those.

A newline was added or lost

Copying a body from a log or terminal often adds or drops a final newline, and text boxes turn CRLF line endings into plain newlines. The signature covers every byte.

The timestamp is outside the tolerance

Stripe, Slack and Standard Webhooks sign a timestamp, and their libraries reject one more than five minutes away from the current time. A replayed or stored request is always old.

The secret is the wrong kind

An API key, bot token or access token is not the webhook signing secret. Each Stripe endpoint, and test and live mode, has its own whsec_ secret; Standard Webhooks secrets are base64 after whsec_.

The wrong header was used

GitHub sends both X-Hub-Signature (SHA-1) and X-Hub-Signature-256; Twilio signs the exact public URL it called, which a proxy can rewrite.

What happens to what you paste

Nothing leaves this page. The check is a few lines of JavaScript calling your browser's built-in Web Crypto API; the page makes no request with your input, keeps nothing after you close it, and its only analytics is the anonymous page view every page on this site counts.

The hard part is usually having the exact bytes the sender signed. HookKeep keeps every request to its endpoints byte for byte for 60 days; see inspecting Stripe webhooks, debugging a failed Stripe webhook or inspecting GitHub webhooks.