JSON Formatter
Paste messy JSON and get clean, readable output. Choose 2 spaces, 4 spaces, or tabs, optionally sort object keys, and see exactly where a syntax error is, with line and column, when the input does not parse. Everything runs in your browser.
Input
Loading editor...
Output
Formatted output will appear hereReady. Press Format, Minify, or Validate.
How to use the JSON Formatter
- Paste JSON into the input pane, or upload a file.
- Pick an indentation style and press Format.
- Copy the result or download it as a file.
Example
The sample is the same payload used on the homepage formatter.
{"name":"json-utils","version":"1.0.0","private":false,"tags":["json","tools"],"author":{"name":"Ada","active":true},"score":9.5,"notes":null}Frequently asked questions
Is my JSON uploaded?
No. Formatting runs in your browser tab and the input is never sent anywhere.
What does sorting keys do?
It orders object keys alphabetically at every level. Array order is never changed, because array order is meaningful in JSON.