JSONFix.tech — JSON Repair Tools

Repair Malformed JSON Automatically

Stop manually fixing JSON. Paste malformed JSON, click one button, get perfect JSON back with an explanation of every change.

Repair My JSON Now

What Makes JSON "Malformed"?

JSON (JavaScript Object Notation) is strict. Unlike JavaScript itself, JSON does not permit: trailing commas, single-quoted strings, unquoted keys, comments, or non-standard literal values like undefined. A single violation causes JSON.parse() to throw a SyntaxError.

Malformed JSON typically comes from: AI model output, hand-edited config files, JavaScript object literals pasted into JSON context, API responses from poorly implemented servers, or truncated streams.

All Error Types JSONFix.tech Repairs

Trailing commas
Removes commas before } and ] that break strict parsers.
Unquoted keys
Adds double quotes around unquoted object keys.
Single-quoted strings
Converts 'single' quotes to "double" quotes.
JavaScript comments
Strips // line comments and /* block comments */.
Markdown code fences
Removes ```json and ``` wrappers from LLM output.
Truncated JSON
Closes unclosed braces and brackets from cut-off responses.
JS values
Replaces undefined, NaN, Infinity with JSON-legal null.
Missing commas
Inserts missing separators between properties.

The jsonrepair Engine + AI Layer

JSONFix.tech is built on top of the battle-tested jsonrepair library (2.5M npm downloads/week), extended with a custom pre-processing layer that handles LLM-specific issues before the core repair runs.

After repair, Claude Haiku analyses what changed and generates a plain-English explanation — so you understand the root cause, not just the fix.

Repair Any Malformed JSON — Free

No sign-up. Works with JSON from any source.

Open JSONFix.tech →