Manipulation Tools

JSON Repair Tool

Automatically fix broken JSON — trailing commas, single quotes, unquoted keys, and other common mistakes.

What does this tool do?

Automatically fix broken JSON — trailing commas, single quotes, unquoted keys, and other common mistakes. Everything runs locally using JavaScript in your browser — nothing you paste or upload is ever sent to a server.

How to use this tool

  1. Paste your broken json into the left-hand box.
  2. Click Repair JSON.
  3. Copy the repaired json from the output box.

Frequently asked questions

What kinds of mistakes can it fix?

Trailing commas, single-quoted strings, unquoted object keys, missing commas or brackets, JavaScript-style comments, and a number of other common JSON authoring mistakes.

Will it always be able to fix my JSON?

No — if the input is too badly malformed or ambiguous to interpret, the tool reports an error instead of guessing at the wrong structure.

What library powers this tool?

It uses the open-source jsonrepair library, which runs entirely in your browser — nothing you paste is sent to a server.