Broken JSON Input
Repaired JSON Output
How JSON repair works
When you enter invalid JSON, the system tries these methods in order:
Paste Invalid JSON to Repair It
Enter broken JSON or import a file to begin recovery.
When you enter invalid JSON, the system tries these methods in order:
Paste Invalid JSON to Repair It
Enter broken JSON or import a file to begin recovery.
Automatic repair fixes common JSON syntax damage locally before you spend time editing by hand.
AI repair provides a second recovery pass when automatic repair cannot resolve a complex or ambiguous payload.
Keep the original input visible so you can review the repaired structure before reuse.
JSON Repair gives broken JSON an automatic first pass, then can use AI-assisted repair for inputs that need more context than deterministic syntax cleanup can provide. It helps you move from a damaged API response, log fragment, hand-written configuration, or legacy export to a document you can inspect and validate, without pretending that either repair method can know missing business context.
JSON Repair starts with local, deterministic repair methods for high-confidence syntax problems. That includes common JavaScript-style JSON mistakes such as mixed quotes, comments, and a trailing comma after the last property or array item.
Complex or ambiguous inputs may use a configured AI provider only after local repair cannot recover them. A repaired document can be valid JSON while still differing from the intended data, so always compare important fields, nesting, and array contents with the source before you rely on it.
JSON Repair can often correct unquoted keys, single quotes, missing or trailing commas, comments, unclosed objects or arrays, mismatched brackets, and damaged escape sequences. These are syntax-level problems where the surrounding text still gives the tool enough structure to work with.
It cannot reliably recreate a large missing section, identify an omitted business value, or decide which of two conflicting values was intended. Heavily truncated logs, mixed prose and data, and domain-specific fields should receive a manual review even when the repaired output parses successfully.
JSON Repair attempts to produce a parseable document; JSON Validator tells you where syntax is wrong and shows relevant warnings. Use repair when you need a recovery attempt, and use validation when you need an exact diagnosis or confirmation that the recovered document is valid.
After any automatic repair, check the repaired JSON before sending it to an API, saving it as configuration, or exporting it to another format.
Start by comparing top-level keys, array lengths, identifiers, and values that drive business behavior. In a nested payload, open the branches around the original damage instead of assuming that a valid closing bracket proves every inner field is correct.
JSON Repair is most useful when it saves you from mechanical syntax cleanup. It is not a substitute for source data, a schema, or a domain review when correctness depends on information that was never present in the broken input.
Reference demo
This damaged API fragment has an unquoted key, single quotes, and a trailing comma. Automatic repair produces a parseable JSON document that still needs a human review.
Automatic repair can correct syntax, but it cannot confirm whether the original values or omitted context were intended.
Reference demo
A copied log fragment can include JavaScript-style comments, unquoted keys, a trailing comma, and a missing closing brace. The local repair pass handles these common syntax patterns first.
Compare the repaired fields against the original log or source before you reuse the result.
Reference demo
When automatic repair cannot confidently recover an irregular fragment, the AI-assisted fallback can propose a parseable interpretation for review.
This proposal treats the bare terms and date as strings. Verify that interpretation against the source before using it.
After validation, use the Formatter to format the recovered JSON or the Table Editor to inspect it in a JSON table.
The tool starts with local repair methods, including JSONRepair and rule-based fixes. It only falls back to AI when local repair cannot recover a complex or ambiguous structure.
It can often repair unquoted keys, single quotes, missing or trailing commas, comments, unclosed arrays or objects, mismatched brackets, and damaged escape sequences.
AI repair is only considered after local methods fail on a complex or heavily damaged input. It can help with nested, truncated, or mixed semi-structured text, but cannot recover business meaning that is absent from the source.
Local repair runs in the browser. If local repair cannot resolve a complex input and the AI fallback is used, the payload is sent to the configured AI provider for processing; review whether that is appropriate for your data.
No. Repair can recover common syntax damage, but large missing sections, severe truncation, or values whose meaning depends on outside context may need manual correction.
No. You can use the built-in repair flow without supplying an API key.
Yes. Validate the result after repair, then review important fields and nested structure before using it in an API, export, or production configuration.
Use manual fixes when key sections are missing, the recovered structure does not match the source intent, or the data needs domain-specific decisions that an automatic repair cannot make.