JSON Repair
Automatically fix broken JSON — trailing commas, unquoted keys, comments, and more
Broken JSON
Repaired JSON
Related Tools
Frequently Asked Questions
The tool fixes missing closing brackets and braces, trailing commas, single quotes instead of double quotes, unquoted property names, missing commas, comments (// and /* */), and truncated JSON. It can often reconstruct valid JSON from partially broken input.
The tool uses a parser that understands common JSON mistakes. It reads the input character by character, identifies structural problems, and applies the minimal fixes needed to produce valid JSON while preserving your original data.
In many cases, yes. If your JSON was cut off mid-stream (like a network timeout), the tool can close open strings, arrays, and objects to produce valid JSON. Some truncated data will obviously be lost.
The tool makes minimal changes — only what's needed to make the JSON valid. It preserves all your values, keys, and structure. The fixes applied are listed so you can review exactly what changed.