JSON Repair

Repair common JSON syntax problems locally, review every applied change, and compare the original with valid parsed output.

Runs entirely in your browser. Nothing you type is uploaded.

About this tool

Paste malformed JSON to fix a conservative set of syntax problems such as trailing commas, comments, single quotes, and Python literals. Review the applied repairs and line diff; output is shown only after JSON.parse accepts it.

Questions & answers

What kinds of JSON problems can this tool repair?
It handles one JSON code fence, surrounding prose, comments, trailing or duplicate commas, single-quoted strings, unquoted keys, and Python True, False, or None values.
Can JSON Repair change the meaning of my data?
The repair passes only change recognized syntax patterns and never invent a missing value. Always review the applied-repair list and diff before using the result.
Will this tool return JSON that still does not parse?
No. The candidate is parsed again with JSON.parse, and a parser error is shown instead of repaired output if validation still fails.

Related tools

Back to all Mini Tools