Paste the invalid JSON
Use the exact content rejected by your parser so the repair tool can identify common non-standard syntax.
JSON tools
Repair invalid JSON online
The result will appear here after you run the tool.
Press Ctrl or Command and Enter to run the tool.
About this tool
JSON Repair Tool corrects common syntax faults such as trailing commas, comments, single quotes, and unquoted keys by applying conservative transformations and re-validating with JSON.parse. Repair reporting lists each change and all work stays in your browser, limited to 25 MB files.
Paste malformed JSON to apply conservative repairs for common syntax mistakes. The tool displays the repaired result and a change log so you can review what was modified.
Built for daily work
How to use this tool
Use the exact content rejected by your parser so the repair tool can identify common non-standard syntax.
The tool applies conservative transformations and attempts a strict JSON parse after every repair stage.
Compare the repaired output with the original intent before copying or downloading it.
Key features
Each repair is grouped by type: removed comments, stripped trailing commas, converted single quotes, quoted unquoted keys, and replaced invalid values with null.
Repairs target common syntax patterns. The tool cannot guess missing brackets, deleted content, or the intended structure of ambiguous fragments.
Success is reported only when the repaired output passes JSON.parse. If parsing still fails the original errors remain visible for manual fixing.
Input and repaired output are parsed and rewritten entirely in the browser.
Practical use cases
For local tools, input is processed in your browser and is not sent to application analytics.
Data processing noticeTechnical details
Limitations and important notes
Frequently asked questions
No. It handles common syntax patterns but cannot safely infer missing data, complex bracket placement, or the intended meaning of ambiguous text.
It can replace invalid values with null and normalize syntax. Review the change list and compare the result before use.
No. Standard JSON does not support comments, so comments are removed during repair.
No. Treat the repaired output as a draft and validate it against the system that will consume it.
No. The tool can normalize syntax, but it cannot recover data that is missing from the input.
Related guides and solutions
A safe repair process for comments, trailing commas, unquoted keys, single quotes, invalid values, and incomplete structures.
Learn moreValid JSON requires double quoted property names and strings, balanced brackets, supported values, correct escaping, and no trailing commas or comments.
Learn moreA transparent explanation of local tool processing, temporary browser memory, local storage, downloads, analytics boundaries, and cases that require remote services.
Learn moreRelated tools
JSON tools
Format, validate, inspect, search, and analyze JSON in code, tree, table, schema, and statistics views.
Open toolJSON tools
Compare two JSON values and list additions, removals, type changes, and value changes by path.
Open toolJSON tools
Explore nested JSON, search keys and values, and copy exact paths or selected values.
Open tool