JSON Repair client-side
?
How to use JSON Repair

The JSON repair tool automatically fixes an invalid JSON document, then reformats it cleanly. It tackles the most common issues: trailing commas before a brace or bracket, single quotes instead of double, unquoted keys, // and /* */ comments, and values from other languages such as True, False or None (Python). It's ideal for recovering an AI model's output, a malformed config file or a rough copy-paste. The repair scans the text character by character with string awareness: the contents of your strings (which may contain commas, colons or braces) are never changed by mistake. If the result is still invalid, the tool shows the best-effort repair and the exact parser error. Everything happens in your browser.

Fix broken JSON and reformat it.

JSONRepairFixData

How to use JSON Repair

The JSON repair tool automatically fixes an invalid JSON document, then reformats it cleanly. It tackles the most common issues: trailing commas before a brace or bracket, single quotes instead of double, unquoted keys, // and /* */ comments, and values from other languages such as True, False or None (Python). It's ideal for recovering an AI model's output, a malformed config file or a rough copy-paste. The repair scans the text character by character with string awareness: the contents of your strings (which may contain commas, colons or braces) are never changed by mistake. If the result is still invalid, the tool shows the best-effort repair and the exact parser error. Everything happens in your browser.

Frequently asked questions

Which errors are fixed?

Trailing commas, single quotes, unquoted keys, // and /* */ comments, and the literals True/False/None, NaN, undefined.

Can my string contents be altered?

No. The repair is string-aware: a comma or colon inside a text value is preserved as-is.

What if the JSON is still invalid?

The tool shows the best-effort repair plus the exact parser error message to help you finish fixing it by hand.