Skip to content
API & TESTING TOOLS

Webhook Payload Viewer – Format JSON Events

Format and inspect a pasted webhook JSON payload.

  • Free
  • No signup
  • Runs in your browser

This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.

Webhook Payload Viewer

About Webhook Payload Viewer

A webhook is an automatic HTTP request that one service sends to another when something happens, such as a payment, a new order or a code push. The payload is usually a single line of JSON, which is hard to read in logs or in a request inspector.

Paste the payload and this viewer validates it and prints it with indentation, so you can see the event type, the nested data object, IDs and timestamps at a glance. It runs in your browser, so the content is not sent to NHP Learning. Even so, remove secrets and personal data before pasting payloads into any online tool.

How to use Webhook Payload Viewer

  1. Copy the raw JSON body of the webhook from your log or the provider dashboard.
  2. Paste it into the input box and click Run Tool.
  3. Read the structure, then copy the fields you need into your handler code.

Example

Input

{"event":"payment.captured","id":"evt_1001","created_at":1767225600,"data":{"amount":49900,"currency":"INR","status":"captured","customer":{"name":"Aman","email":"aman@example.com"},"items":[{"sku":"php-course","qty":1}]}}

Output

{
  "event": "payment.captured",
  "id": "evt_1001",
  "created_at": 1767225600,
  "data": {
    "amount": 49900,
    "currency": "INR",
    "status": "captured",
    "customer": {
      "name": "Aman",
      "email": "aman@example.com"
    },
    "items": [
      {
        "sku": "php-course",
        "qty": 1
      }
    ]
  }
}

Common uses

  • Understanding the shape of an event before you write the code that handles it.
  • Debugging why a handler fails on a particular payload.
  • Sharing a readable example with a teammate or a support team.

Privacy and safety

This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.

Frequently asked questions

How do I know the payload is genuine?

Check the signature header the provider sends, usually an HMAC of the raw body calculated with your webhook secret. Never trust a payload on its content alone.

Why does validation fail?

The input is probably not JSON, for example form-encoded data, or the body was cut off. Paste the complete raw body.

How do I convert the timestamps?

Many payloads use Unix time. Paste the value into the Timestamp Converter.

Learn to build this yourself

Free tutorials and courses on NHP Learning cover PHP, JavaScript, SQL and WordPress, from the basics to real projects.