Toolvetta

JSON Formatter & Validator

A JSON formatter makes minified or messy JSON readable by adding indentation and line breaks. Paste your JSON, then choose Format to pretty-print it, Validate to check it, or Minify to remove whitespace.

Runs in your browser. Your files and text are not uploaded.

How to use JSON Formatter & Validator

  1. Paste your JSON into the input panel.
  2. Choose indentation: 2 spaces, 4 spaces or tab.
  3. Select Format, Validate or Minify.
  4. Copy or download the result.

Frequently asked questions

How do I format JSON online?

Paste the JSON and select Format. The output panel shows it indented and ready to copy.

How do I find an error in my JSON?

Select Validate. If the JSON is invalid, the message names the problem and shows the line and column when the browser reports them.

What is the difference between format and minify?

Format adds indentation for reading. Minify removes spaces and line breaks to make the JSON as small as possible.

Is my JSON sent to a server?

No. The JSON is parsed in your browser and is not sent anywhere by this page.

Related tools