Tool Kumar tool
JSON repair
Paste broken JSON to see what is wrong and a repaired version beside it. Tool Kumar marks each problem with its line and column, and Repair input applies all the fixes in one step you can undo.
How to use this tool
- Paste the broken JSON or open the file.
- The banner counts the fixable issues and names the first one with its line and column, and the editor underlines each one.
- Check the repaired document in the Format view, then choose Repair input to apply it. Ctrl+Z undoes it.
Worked example
This sample mixes common mistakes: a comment, unquoted keys, single quotes, Python True and None, a trailing comma, a missing comma and NaN. The output is the repaired document.
Input
{
// account settings
name: 'Ada',
active: True,
plan: None,
tags: ['json', 'tools',],
limits: {"daily": 100 "monthly": 3000},
ratio: NaN
}Output
{
"name": "Ada",
"active": true,
"plan": null,
"tags": [
"json",
"tools"
],
"limits": {
"daily": 100,
"monthly": 3000
},
"ratio": null
}Options and edge cases
- Fixes comments, unquoted keys, single-quoted strings, trailing commas, missing commas between properties, Python True, False and None, and Markdown code fences around pasted JSON.
- NaN and Infinity have no JSON form, so they become null. Check the output when those values matter.
- Some input cannot be repaired, such as a string with no closing quote. The banner then reports an error and its location instead.
- Repair keeps the digits of your numbers and the order of your keys.
Private by default
Your document stays in this browser. Tool Kumar parses, converts and creates downloads on your device, with no account or upload step.
JSON repair questions
- How do I fix broken JSON?
- Paste it here. Tool Kumar marks each problem and shows a repaired version. Choose Repair input to apply every fix at once, or edit the input by hand.
- Can every JSON error be repaired?
- No. Slips such as quotes, commas and comments are fixed automatically. Missing text, such as a string cut off before its closing quote, has to be fixed by hand.
- Does repair change my values?
- Values stay the same, except NaN and Infinity, which JSON cannot represent and which become null. Review the output before you use it.