AI tools / JSON
AI JSON Repair
Paste a whole chatbot reply or almost-JSON. Get back valid JSON, with every fix listed, including output that was cut off mid-answer.
A quick guide
Valid JSON in three steps
- 01
Paste the replyThe whole answer is fine. The JSON is found inside code fences or surrounding text.
- 02
Review the fixesEvery change is listed with its line and column. A warning appears if the output was cut off.
- 03
Copy the JSONChoose pretty or minified, then copy or download it as a .json file.
Example
Almost-JSON in, JSON out
{name: 'Ada', tags: ["a" "b",], ok: True} // done
{"name": "Ada", "tags": ["a", "b"], "ok": true}
Unquoted keys, single quotes, a missing comma, a trailing comma, a Python literal, and a comment, fixed in one pass.
Good to know
Frequently asked questions
Does this use AI to fix the JSON?
No. It's a parser that knows the mistakes AI models make, so it's instant, free, and gives the same result every time. It never rewrites your values.
What happens when the output was cut off?
Open strings and brackets are closed, and any value that was only partly written is dropped rather than guessed. A warning tells you data is missing, so ask the model to continue or raise its output limit.
Will it change my numbers or key order?
No. Numbers keep their exact digits, even IDs too large for JavaScript, and keys stay in their original order. Only formatting mistakes are changed, and each one is listed.
What can't it fix?
Text that isn't JSON-like at all, such as prose in the middle of an object. You'll see exactly where it stopped so you can fix that spot by hand.
How do I stop models producing broken JSON?
Use the model's structured output or JSON mode with a schema when your API supports it, and give an example of the exact shape you want. This tool is the safety net for everything else.