Tools / Webhook Signature Verifier

Webhook Signature Verifier.

Verify or compute HMAC signatures for GitHub, Stripe, Slack, Shopify and custom webhooks.

Runs in your browser

Paste the body exactly as received; re-formatted JSON produces a different signature.

Leave empty to compute the signature a sender would send.

Ctrl/⌘ + Enter to run · Ctrl/⌘ + Shift + C to copy the result

Result
Result
Details

About Webhook Signature Verifier

The Webhook Signature Verifier tells you whether a webhook request really came from the service that claims to have sent it. Choose the provider, paste your signing secret, the raw request body and the signature header, and the tool recomputes the HMAC the same way the provider does. GitHub signs the body with HMAC-SHA256 and sends sha256=<hex> in X-Hub-Signature-256 (the legacy sha1= header is detected too). Stripe signs "timestamp.body" and sends t=…,v1=… in Stripe-Signature; several v1 values during secret rotation are accepted. Slack signs "v0:timestamp:body" and sends v0=<hex>, with the timestamp in its own header. Shopify sends a Base64 HMAC-SHA256 of the body in X-Shopify-Hmac-Sha256. The generic mode covers custom senders with SHA-1, SHA-256 or SHA-512, hex or Base64 and an optional prefix. Leave the signature empty to see exactly what a sender would send, which is handy for writing tests. For Stripe and Slack the timestamp is checked against a tolerance, 300 seconds by default, to catch replayed requests. By far the most common failure is verifying a parsed and re-serialized JSON body instead of the raw bytes; frameworks often hand you the parsed version. Other mistakes are using the API key instead of the endpoint signing secret and stripping the trailing newline. Your secret stays in your browser and out of the page URL.

How to Use

  1. Pick the provider and paste the signing secret.
  2. Paste the raw request body and the signature header value (plus the timestamp for Slack).
  3. Read the verdict; the details show the expected signature and the exact string that was signed.

Frequently Asked Questions

Why is the signature invalid when the secret is right?

Almost always because the body differs from what was signed. Use the raw request body, not JSON that your framework parsed and re-encoded, and keep whitespace and newlines intact.

Which Stripe secret do I use?

The endpoint's signing secret that starts with whsec_, used as-is including the prefix. It is not your API secret key.

What does the timestamp tolerance do?

Stripe and Slack include a timestamp in the signed content. Rejecting requests older than a few minutes stops an attacker from replaying a captured request.

Is my secret sent anywhere?

No. HMAC is computed in your browser, the page makes no network requests, and sensitive inputs are kept out of the URL and history.

Related Tools