{ }

JSON Formatter

Format, validate and minify JSON — 100% local, nothing sent to any server.

Input
Output

How it works

1
Paste your JSON
Drop raw, minified or malformed JSON into the input area. Supports nested objects, arrays and all JSON value types.
2
Format and validate
The parser pretty-prints with configurable indentation (2 or 4 spaces) and highlights any syntax errors with the exact line number.
3
Explore structure
Collapsible nodes let you fold and unfold nested objects and arrays to navigate large JSON documents easily.
4
Copy or download
Click Copy to grab the formatted JSON, or Download to save it as a .json file. Minify mode is also available to compact it back.

Frequently Asked Questions

Is the JSON Formatter free?

Yes, completely free. No account, no data stored.

Is my JSON sent to a server?

No. Parsing and formatting use the browser's native JSON.parse() and JSON.stringify() — your data stays local.

Can it format minified JSON?

Yes. Paste any compact or minified JSON and it will be pretty-printed with consistent indentation and syntax highlighting.

What happens if my JSON is invalid?

The parser highlights the exact line and character position of the error so you can quickly locate and fix syntax issues.