JSON Repair — Fix Broken JSON
Paste broken JSON and get it fixed automatically. Handles trailing commas, single quotes, Python literals, unquoted keys, and JS comments.
Broken JSON
Repaired JSON
Fixes applied
Paste broken JSON and get it fixed automatically. Handles trailing commas, single quotes, Python literals, unquoted keys, and JS comments.
Broken JSON
Repaired JSON
Fixes applied
JSON is strict — a single trailing comma or unquoted key breaks the whole document. This tool automatically detects and corrects the most common JSON errors so you don't have to hunt them down manually.
Commas before closing ] or } are valid in JavaScript but invalid in JSON. They're stripped automatically.
JSON requires double quotes. Single-quoted strings and keys (common when hand-editing or copy-pasting from JavaScript) are converted to their double-quoted equivalents.
Object keys must be quoted strings in JSON. Bare keys like { name: "Jane" } are automatically wrapped in double quotes.
Python's True, False, and None are converted to JSON's true, false, and null. Useful when pasting output from Python's print(dict).
Single-line // comments and block /* comments */ are stripped before parsing.
After repairing, use the JSON Validator to confirm the output is fully valid, or the JSON Formatter to pretty-print it.
Browse all free JSON tools →
Related tools