JSON Repair

Repair broken JSON in your browser: trailing commas, unquoted keys, single quotes, missing commas and stray values are fixed and re-validated. Nothing is uploaded.

Broken JSON
Repaired output

What this JSON repair tool does

Fix broken or malformed JSON in your browser. Trailing commas, unquoted keys, single quotes, missing commas, unterminated strings and stray values are repaired automatically and returned as valid JSON. Nothing is uploaded.

How it works

1. Check. Your input is parsed with a strict, RFC 8259-compliant parser. Already-valid JSON is formatted as-is.
2. Repair. If parsing fails, a tolerant parser fixes the common mistakes: it adds missing quotes around keys and strings, replaces single quotes, drops trailing commas, inserts missing commas, and turns stray values like undefined or NaN into valid JSON.
3. Re-validate. The repaired text is parsed again with the strict parser, so the result is guaranteed valid JSON.
4. Done locally. Your data never leaves the page.

Updated 2026-08-07 · Runs in your browser — your data never leaves this page.