JSON Webhook Tester
Send test JSON webhook payloads to any endpoint, sign them with HMAC-SHA256, and inspect the response in seconds
Test your webhook endpoint without waiting for a real event. Paste your URL, pick a template or write your own JSON, add custom headers, optionally sign the request with HMAC-SHA256, and inspect the exact status, headers, and body your server returns.
Sent as X-Webhook-Event header
If provided, an X-Hub-Signature-256 header is computed from the payload + secret
Response
Response Headers
| Name | Value |
|---|
Response Body
Configure your webhook payload and click Send Webhook
Why Developers Use This Webhook Tester
A real provider event is hard to trigger on demand. This tester lets you send a known payload to your endpoint right now, so you can see exactly how your handler behaves before wiring up a live integration.
- Verify that your handler parses JSON and returns the status code you expect.
- Reproduce a failing production webhook with a known, repeatable payload.
- Check that signature validation accepts valid requests and rejects invalid ones.
- Debug missing headers, wrong content types, and timeouts before going live.
Key Features
| Feature | What it does |
|---|---|
| Ready-made templates | Start from Stripe, GitHub, Slack, Discord, or Zapier sample payloads. |
| Event type header | Sends your event name as the X-Webhook-Event header. |
| Custom headers | Add any header your endpoint expects, such as Authorization or X-Request-Id. |
| HMAC signature | Computes an X-Hub-Signature-256 header from the payload and your secret. |
| Response inspector | Shows response status, headers, body, duration, and size, with a copy button. |
| JSON editor | Write or paste a payload, then validate and format it before sending. |
| Free to use | No registration, no usage limits, and no installation. |
How to Use
- Enter the webhook URL. Use a public HTTPS endpoint, such as a staging server or a temporary inbox from a webhook inspection service.
- Set the event type (optional). Sent as
X-Webhook-Event, so your handler can route events such asinvoice.paidorpush. - Compose the JSON payload. Write your own or load a template and edit the fields.
- Add custom headers. Include anything your service requires, such as
X-Stripe-Signatureor a bearer token. - Add a signing secret (optional). The tool computes an HMAC-SHA256 digest of the body and sends it as
X-Hub-Signature-256. - Click Send Webhook. Read the response status, headers, and body below.
What Is a Webhook?
A webhook is an HTTP callback: when an event happens in one system, it sends an HTTP POST request containing event data to a URL you control. Instead of repeatedly asking "has anything changed?", your application is told the moment something happens.
Common examples include Stripe sending payment events, GitHub notifying you about code pushes, and Slack or Discord delivering messages to a channel. When testing an integration, you need to send sample payloads to your endpoint to verify parsing, headers, signatures, and responses — that is exactly what this tool does.
Webhook vs. API Polling
| Webhook | Polling | |
|---|---|---|
| Direction | Provider pushes to you | You pull from provider |
| Latency | Near real time | Depends on poll interval |
| Wasted requests | Few | Many; most polls return nothing |
| Setup | Public endpoint + verification | Scheduled job |
| Failure handling | Provider retries (varies by provider) | You retry |
Anatomy of a Webhook Request
POST /webhooks/stripe HTTP/1.1
Host: example.com
Content-Type: application/json
X-Webhook-Event: invoice.paid
X-Hub-Signature-256: sha256=3f2a...c9d1
{"id":"evt_123","type":"invoice.paid","data":{"object":{"amount_paid":4900}}}
- Method: almost always
POST. - Headers: content type, event name, signature, and delivery ID.
- Body: a JSON object describing the event.
- Expected response: a fast
2xxto acknowledge receipt.
Common Webhook Events
Stripe
| Event | When it fires |
|---|---|
charge.succeeded | A charge was completed |
payment_intent.succeeded | A payment intent finished successfully |
invoice.paid | An invoice was paid |
customer.subscription.updated | A subscription changed (plan, status, quantity) |
checkout.session.completed | A Checkout session was completed |
GitHub
| Event | When it fires |
|---|---|
push | Commits are pushed to a branch or tag |
pull_request | A PR is opened, closed, synchronized, and so on |
issues | An issue is opened, edited, or closed |
release | A release is published or edited |
workflow_run | A GitHub Actions workflow run is requested or completed |
Slack / Discord
| Type | Use |
|---|---|
| Incoming Webhook | Post a message to a channel |
| Slash Command | Handle /command invocations |
| Interaction (Slack) | Buttons, menus, and modals |
| Message (Discord) | Post content or embeds through a channel webhook |
| Interaction (Discord) | Handle application commands and components |
Sample Payloads
Minimal custom event
{
"event": "order.created",
"id": "evt_001",
"created_at": "2026-12-02T09:30:00Z",
"data": {
"order_id": "ORD-1001",
"amount": 49000,
"currency": "IDR",
"customer": { "id": "cus_42", "email": "user@example.com" }
}
}
Simplified Stripe-style event
{
"id": "evt_1Nxxxxxxxx",
"object": "event",
"type": "payment_intent.succeeded",
"data": {
"object": {
"id": "pi_3Nxxxxxxxx",
"amount": 4900,
"currency": "usd",
"status": "succeeded"
}
}
}
Simplified Slack-style incoming webhook message
{
"text": "Deployment finished successfully",
"blocks": [
{
"type": "section",
"text": { "type": "mrkdwn", "text": "*Deploy complete* on `production`" }
}
]
}
These are simplified for testing. Real provider payloads contain more fields; check each provider's documentation for the exact schema.
Webhook Signature Verification
Signatures let your server confirm that a request came from the expected sender and was not modified in transit. The tool's X-Hub-Signature-256 header uses the GitHub-style format: sha256= followed by the hex HMAC-SHA256 of the raw request body.
Stripe-Signature header with a timestamp and signs timestamp.payload; Slack uses X-Slack-Signature with a v0:timestamp:body base string; Discord interactions use Ed25519 public-key signatures. This tool's signature is for GitHub-style verification and custom endpoints. To test provider-specific formats, add the exact header yourself using Custom Headers.
Node.js (Express)
import crypto from "crypto";
import express from "express";
const app = express();
// Keep the raw body: signatures are computed over exact bytes
app.use(express.raw({ type: "application/json" }));
app.post("/webhook", (req, res) => {
const signature = req.get("X-Hub-Signature-256") || "";
const expected =
"sha256=" +
crypto.createHmac("sha256", process.env.WEBHOOK_SECRET)
.update(req.body)
.digest("hex");
const valid =
signature.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected));
if (!valid) return res.status(401).send("Invalid signature");
const event = JSON.parse(req.body.toString());
// handle event...
res.sendStatus(200);
});
PHP / Laravel
public function handle(Request $request)
{
$payload = $request->getContent(); // raw body
$signature = $request->header('X-Hub-Signature-256', '');
$expected = 'sha256=' . hash_hmac('sha256', $payload, config('services.webhook.secret'));
if (! hash_equals($expected, $signature)) {
abort(401, 'Invalid signature');
}
$event = json_decode($payload, true);
// dispatch a queued job, then respond quickly
return response()->json(['ok' => true]);
}
In Laravel, exclude the webhook route from CSRF protection (for example, in bootstrap/app.php or the VerifyCsrfToken middleware, depending on your version).
Python (Flask)
import hmac, hashlib, os
from flask import Flask, request, abort
app = Flask(__name__)
@app.post("/webhook")
def webhook():
body = request.get_data() # raw bytes
signature = request.headers.get("X-Hub-Signature-256", "")
expected = "sha256=" + hmac.new(
os.environ["WEBHOOK_SECRET"].encode(), body, hashlib.sha256
).hexdigest()
if not hmac.compare_digest(signature, expected):
abort(401)
event = request.get_json()
return "", 200
Reading the Response: Status Codes
| Status | Meaning for webhooks | What to check |
|---|---|---|
200 / 204 | Received successfully | Nothing; this is the goal |
201 / 202 | Accepted (often queued) | Fine for most providers |
301 / 302 | Redirect | Many senders do not follow redirects; use the final URL |
400 | Bad request | Malformed JSON or missing required fields |
401 / 403 | Unauthorized / forbidden | Signature mismatch, wrong token, or firewall rule |
404 | Not found | Wrong path or route not registered |
405 | Method not allowed | Route accepts GET but not POST |
415 | Unsupported media type | Missing or wrong Content-Type: application/json |
419 | Page expired (Laravel) | CSRF protection is blocking the route |
422 | Unprocessable entity | Validation failed on the payload |
429 | Too many requests | Rate limiting on your endpoint |
500 / 502 / 503 | Server error | Check app logs; the provider will usually retry |
| Timeout | No response in time | Move heavy work to a queue and reply immediately |
See also: HTTP Status Codes.
Troubleshooting Checklist
- Signature does not match: verify against the raw body, not re-serialized JSON; make sure the secret has no trailing whitespace; compare the full
sha256=prefix. - Endpoint returns 404: confirm the exact path, trailing slash, and HTTP method.
- Endpoint returns 415 or an empty body: send
Content-Type: application/jsonand check body-parser order in your framework. - Works in the tester but not from the provider: compare headers, payload size, and IP allowlists; provider payloads are larger and have stricter signature rules.
- Timeouts: respond with
2xxfirst, then process the event asynchronously. - Duplicate events: providers can retry; make handlers idempotent by storing the event ID.
- Cannot reach a local server: see Testing Local Endpoints.
Testing Local Endpoints
The tester sends requests through a server-side proxy, so it cannot reach localhost or private network addresses. To test a local endpoint, use one of these options:
- Expose your local server with a tunneling tool such as ngrok or Cloudflare Tunnel, then paste the public HTTPS URL.
- Generate a cURL command with the cURL Builder and run it from your own machine against
http://localhost:PORT/.... - Deploy to staging and test against a real HTTPS URL.
curl -X POST http://localhost:8000/webhook \
-H "Content-Type: application/json" \
-H "X-Webhook-Event: order.created" \
-d '{"event":"order.created","data":{"order_id":"ORD-1001"}}'
Webhook Security Best Practices
- Always verify signatures and reject unsigned requests.
- Use HTTPS for every webhook endpoint.
- Compare signatures in constant time (
timingSafeEqual,hash_equals,compare_digest). - Check timestamps where the provider supplies them, to limit replay attacks.
- Deduplicate by event ID so retries do not cause double processing.
- Respond fast, work later: return
2xx, then handle the job in a queue. - Do not trust the payload blindly: validate fields, and for sensitive actions, fetch the resource from the provider's API.
- Rotate secrets periodically and keep them out of source control.
- Rate-limit and log webhook traffic, without logging secrets.
Use Cases
- Payments: confirm that
payment_intent.succeededactivates an order in your app. - CI/CD: trigger a deployment when a GitHub
pushorreleaseevent arrives. - ChatOps: post alerts to Slack or Discord from monitoring tools.
- Automation: feed events into Zapier, Make, or n8n workflows.
- SaaS billing: test subscription lifecycle handling such as
customer.subscription.updated. - QA: replay edge cases such as empty fields, huge payloads, or unexpected event types.
- Education: demonstrate how webhooks work in tutorials or workshops.
Frequently Asked Questions
What is a JSON webhook tester?
It is an online tool that sends a sample JSON payload to your webhook URL so you can check how your endpoint responds, without waiting for the real event to occur.
How is this different from the API Request Builder?
The API Request Builder is a general-purpose HTTP client. This tool is built for webhooks: it has an event type header, HMAC signature generation, and templates for Stripe, GitHub, Slack, Discord, and Zapier.
What is the X-Hub-Signature-256 header?
It is an HMAC-SHA256 signature of the request body, computed with your webhook secret and sent in the sha256=<hex> format used by GitHub. Your server recomputes it and compares the two values to confirm the request is authentic and unmodified.
Can I test Stripe webhook signatures with this tool?
The built-in signature uses the GitHub-style format. Stripe signs a timestamp plus the payload and sends it in Stripe-Signature, so for Stripe-specific verification you should add that header manually or use Stripe's own CLI for exact signing.
Can I test local webhook endpoints?
Not directly. The proxy cannot reach localhost or private IPs. Use a tunnel such as ngrok, or generate a command with the cURL Builder and run it locally.
Is my payload stored or sent to a server?
Requests are forwarded through a proxy to your target URL so the response can be shown in the browser. Avoid putting real production secrets or personal data in test payloads; use dummy values.
Which HTTP method does the tool use?
Webhooks are sent as POST requests with a JSON body.
What status code should my webhook endpoint return?
Return a 2xx code (usually 200 or 204) as soon as you have received and validated the event. Return 4xx or 5xx only when you want the sender to treat the delivery as failed.
Why does my endpoint return 401 or 403?
Usually a signature mismatch, a missing or wrong authorization header, or a firewall or IP allowlist blocking the request.
Is this tool free?
Yes. It is free, with no registration required.
Related Tools
JSON Formatter
Clean up payloads before sending
JSON Escape / Unescape
Fix escaped JSON in payload strings
cURL Builder
Test local endpoints from your machine
HTTP Status Codes
Interpret the response
SHA256 Hash Generator
Related hashing concept
Base64 Encoder & Decoder
Decode Base64 fields in payloads
Unix Timestamp Converter
Read timestamp fields in events
Validation Rule Generator
Validate incoming webhook data
JSON to CSV Converter
Export logged payloads