RealJSON
Try now

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

Automatic JSON Repair

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.

What Gets Fixed

Trailing Commas

Commas before closing ] or } are valid in JavaScript but invalid in JSON. They're stripped automatically.

Single Quotes

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.

Unquoted Keys

Object keys must be quoted strings in JSON. Bare keys like { name: "Jane" } are automatically wrapped in double quotes.

Python Literals

Python's True, False, and None are converted to JSON's true, false, and null. Useful when pasting output from Python's print(dict).

JavaScript Comments

Single-line // comments and block /* comments */ are stripped before parsing.

Related Tools

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 →