format · validate · convert · runs locally

JSON Repair

Paste broken JSON and get valid JSON back. Fixes trailing commas, single quotes, unquoted keys, and comments, then re-formats. Runs in your browser.

Frequently asked questions

What can it fix?

Trailing commas, single-quoted strings and keys, unquoted object keys, and // or /* */ comments — then it re-parses and pretty-prints.

What if it cannot be repaired?

If the input is too malformed to parse after the fixes, it reports the remaining error so you can fix it by hand.