Format and beautify JSON data with proper indentation and spacing. This tool takes minified or messy JSON and makes it readable. You can choose indentation levels (2 or 4 spaces) and the tool will format your JSON accordingly.
You want to read or review minified JSON payloads more easily.
You need consistent formatting for diffs or code reviews.
Input
{"id":42,"roles":["admin","editor"],"enabled":true}Output
{
"id": 42,
"roles": [
"admin",
"editor"
],
"enabled": true
}Choose 2 or 4 spaces depending on your style guide.
Pretty-print API responses to spot nested values quickly.
Normalize JSON before committing configuration files.
Formatting invalid JSON without fixing syntax errors first.
Assuming formatting changes the data (it only changes whitespace).
Formatting preserves key order as it appears in the input.
Use minify for compact output and format for readability.
Paste your JSON data into the editor and click the Format button. The JSON will be automatically formatted with proper indentation.
Yes, you can choose between 2 spaces or 4 spaces for indentation. The default is 2 spaces.
The formatter will first validate your JSON. If there are syntax errors, you must fix them before the JSON can be formatted.