API Response Formatter
Paste a raw API response and format or minify it - built specifically for inspecting JSON API responses.
Paste a raw API response body below to format it for readability, or minify it - useful when inspecting a response while debugging an integration.
This uses the same formatting engine as our JSON Formatter, framed specifically around inspecting API response bodies.
What Is an API Response Formatter?
API responses - especially JSON ones - are frequently returned as a single unbroken line, which is hard to read. This tool takes a raw API response body and reformats it with proper indentation, or minifies it back down, so you can quickly scan its structure while debugging.
Why Use This Tool?
Useful right after using the REST API Tester or your own HTTP client, when you have a raw response body copied from a network log, terminal, or bug report and need to actually read it.
How to Use the API Response Formatter
- Paste the raw API response body.
- Click Format to pretty-print it, or Minify to compact it.
- Copy the result.
Troubleshooting
An "invalid JSON" error usually means the pasted text includes extra content beyond the JSON body itself (such as response headers or a trailing comment) - copy only the response body and try again.
Related Tools
For a general-purpose formatter not focused on API responses, see JSON Formatter, JSON Validator, and JSON Minifier.