JSON Format, Minify & Correct
Paste JSON to make it readable, minify it or investigate a parsing error.
Pick the action that matches the problem
- Hard to read
- Use Format for indentation. Choose two or four spaces; the original field stays available for reference.
- Too much space
- Use Minify for compact JSON. This removes formatting, not properties or array entries.
- Need a check
- Validate & Analyze parses the input and reports its root type, nesting depth and counts of keys, objects, arrays and values.
- Syntax error
- Try Correct JSON only if you want a repair. Read the correction message and review the changed input before copying it.
What can correction safely repair?
It can handle selected problems such as trailing commas, an opening byte-order marker and clearly missing closing brackets. It does not invent missing values or resolve ambiguous data. Keep a copy of the original when the content matters.
Parsing uses JavaScript JSON rules. Duplicate object keys and numbers beyond JavaScript's safe integer range need special care; formatting is not a lossless text transformation for those inputs.
Check what changed between two JSON documents →