JSON Formatter and Validator
Pretty-print or minify JSON, or find its errors with the line and column.
Runs on your device.
0 characters0 bytes
0 characters0 bytes
How to Use It
- Paste your JSON into the input box.
- Choose Format to make it readable, Minify to make it small, or Validate to check it.
- 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.