JSON formatter

Format, validate and minify JSON, with clear error messages.

How it works

Paste your JSON and choose Format to indent it or Minify to remove spaces. If the JSON is invalid, the error and its position are shown. Nothing leaves your browser.

Frequently asked questions

Is this tool free?

Yes. It’s free to use, with no account and nothing to install.

Is my data private?

Yes. This tool works entirely on your device: nothing you enter or open is sent to a server.

Does it work on a phone?

Yes. It works in the browser of any recent phone, tablet or computer.