Home / Tools / JSON Repair

CSV & data

JSON Repair

Repair broken or incomplete JSON, including output from language models.

For AI agents: a plain list of every tool, with buy and free links, is in llms.txt.

About $1 per 1,000 documents.

Runs the real Python tool in your browser

Try it here: repair broken JSON

Paste broken JSON, like a cut-off answer from an AI model. You get valid JSON back.

The first run downloads Python for your browser (about 7 MB, once). After that it is fast. Your text never leaves this page.

Result

Press Run (or Ctrl + Enter).

Same as running json-repair-lite broken.json

Free lite tool. It uses the open source json-repair library (MIT).

Run it on your computer

pipx install json-repair-lite
json-repair-lite broken.json

Want the full version?

Free downloads: Free lite: GitHub.

JSON Repair — Repair broken or incomplete JSON, including output from language models.

Paste JSON that is missing quotes or has a trailing comma, and get valid JSON back. Already-valid JSON is left alone. It runs offline. No API key is needed.

What it does

  • Repairs broken or incomplete JSON, including common model output.
  • Can also repair JSON Lines, one document per line.
  • Includes a free MCP server for AI apps. No API key is needed.
  • This is a repair step, not a language model. Some text cannot be repaired.

Before and after

Not valid JSON

{name: 'Ada', ok: true, trailing: 'comma',}

Repaired JSON

{"name": "Ada", "ok": true, "trailing": "comma"}

From json-repair-lite/README.md.

Get it

Free lite · GitHub · Free

CLI and MCP server. Install for now with: pip install git+https://github.com/tidybytetools/json-repair-lite. We will switch this to a PyPI install when the package is on PyPI.

Pay per use · Apify · $0.001 per document

Empty or unreadable input is free. The public store page goes live this week.

Use it as an agent skill

The same repair is also a free agent skill for Claude Code, Cursor, and Codex.

FAQ

What does this tool do?

Repair broken or incomplete JSON, including output from language models. Paste JSON that is missing quotes or has a trailing comma, and get valid JSON back. Already-valid JSON is left alone. It runs offline. No API key is needed.

What does it cost?

Free lite on GitHub costs Free. CLI and MCP server. Install for now with: pip install git+https://github.com/tidybytetools/json-repair-lite. We will switch this to a PyPI install when the package is on PyPI. Pay per use on Apify costs $0.001 per document. Empty or unreadable input is free. The public store page goes live this week.

Will you see my files?

The download tools run on your computer, so those files stay with you. The Apify tools run in your own Apify account. This website does not take uploads.

Does the free tool work with AI apps?

Yes. The free lite version includes a small MCP server. You can use it from Cursor, Claude Desktop, and other apps that support MCP. No API key is needed.