JSON Formatter

Prettify minified or unformatted JSON with consistent 2-space indentation, making it easy to read, review, and diff. A syntax check runs first so you always get valid output — or a clear error if the input is malformed. Use the minify button to go the other direction and produce compact, whitespace-free JSON.

All processing happens in your browser. No data is sent to any server.

Frequently Asked Questions

What does the JSON formatter do?
It takes any valid JSON and re-indents it with consistent spacing so it is easier to read, review, and diff.
What indentation level does it use?
Two-space indentation by default, matching the most common convention. A four-space option is also available.
Can it also minify JSON?
Yes — use the Minify button to produce compact, whitespace-free JSON, or use the dedicated JSON Minifier tool.

Related Tools