Three actions, one box
Format re-indents valid JSON with two spaces, Minify removes all optional whitespace, and Validate reports whether the text parses. The output is read-only and can be copied. Validation shows the browser's native JSON error message, which names the position where parsing failed.
What the parser does with edge cases
- Duplicate keys collapse silently, because a JavaScript object cannot hold two identical keys; the last value wins.
- Numbers beyond roughly 15 significant digits lose precision when parsed as doubles, so long identifiers should stay strings.
- Comments and trailing commas are rejected. This is strict JSON, not JSON5.
A worked example
The input {"name":"Ada","age":36,"roles":["admin","editor"]} formats to six lines with two-space indentation, and Minify returns the original single line. Add a trailing comma and Validate reports a parse error near the end of the text, because strict JSON does not accept one.
Where it stops
Indentation is fixed at two spaces, keys are not sorted, and there is no conversion to CSV, YAML or XML. For a pass-or-fail check use the JSON validator; to change formats use the JSON to YAML converter. There is no file upload or download, so very large documents have to be pasted.
Questions people ask
Why does my JSON fail when it works in JavaScript?
JavaScript literals allow single quotes, comments and trailing commas. JSON allows none of them.
Is my data sent anywhere?
No. Parsing and formatting happen in the page.