Fixes broken JSON: unquoted keys, trailing commas, single quotes.
JSON Repair fixes broken or invalid JSON and returns clean, pretty-printed output. It automatically corrects common mistakes like unquoted keys, trailing commas, and single quotes, then re-formats the result with 2-space indentation. It is useful when you paste in malformed JSON from a log, an API response, or a config file and need valid JSON back quickly.
No. JSON Repair runs entirely in your browser and nothing is uploaded. Your input never leaves your device.
It repairs common JSON mistakes such as unquoted keys, trailing commas, and single quotes used instead of double quotes. After repairing, it parses the result and re-formats it as valid, indented JSON.
The repaired JSON is pretty-printed with 2-space indentation. Even if your input was minified or messy, the output is consistently formatted.
If the input cannot be repaired into valid JSON that parses, the tool reports an error instead of returning output. In that case you will need to fix the structural problems manually.
No. It only fixes the JSON syntax so it becomes valid; the keys and values themselves are preserved, just reformatted.