Paste JSON and choose Format to use two-space indentation. Minify removes unnecessary whitespace. The tool reports syntax errors but does not guess how to repair your data.
Prepare before starting
Paste only the JSON part of a response or configuration. JavaScript variable declarations, Markdown fences and comments are not valid JSON here.
The tool uses JSON.parse and JSON.stringify in your browser. Input is not intentionally sent to our server, but avoid exposing sensitive tokens or personal information on shared computers.
Follow the tool steps
- Open JSON formatter and paste the sample or your data.
- Choose Format to make objects, arrays, keys and values easier to read.
- If parsing fails, edit the input and run it again. Do not mistake an error message for usable JSON output.
- Choose Minify when unnecessary whitespace must be removed. Spaces inside strings remain.
- Inspect the successful result, then Copy result. If clipboard access is blocked, select and copy the result manually.
Verified example from the actual tools
The sample contains a name, a tools array and a free boolean. We ran it through the tool and checked that the two-space output parses to the same values. {"name":"Haru",} fails because of its trailing comma; remove that comma and retry.
{"name":"Haru","tools":["PDF","image"],"free":true}{
"name": "Haru",
"tools": [
"PDF",
"image"
],
"free": true
}Troubleshoot common problems
- Single quotes: keys and string values need double quotes. Escape control characters, including literal line breaks inside strings.
- Comments or trailing commas: // comments and {"a":1,} are rejected. Remove them and run the tool again.
- Long numbers change: JavaScript number precision is limited. Represent large identifiers or exact decimal values as strings when appropriate and compare with the source. Duplicate keys can also collapse to the last value during parsing.
Limits and checks
This checks whether JSON can be parsed. It does not validate API schemas, required fields, business rules or data safety. Keys are not alphabetically sorted, and numeric-looking keys can change serialization order. Very large input can slow the browser.
Tools used in this guide
Self-authored samples were processed with the actual browser tools. Files and input content are not sent to our server; originals are unchanged.