JSON Repair.
Fix broken and AI-generated JSON in one click — trailing commas, single
quotes, Python True/None, comments, smart quotes, and
unbalanced braces. See a log of every fix. 100% private, in your browser.
No signup · No uploads · No file-size cap
Repaired JSON
// Paste broken JSON and press “Repair JSON”. Repair JSON online - fix broken JSON privately
A JSON repair tool turns almost-valid text into valid JSON. Paste broken JSON above to fix trailing commas, single quotes, unquoted keys, comments, Python values, smart quotes, and broken AI-generated JSON. The tool validates the output and keeps the whole process client-side.
Built for invalid JSON and LLM JSON
Many AI tools return JSON inside Markdown fences or with small syntax mistakes. This fix JSON workflow removes those wrappers, repairs common syntax issues, and shows what changed so you can review the result before using it in an app, API call, or config file.
Why use this JSON fixer?
It is private, fast, and transparent. After repairing, you can format the JSON, validate the JSON, or compare it with the original. For a deeper walkthrough, read how to repair JSON.
FAQ
JSON repair, answered.
How do I repair JSON online? +
Paste broken JSON into the repair tool and press Repair JSON. It fixes common JSON syntax problems, validates the repaired output, and shows a log of what changed. The repaired JSON can then be copied or downloaded.
What JSON errors can this tool fix? +
It can fix many almost-JSON problems: trailing commas, single quotes, unquoted keys, comments, smart quotes, Markdown code fences, Python True/False/None, and some unbalanced braces or brackets.
Can it fix AI-generated or LLM JSON? +
Yes. AI-generated JSON often includes code fences, extra comments, Python-style values, trailing commas, or missing closing braces. This JSON repair tool is designed to clean those common LLM JSON issues and produce valid JSON.
What is the difference between JSON repair and JSON validation? +
A JSON validator tells you whether the input is valid and where it breaks. A JSON repair tool tries to turn invalid or broken JSON into valid JSON. The best workflow is to repair first, review the repair log, then validate the final output.
Does the repair log show what changed? +
Yes. The tool shows a repair log so you can see the fixes applied, such as removing trailing commas, converting Python values, or stripping comments. That makes it safer than tools that silently rewrite your data.
Is my broken JSON uploaded to a server? +
No. JSON repair happens 100% in your browser. Your input and repaired output are never uploaded, stored, logged, or seen by any server.