JSON formatter

JSON formatter

Format, minify and validate JSON, with a clear parse error when it is not valid.

About this tool

JSON is the common text format for API payloads and configuration. It is easy to read when indented, and easy to break with one missing comma or a trailing comma.

Paste JSON to format it with two spaces, minify it for transport, or check it and read the error. Copy or download the result. The text is parsed in your browser and never uploaded.

Worked example

The object {"a":1,"b":2} formats with two-space indentation and one key per line, and minifies back to the same single line.

Common searches