JSON Repair

Repair common JSON syntax problems and review the changes before reusing the data.

Data & Formats
Preparing your workspace…
Input
Output
Your result will appear here.

How to use

  1. Paste the source, open a UTF-8 file or try the Sample.
  2. Select Repair JSON and inspect the highlighted changes.
  3. Review the result, then copy a selection or download the complete text.

JSON Repair

Paste a broken JSON-like document and select Repair JSON. The original stays in the input editor; the result is validated as strict JSON and formatted without rounding numeric tokens.

Processing stays in your browser. DevToolsy does not receive the pasted data or selected file.

Input and processing

Missing quotes or commas, single-quoted strings and some truncated documents can be repaired. Review the highlighted additions and removals, which also include formatting changes.

Worked example
Input
{name: 'Ada', id: 9007199254740993, active: True,}
Output
{
  "name": "Ada",
  "id": 9007199254740993,
  "active": true
}

This example uses the default settings.

Result and limitations

A repair algorithm can infer values or discard unsupported fragments. It cannot know what the author intended. Duplicate keys are rejected rather than silently choosing a value.

Using the output

Review the result, then copy a selection or download the complete text.

Processing limits

UTF-8 input up to 1 MiB; output up to 8 MiB. Processing stops after 30 seconds.

?

Frequently asked questions

What can JSON Repair fix?

Paste a broken JSON-like document and select Repair JSON. The original stays in the input editor; the result is validated as strict JSON and formatted without rounding numeric tokens.

How can I review the changes?

Missing quotes or commas, single-quoted strings and some truncated documents can be repaired. Review the highlighted additions and removals, which also include formatting changes.

Does a successful repair recover the original meaning?

A repair algorithm can infer values or discard unsupported fragments. It cannot know what the author intended. Duplicate keys are rejected rather than silently choosing a value.

Is the input uploaded?

Processing stays in your browser. DevToolsy does not receive the pasted data or selected file.

Can I keep the result?

Review the result, then copy a selection or download the complete text.

Find your next tool

Language

Switch language? Your current work will be cleared. Copy or download it first.