JSON Fixer
Paste broken JSON and automatically fix common issues: trailing commas, unquoted keys, single quotes, comments, missing brackets, JS literals, and more. See exactly what was fixed.
Features
- Auto-fix trailing commas and missing brackets
- Convert single quotes to double quotes
- Add quotes to unquoted object keys
- Strip JS-style comments (line and block)
- Replace undefined/NaN/Infinity with null
- See exactly which fixes were applied
Frequently Asked Questions
- What JSON errors can this tool fix?
- It fixes trailing commas, unquoted keys, single quotes, JS-style comments, missing closing brackets, undefined/NaN/Infinity literals, and trailing garbage after valid JSON.
- What if the JSON is too broken to fix?
- If the tool cannot repair the input, it will show an error and list any partial fixes it attempted. You may need to fix the remaining issues manually.
- Does it preserve my data?
- Yes. The fixer only makes structural repairs (quotes, commas, brackets). Your actual data values are never modified.