JSON Repairer
Fix broken JSON automatically: trailing commas, single quotes, unquoted keys, comments, and more. Repair and validate instantly. Free, 100% in your browser.
Reference
What is a JSON repairer?
A JSON repairer automatically detects and fixes common syntax errors in JSON data that would otherwise cause parsing failures. Unlike a JSON validator which only reports errors, this tool actively corrects the issues and produces valid, parseable JSON. It handles the most frequent mistakes made when writing JSON by hand, copying from logs, or extracting from non-standard APIs.
What it fixes
Trailing commas — removes commas after the last item in arrays and objects. Single quotes — converts single-quoted strings to double quotes. Unquoted keys — adds double quotes around object property names. Comments — strips single-line (//) and multi-line (/* */) comments. Missing commas — inserts commas between adjacent values. Unescaped characters — escapes control characters and special characters within strings. Truncated JSON — closes unclosed brackets, braces, and strings.
Common use cases
API debugging — fix malformed JSON responses from APIs or logs. Configuration files — repair JSON config files that use comments or trailing commas (like tsconfig.json). Data migration — clean up JSON exported from databases or spreadsheets. Copy-paste errors — fix JSON broken by copying from documentation or chat messages. Log parsing — recover structured data from malformed log entries.
Privacy
All processing runs 100% in your browser. No data is sent to any server — your JSON never leaves your device.