FREE TOOL
Format, minify, validate, open, and download JSON with configurable indentation.
Format JSON with two spaces, four spaces, or tabs, or minify it in one click. Syntax errors include a line and column when available, and you can open and save JSON files locally.
These examples describe reproducible behavior in this tool. They are not a guarantee for inputs outside the documented scope.
| Input or setting | Expected result | Condition |
|---|---|---|
| {"name":"Alice","active":true} | JSON formatted with two spaces, four spaces, or tabs | The tool does not intentionally reorder keys or coerce value types. |
| {"items":[1,2,]} | A JSON syntax error | A trailing array comma is not valid JSON. |
Validation uses JSON.parse; formatting and minification use JSON.stringify.
The tool handles values in the JSON syntax described by ECMA-404.
Pasted JSON and opened file contents are processed in the browser.
Yes. The tool reports the line and column of a syntax error when that location is available.
Yes. You can remove unnecessary whitespace and download the result as a JSON file.
No. Formatting and validation run in your browser. You should still make sure your own device and browser environment are secure.