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.
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.
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.
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.
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.