JSON Validator & Formatter

Validate, format, minify and sort JSON instantly — see exact error position and reason.

JSON

6 chars

Usage guide

Find JSON syntax errors and fix indentation. Comments and single quotes are checked too.

  • Paste JSON into the editor and hit Validate to see error position and reason.
  • Auto format unwraps escaped JSON as you type.
  • Minify = one line, Pretty = indented, Sort = alphabetical keys.

How to use

Paste JSON into the editor and hit Validate. Minify compresses to one line, Pretty adds indentation, Sort orders keys alphabetically.

Frequently asked

Does it show error positions?
Yes — the exact line and reason of the first syntax error is displayed.
Can it fix escaped JSON?
Auto format unwraps escaped strings as you type.
Is my JSON uploaded?
No — everything runs locally in your browser.
JSON validatorJSON formatterJSON lintJSON minifyJSON pretty print

Related tools