JSON Formatter, Validator and Minifier

Ln: 1 Col: 1

Output
Ln: 1 Col: 1

About this tool

Paste your JSON on the left and press Format / Beautify to get clean, indented output, Minify / Compact to remove whitespace, or Validate to check the syntax. If the JSON is invalid, the Error button and message show the line and column and take you to the problem.

Features

Frequently asked questions

How do I validate JSON online?

Paste the JSON and press Validate. A green Success button means the syntax is valid. A red Error button shows what is wrong and where.

What is the difference between format and minify?

Format adds line breaks and indentation so people can read the JSON. Minify removes all unnecessary whitespace so the file is as small as possible.

Does the formatter change my data?

No. Keys, values and their order stay the same. Only whitespace changes. Very large or very small numbers are written in their standard JSON form.

Before saving, scripts, runnable fragments and control characters are removed and the code is minified. Saved codes are shown beautified. Using a name you already saved replaces that code.