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
In short: A JSON repair tool automatically detects and fixes common syntax problems — trailing commas, single quotes, unquoted keys, Python literals like True/False/None, and JS-style comments — that would otherwise make JSON fail to parse. RealJSON's repair tool fixes these in your browser and shows you a summary of exactly what it changed.
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.
Paste the broken JSON into the repair tool. It automatically corrects common problems — trailing commas, single quotes, unquoted keys, Python literals, and JS-style comments — and shows a summary of what it changed.
Yes. Python's True, False, and None are converted to JSON's true, false, and null, and single-quoted strings become double-quoted — common when pasting the output of print(dict).
Yes. Single-line // comments and block /* comments */ — valid in JavaScript object literals (JSONC) but not in standard JSON — are stripped before parsing.
Trailing commas before closing brackets or braces are removed, and bare object keys like { name: "Jane" } are wrapped in double quotes to become { "name": "Jane" }.
No. The repair logic runs entirely in your browser using JavaScript — your data is never sent to any server.
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