Webhook Payload Generator

Generate sample webhook payloads for Stripe, GitHub, Slack, Shopify and more. Sign them with an HMAC secret, add headers and POST to your endpoint. Free.

By

Advertisement

Webhook Payload Generator with HMAC Signing

This payload generator produces realistic webhook request bodies for the services developers integrate most often, signs them with your signing secret, and can POST the signed request straight at your endpoint. It exists because building a webhook receiver otherwise means waiting for a real event to fire, or hand-writing JSON that is subtly wrong in the exact field your parser cares about. Pick a provider, pick an event, and you get the payload shape that provider actually sends — ready to copy into a fixture, a test suite or your API documentation.

Everything runs in the browser. Payload construction, secret generation and HMAC signing all happen client-side through the Web Crypto API, so your signing secret is never transmitted to us. The only network request made is the optional test POST, and that goes directly to the endpoint URL you type in.

Providers and Events Included

Seventeen provider profiles ship with the tool, each carrying its own signature header name, signature algorithm and a set of representative events: Stripe, GitHub, Slack, Shopify, Twilio, SendGrid, Discord, PayPal, Mailchimp, HubSpot, Zendesk, Jira (Atlassian), Asana, Linear, Trello, PagerDuty and a Custom profile for your own service.

Events are the ones you actually build against — Stripe's payment_intent.succeeded, customer.subscription.created and charge.failed; GitHub's push, pull_request and issues; Shopify's orders/create, products/create and customers/create; Slack's message, app_mention and reaction_added; SendGrid's delivered, opened and clicked. The generated JSON is fully editable, so you can bend a template into the edge case you need to test — a null customer, a zero-amount charge, an unexpected extra field — and it stays signable.

Why Webhook Signatures Exist

A webhook endpoint is a public URL that accepts POST requests from anyone who finds it. Without verification, an attacker can forge a payment_intent.succeeded and get free goods. Providers solve this with an HMAC: they share a secret with you at subscription time, compute HMAC(secret, payload) over the exact raw request body, and send the result in a header. You recompute it and compare.

Each provider names that header differently, and the tool uses the correct one per profile — Stripe-Signature, GitHub's X-Hub-Signature-256 (with its sha256= prefix), X-Slack-Signature, X-Shopify-Hmac-SHA256, X-Twilio-Signature, PAYPAL-TRANSMISSION-SIG and so on. Algorithms differ too: most use HMAC-SHA256, Twilio uses SHA-1, and the encoding is hex for some providers and base64 for others. Getting any one of these details wrong produces a signature that never matches, which is the most common reason a working integration fails in staging.

Timestamps, Replay and Verification

A signature alone does not stop replay: a captured valid request can be resent indefinitely. Providers that care about this bind a timestamp into the signed string and send it in its own header — Stripe's t component, X-Slack-Request-Timestamp, PAYPAL-TRANSMISSION-TIME, X-Zendesk-Webhook-Signature-Timestamp. The tool generates a current timestamp and includes it in the signature computation for the profiles that require it, so what you send matches what production sends.

Three rules for the receiving side, in order of how often they are broken:

  • Sign the raw body, not the parsed object. Re-serialising JSON changes key order and whitespace, and the HMAC changes with it. Capture the raw bytes before your body-parser middleware touches them.
  • Compare in constant time. Use crypto.timingSafeEqual or your language's equivalent, never ==, so response timing cannot leak the expected signature byte by byte.
  • Reject old timestamps. A five-minute tolerance window is the usual choice; outside it, return an error even if the signature is valid.

The tool includes a verification mode that runs this comparison for you: paste a payload, a secret and a signature you received, and it tells you whether they match — useful for debugging a receiver that rejects real production traffic when you need to know which side is wrong.

Generating a Webhook Secret

If you are on the sending side and need a signing secret of your own, generate a random value rather than inventing one. The tool produces cryptographically random hex values using crypto.getRandomValues, which is the browser's CSPRNG — not Math.random(), whose output is predictable from a handful of observed values and is unfit for any security purpose. A 16-byte (32 hex character) value gives 128 bits of entropy, which is ample for HMAC signing. Use a different secret per environment and per consumer, so rotating one does not force you to rotate all of them, and store it as an environment variable rather than in code — the .env file generator will build the file for you.

How to Use the Payload Generator

  1. Choose a provider and an event. The JSON payload appears immediately, populated with realistic identifiers and field shapes.
  2. Edit the payload if you are targeting a specific case; it stays valid JSON and remains signable.
  3. Enter your signing secret, or generate a random one, then click to compute the HMAC signature. The result is shown together with the header name your provider expects.
  4. Add any custom headers your receiver requires — an API version, a delivery ID, a tenant identifier.
  5. Enter your endpoint URL and send the test request. The response status and body come back so you can see exactly how your handler replied.
  6. Copy the payload, the signature, or both into your test fixtures.

If you are sending to a local development server, note that the request originates from your browser, so the endpoint must be reachable from it and must permit the cross-origin request — a localhost URL works, a private URL behind a VPN your browser cannot reach does not. For inspecting deliveries a provider is already sending you, use the webhook tester and inspector instead; to shape and replay arbitrary requests, the HTTP request builder is the broader tool.

Need Help Implementing Webhooks?

Our development team can help you design, implement, and secure webhook integrations for your applications. From signature verification to scalable webhook processing architectures, we have you covered.

Frequently Asked Questions

What is a payload generator?+

A tool that builds a realistic request body for you instead of making you write one by hand. Here it produces webhook payloads matching the JSON structure that named providers actually send, so your handler is tested against the real shape.

Is this webhook payload generator free?+

Yes. Free, no account required, and no cap on how many payloads or signatures you generate.

How do I generate a webhook secret?+

Use the generator in the signing section, which draws random bytes from the browser's cryptographically secure random source. A 32-character hex value carries 128 bits of entropy and is more than sufficient for HMAC signing. Never build a secret from Math.random() or a memorable phrase.

Which signature algorithm does each provider use?+

Most use HMAC-SHA256; Twilio uses SHA-1. Encoding is hex for some providers and base64 for others, and GitHub prefixes its value with sha256=. Each provider profile here applies its own algorithm, encoding and header name automatically.

Can I send the generated payload to my own endpoint?+

Yes. Enter your endpoint URL and the tool POSTs the payload with the signature header, timestamp header and any custom headers attached, then shows you the response status and body.

Why does my signature never match?+

Nearly always because the receiver signs the parsed and re-serialised JSON rather than the raw request body. Whitespace and key order are part of the signed bytes. Capture the raw body before your JSON middleware runs.

Is my signing secret sent to your servers?+

No. HMAC computation happens in your browser via the Web Crypto API. The only outbound request is the optional test POST, which goes directly to the endpoint URL you supply.

Can I verify a signature I already received?+

Yes. The verification mode takes a payload, a secret and a signature and reports whether they match, which quickly settles whether a rejected delivery is the sender's fault or the receiver's.

How should I handle replay attacks?+

Check the timestamp header alongside the signature and reject anything outside a tolerance window of about five minutes. Also record delivery IDs and ignore duplicates, since most providers retry and at-least-once delivery means your handler must be idempotent.

Can I use a provider that is not in the list?+

Yes. Choose the Custom profile, paste your own JSON payload, set your header name and secret, and sign it the same way.

This tool is provided for informational and educational purposes only. While we strive for accuracy, we make no warranties about the completeness or reliability of results.