JSON Repair Tool

Automatically fix common JSON issues. Perfect for cleaning up LLM outputs, copy-pasted code, or hand-edited configuration files.

Try an example:
Broken JSON 0 chars
Repaired JSON

Common Issues We Fix

A sample of JSON patterns this tool automatically detects and corrects.

Trailing commas

{"a": 1,} {"a": 1}

Single quotes

{'a': 1} {"a": 1}

Unquoted keys

{a: 1} {"a": 1}

Missing commas

{"a": 1 "b": 2} {"a": 1, "b": 2}

Comments

{"a": 1} // note {"a": 1}

Truncated JSON

{"a": [1, 2 {"a": [1, 2]}
Your browser does not support ES modules.
Please use a modern browser.