Skip to content

JSON Repair Tool

Automatically fix common syntax errors like trailing commas or missing quotes.

Broken JSON

Repaired Result

About the JSON Repair

Paste malformed JSON, such as output from a log, an LLM or a JavaScript object literal, and get valid JSON back. Common mistakes are fixed automatically and every change is listed.

How to use it

  1. Paste the broken JSON or upload a file.
  2. Review the audit log: each fix shows its line, what changed, and where it is in the highlighted result.
  3. Copy or download the repaired JSON, or press Repair to replace your input. Untick any repair rule you don't want applied.

Frequently asked questions

What can JSON Repair fix?

Trailing and missing commas, single, smart and backtick quotes, unquoted keys and values, comments, Python-style True/False/None, NaN and undefined, missing brackets, unescaped quotes, line breaks and backslashes inside strings, markdown code fences and text around JSON (as in AI answers), JavaScript assignments, JSONP and MongoDB wrappers like ObjectId() and ISODate().

Can it fix JSON copied from ChatGPT or another AI?

Yes. It removes the ``` code block and any explanation around the JSON, then fixes the usual mistakes inside it, such as trailing commas or comments.

Will repairing change my data?

Repair only changes syntax. Review the result, because ambiguous input (such as a truncated file) may need a manual check.

Related tools