JSON Formatter

Pretty-print and minify JSON.

Processed locally in your browser — your files never leave your device.

How to use

  1. 1Paste your JSON.
  2. 2Click Format (pretty) or Minify.
  3. 3Copy or download the result.

Paste JSON to pretty-print it with 2-space indentation or minify it to one line. Invalid input shows the exact parser error with line and column.

Frequently asked questions

What if my JSON is invalid?

The tool shows the parser's error message with the position, so you can find and fix the problem.

Is my data uploaded?

No. Formatting happens entirely in your browser.

Related tools