JSON Formatter
Format, beautify and minify JSON with custom indentation.
Find out whether your JSON is valid and, if not, exactly where it breaks.
Runs in your browser. Your input is never uploaded.
Paste JSON into the editor.
Validation runs as you type; the status banner shows valid or invalid.
For errors, read the line/column and the highlighted context snippet.
Input
{"a": 1, "b": 2,}Output
Invalid: Unexpected token } at line 1, column 17Format, beautify and minify JSON with custom indentation.
Convert arrays of JSON objects to CSV, flattening nested data.
Format, minify and well-formedness-check XML.
No. It checks syntax only: whether the text is well-formed JSON per RFC 8259.
The JSON standard does not allow comments. Remove them or use a format such as JSONC for config files.
No. Strings and keys must use double quotes.
Learn what JSON is, its syntax rules, data types, common mistakes and how to read and write it in JavaScript and Python.
Step-by-step guide to formatting, beautifying and minifying JSON online, plus how to read and fix the most common JSON syntax errors.
Paste JSON above. Validation runs instantly in your browser.