JSON Repair
Fix broken JSON by adding missing quotes and brackets and removing extra commas and comments.
Add JSON and click Repair to see the fixed JSON here.
How JSON Repair works
Fixes broken JSON so it becomes valid. It adds missing quotes around keys, turns single quotes into double quotes, closes missing brackets and removes trailing commas and comments. It also changes Python values like None and True into null and true.
The fixed JSON is formatted with the indent you choose: 2 spaces, 4 spaces or a tab. Always check the result before you use it, since the tool has to guess what you meant.
Input to JSON Repair
- Paste or type broken JSON into the input box, or upload a .json, .js or .txt file.
- Good inputs are JSON from logs, JavaScript objects, copied API responses or JSON that was cut short.
Output from JSON Repair
- Valid, indented JSON. Change the indent after repairing and the output updates right away.
- A message tells you if the JSON was fixed or if it was already valid.
- If the JSON is too broken to fix, you see the line and column where the tool got stuck.
- Copy it, download it as fixed.json or open it in full screen.