Format a JSON API Response in Your Browser
Turn a single-line API payload into a readable, indented tree without sending your data to a server.
- 1
Copy the raw response
Open your browser dev tools, go to the Network tab, click the request you want to inspect, then right-click the response and choose Copy response. A minified payload arrives as one very long line, which is almost impossible to read by eye.
- 2
Paste it into the JSON Formatter
Open the JSON Formatter and paste the response into the input box on the left. Nothing is uploaded: the text stays in your browser tab the entire time.
- 3
Format the payload
Click Format Data. The right-hand panel shows the same data indented with two spaces per level, so nested objects and arrays become scannable.
- 4
Fix what the parser complains about
If the output shows an error instead, the payload is not valid JSON. The usual culprits are trailing commas, single quotes around keys, or an HTML error page returned instead of JSON. Fix the source or check whether your request was actually authenticated.
- 5
Copy the readable version
Use the copy button under the output to grab the formatted JSON and paste it into a ticket, a chat message, or a fixture file for a test.
Ready to try it? Open the JSON Formatter and paste your data.
JSON Formatter