What the result means
Formatter rewrites valid JSON with indentation so it is easy to read. Validator checks the syntax and reports the type, the number of top-level items, and the nesting depth. Minifier removes all optional whitespace to make the text as short as possible. If the JSON is invalid, the tool shows the line and column, the line itself with a marker, and a plain-language reason.
Example
Input:
{'name': "SigapTek", "tags": ["a", "b",],}
The tool reports the first problem it finds: single quotes are not allowed, so strings and keys must use double quotes. After fixing that, it reports the trailing commas. Corrected:
{"name": "SigapTek", "tags": ["a", "b"]}
Limits
- It follows the JSON standard strictly. Comments, trailing commas, single quotes, and values such as
NaNorundefinedare errors. - Numbers and strings are kept exactly as written, so very large numbers are not rounded and key order and duplicate keys are preserved.
- Input is limited to 5 MB. For larger files use a local tool.
- It checks syntax only. It does not validate data against a JSON Schema.
FAQ
Is my JSON uploaded anywhere?
No. Parsing and formatting happen in your browser. The page does not send your input to a server.
Why does my JSON from a JavaScript object fail?
A JavaScript object literal allows unquoted keys, single quotes, and trailing commas. JSON does not. Use JSON.stringify() to produce valid JSON.
What is the difference between formatting and minifying?
Formatting adds indentation and line breaks for people. Minifying removes them to reduce size for transfer or storage. The data stays identical.