opyebWebhookLab

100% local · nothing uploaded

Compute and verify webhook signatures in your browser

Build GitHub, Stripe, Slack, Shopify and Toss Payments HMAC signatures with the Web Crypto API, then check whether the signature you received is valid. Your secret and body never leave this tab.

✓ Secrets, bodies and signatures are never sent over the network. They live in browser memory and disappear on reload.

Sign & verify

e.g. GitHub webhook Secret, Stripe whsec_…, Slack Signing Secret

Generated signature header

X-Hub-Signature-256

Enter a secret and body, then press Generate signature.

Verify a received signature

Original vs re-encoded body

Any proxy or framework that re-serializes JSON breaks the signature. Compare the body you received with the one your server rebuilt.

How each platform signs

Even with the same HMAC-SHA256, the signed string, encoding and timestamp rules differ per platform. This table shows the five schemes implemented here.

PlatformHeaderTimestampTolerance
GitHubX-Hub-Signature-256noneno timestamp
StripeStripe-Signaturet300 sec
SlackX-Slack-SignatureX-Slack-Request-Timestamp300 sec
ShopifyX-Shopify-Hmac-Sha256noneno timestamp
Toss Paymentstosspayments-webhook-signaturetransmission-time300 sec

Verifier by platform

Each page opens the lab on that platform, with a real payload sample and header table.

WebhookVerify GitHub webhook signatures (X-Hub-Signature-256)Compute and verify push / pull_request signatures.WebhookVerify Stripe webhook signatures (Stripe-Signature)Compute t=,v1= signatures and check the 300 s window.WebhookVerify Slack request signatures (X-Slack-Signature)Compute the v0:timestamp:body signature.WebhookVerify Shopify webhook HMAC (X-Shopify-Hmac-Sha256)Compute and verify the base64 HMAC.WebhookVerify Toss Payments webhook signatures (v1)Compute and verify the body:time signature.

Guides

Why signatures fail, how to keep the raw body intact, and how to stop replays, in the order you will need them.

FundamentalsWhat a webhook signature is and what it provesHow HMAC works, and what a signature does and does not prove.FundamentalsWhen the signature never matches: the raw body problemHow JSON re-serialization, CRLF and proxies break signatures.PlatformVerify GitHub webhook signatures: X-Hub-Signature-256Header format, verification code and the usual 401 causes.PlatformVerify Stripe webhook signatures: t= and v1=The t=,v1= structure, the 300 s window and multiple signatures.PlatformVerify Slack request signatures: v0:timestamp:bodyThe v0 signed string, the five-minute window and url_verification.PlatformVerify Shopify webhooks: base64 HMACBase64 rather than hex, and app vs store secrets.

Guides →

Frequently asked questions

Is it safe to paste a webhook secret into a browser page?

All signing here happens through the browser's Web Crypto API. Secrets and bodies are never transmitted or stored, and they disappear on reload. For production, still verify on your server with the official SDK or documented procedure.

What is the most common reason a signature keeps failing?

Signing a re-serialized JSON body instead of the raw bytes. Once a framework parses the body and rebuilds the string, whitespace, key order and unicode escapes can change, and the HMAC changes completely. CRLF/LF differences and an added trailing newline are the next most common causes.

What is the GitHub webhook signature header?

X-Hub-Signature-256, with the value sha256=<hex>. It is HMAC-SHA256 over the raw request body. The legacy X-Hub-Signature header (SHA-1) can be verified as well.

What are t= and v1= in Stripe-Signature?

t is the signing time in Unix seconds; v1 is the HMAC-SHA256 hex of t + '.' + body. Stripe recommends a 300-second tolerance, and multiple v1 values may be present, so any match passes.

What string does Slack sign?

v0:timestamp:body, where the timestamp is the X-Slack-Request-Timestamp header. The signature arrives as v0=<hex>, and Slack recommends rejecting requests older than five minutes (300 seconds).

Why do I need timestamp checking?

A signature only proves the body was not changed. If an attacker captures a request and sends it again, the signature is still valid. A timestamp window plus idempotent handling of the event ID is what stops replays and duplicates.