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.

Workspace

Repair JSON locally

Runs locally in your browser. Plain code, no AI model. Your text is not uploaded, saved, or shared.
0 characters

Repairs as you type. Code fences and text around the JSON are handled for you.

Your repaired JSON will appear here.

Paste an AI reply to extract and repair its JSON.

Ready when you are.

A quick guide

Valid JSON in three steps

  1. 01
    Paste the reply

    The whole answer is fine. The JSON is found inside code fences or surrounding text.

  2. 02
    Review the fixes

    Every change is listed with its line and column. A warning appears if the output was cut off.

  3. 03
    Copy the JSON

    Choose 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.