What is a JSON repair tool?
A JSON repair tool (or JSON fixer) takes malformed JSON and rewrites it into strictly-valid JSON. Real-world JSON is often broken: copied from a Python dict, hand-edited with a stray comma, generated by an LLM that added comments, or truncated by a log limit. Instead of hunting for the bad character by hand, paste it here and get a clean, parseable result, formatted and ready to use. It all runs in your browser, so even payloads with secrets stay on your machine.
Repair vs. validate
These are opposite jobs. Repair rewrites non-standard input into valid JSON. Use it to fix and move on. The JSON Validator is strict on purpose: it tells you exactly where and why JSON is invalid without changing it. Use it to catch problems before shipping. A common flow is to validate, see the error, then repair.
How to use
- Paste broken, truncated, or non-standard JSON into the Input pane.
- The repaired, strictly-valid JSON appears instantly in the Output pane, pretty-printed.
- Common problems are fixed automatically: single quotes, trailing commas, comments, unquoted keys, Python-style
True/False/None, and missing brackets. - Copy the fixed JSON; it passes
JSON.parseand strict validators. - Runs 100% in your browser; nothing is uploaded.
Examples
Single quotes + trailing comma + Python literals
{ 'name': 'api', 'active': True, 'tags': ['a', 'b',], }{
"name": "api",
"active": true,
"tags": [
"a",
"b"
]
}Unquoted keys and comments
{
// config
id: 42,
name: workbench
}{
"id": 42,
"name": "workbench"
}Truncated / missing brackets closed
{"a":1,"b":[1,2,3{
"a": 1,
"b": [
1,
2,
3
]
}FAQ
What does the JSON repair tool fix?
Single quotes → double quotes, unquoted object keys, trailing commas, // and /* */ comments, Python-style True/False/None, smart/curly quotes, and missing or unbalanced brackets and braces. It reconstructs the most likely valid JSON and pretty-prints it.
How do I fix "Unexpected end of JSON input"?
That error means the JSON is truncated: a bracket or quote is never closed. Paste it here and the repairer closes the open structures to produce valid JSON. Then check the result matches what you expected.
Is the repaired JSON guaranteed correct?
It's guaranteed to be valid JSON (it parses). Because repair infers intent, always sanity-check the output for badly truncated or ambiguous input; the tool picks the most likely fix, not necessarily the one you meant.
Does it work on LLM / ChatGPT output?
Yes. Model output often has trailing commas, comments, or gets cut off mid-response, all common repair cases. Paste it and get clean JSON back.
Is my data uploaded?
No. Repair runs entirely in your browser. Open DevTools → Network: zero requests after load. Nothing is stored.