JSON Repair / Auto-fixer
Auto-fix broken JSON: quotes, trailing commas, comments, and more.
Broken JSON
Repaired JSON
Fixes applied
- Removed // line comments
- Converted single-quoted strings to double-quoted
- Added quotes around unquoted object keys
- Replaced NaN/undefined/Infinity with null
- Removed trailing commas
- Added missing closing brackets/braces
About the JSON Repair / Auto-fixer
Repair malformed JSON produced by hand-editing or logging by tolerantly fixing single quotes, unquoted keys, trailing commas, comments, smart quotes, NaN/undefined, and missing brackets. See exactly which fixes were applied.
Examples
Trailing comma & single quotes
{'a': 1, 'b': 2,}Output
{
"a": 1,
"b": 2
}Related tools
JSON Compare
JSON
Diff two JSON documents and list added, removed, and changed paths.
JSON Formatter
JSON
Pretty-print and beautify JSON with custom indentation.
JSON Key Sorter
JSON
Sort JSON object keys alphabetically, naturally, or by array field.
JSON Merger
JSON
Merge two or more JSON documents with shallow/deep strategies.
JSON Minifier
JSON
Compress JSON by removing whitespace and show bytes saved.
JSON String Escape
JSON
Escape special characters for use inside a JSON string.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-10 · Runs entirely in your browser