toolqik

63 · API & Webhooks

API Response Formatter

Pretty-print an API response (JSON, XML or form data) with status and headers.

Runs in your browser
Indent
Formatted body

  

About this tool

When you debug an API with curl -i, the response arrives as a status line, headers and a minified body on one long line. Paste it here: the body is pretty-printed (JSON with syntax highlighting, XML indented, form data as a list), the status code is explained, and the headers are listed with their meanings. Bodies without headers work too.

Getting a response to paste

curl -si https://api.example.com/v1/orders/42 -H 'Authorization: Bearer …'

With -L, curl prints every response in a redirect chain; the formatter uses the last one.

Reading error responses

Many APIs return errors in the application/problem+json format (RFC 9457), with type, title, status and detail fields, often plus a list of field errors. The status line tells you the category: 4xx means the request needs fixing; 5xx means the server failed. Look up any code in the HTTP Status Codes reference.

For large JSON documents with error positions, use the JSON Formatter.

FAQ

How do I format an API response?

Paste the response body, or the full output of curl -i, above. JSON and XML are pretty-printed automatically.

Can it handle XML responses?

Yes. Well-formed XML is indented, and parsing errors are reported.

Does it send my response anywhere?

No. Formatting happens entirely in your browser.

esc
↑↓ navigate↵ open