JSON Formatter

Validate and format JSON with readable indentation.

JSON Formatter

Results will appear here.

How to use this tool

Paste JSON, select indentation, and format or minify it.

How it works

Native JSON parsing validates the input. Serialization writes the result with the requested indent.

Example

Format {"a":[1,2]} to place each array item on a separate line.

Frequently asked questions

Does JSON support comments?

Standard JSON syntax does not include comments or trailing commas.

Reference

RFC 8259 JSON specification

Find a tool