Skip to main content
HandyWeb

JSON Formatter and Validator

Pretty-print or minify JSON, or find its errors with the line and column.

Runs on your device.

Action
Indent
0 characters0 bytes
0 characters0 bytes

How to Use It

  1. Paste your JSON into the input box.
  2. Choose Format to make it readable, Minify to make it small, or Validate to check it.
  3. If the JSON is invalid, the line and column of the error appear. Fix it, then copy the output.

Questions and Answers

Why is a trailing comma an error?

The JSON standard does not allow a comma after the last item of an array or object, even though JavaScript does.

Good to Know

JavaScript cannot keep integers larger than 2 to the power of 53 exactly. The tool marks such numbers. If a key appears twice, only the last value stays in the output.

Source code of this toolReport a problem on GitHub