Skip to content
Esc
  • MQTT Topic MatcherTest MQTT topic filters with + and # wildcards against topics, and check ACL patterns.
  • JSON FormatterBeautify, minify and validate JSON instantly as you type.
  • JSON DiffCompare two JSON documents and see every added, removed and changed value by path.
  • JSON to TypeScriptGenerate TypeScript interfaces or Zod schemas from a sample JSON response.
  • Base64 Encoder/DecoderConvert text to Base64 and back, with full Unicode support.
  • UUID GeneratorGenerate random v4 UUIDs — one or many — in the format you need.
  • JWT DecoderDecode JSON Web Tokens to inspect the header, payload and expiry.
  • Timestamp ConverterConvert Unix timestamps to dates and dates to timestamps.
  • URL Encoder/DecoderPercent-encode and decode URLs, and break down query strings.
  • Hash GeneratorGenerate MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files.
  • Regex TesterTest regular expressions with live match highlighting and groups.
  • YAML to JSON ConverterConvert YAML to JSON and JSON to YAML, with clear error locations.
  • SQL FormatterBeautify or minify SQL for PostgreSQL, MySQL, SQL Server and 9 more dialects.
  • Mock Data GeneratorGenerate realistic fake data for API mocks as JSON, CSV or SQL inserts.
  • HTTP Header AnalyzerGrade response headers: CSP, HSTS, cookies, CORS and caching, explained.
  • Webhook Signature VerifierVerify and generate webhook signatures for GitHub, Stripe, Slack, Shopify and more.
  • Cron Expression GeneratorBuild and explain cron schedules, with the next run times in any time zone.
  • .env File ValidatorFind syntax errors, duplicates and missing keys in .env files.
  • HTML to JSX ConverterConvert HTML to valid React JSX: className, style objects, self-closing tags.
  • SVG to React ComponentTurn SVG files into React icon components with props and currentColor.
  • Markdown EditorWrite Markdown with a live preview, GitHub tables and task lists, and HTML export.

↑ ↓ to moveEnter to openPaste data to open it in the right tool. Nothing leaves your browser.

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

How to use the Webhook Signature Verifier

  1. Pick the provider

    GitHub, Stripe, Slack, Shopify, Standard Webhooks / Svix, or a custom HMAC.

  2. Paste the request

    Enter the raw body exactly as received, your signing secret and the signature header (plus timestamp or ID where needed).

  3. Read the result

    See whether it's valid, the signature you should have received and the exact string that was signed.

  4. 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.

Read the DevNest privacy policy

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=757107ea0eb2509fc211221cce984b8a37570b6d7586c22c46f4379c8b043e17

    Result

    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=22bfee086f436c24292711417c3cb3680f6456c2bac39273bc556944f7ad31e2

    Result

    Valid signature
    Signed: 1767225600.{body}
    Expected v1: 22bfee086f436c24292711417c3cb3680f6456c2bac39273bc556944f7ad31e2
  • Slack: 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=b561f3cec848b6a81abf6c1e3fbb7db9eaed888ee8c66e921e4ac53d9a4c1581

    Result

    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.

ProviderHeaderWhat is signed
GitHubX-Hub-Signature-256body → sha256=<hex>
StripeStripe-Signature{t}.{body} → v1=<hex>
SlackX-Slack-Signaturev0:{timestamp}:{body} → v0=<hex>
ShopifyX-Shopify-Hmac-Sha256body → <base64>
Standard Webhooks / Svixwebhook-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=.