JSON Repair
Fix broken JSON in your browser — close missing brackets, drop trailing commas, fix quotes and keys — then format and download it. Nothing is uploaded.
Report a problemHow to use
- Paste your broken JSON into the box, or use the Upload button to load a .json file — you can also drag a file straight onto the box.
- Press Repair. It removes comments and trailing commas, switches single or curly quotes to proper double quotes, quotes bare keys, fixes True/False/None-style values, and closes any missing brackets — then formats the result.
- Copy the clean JSON or download it as a .json file. Everything happens in your browser, so nothing you paste is ever uploaded.
FAQ
What kinds of problems can it fix?
The common ones that break JSON: trailing commas, missing commas between items, single quotes or “curly” quotes instead of straight double quotes, unquoted keys, // and /* */ comments, Python-style True/False/None, and missing closing brackets or braces. It also wraps loose key–value pairs in { } and trims stray text after the data.
Is my data sent to a server?
No. The repair runs entirely in your browser with a safe custom parser — it never uses eval and never uploads your data. It works offline and is safe even for sensitive data.
Why can’t it fix some files?
If the structure is too ambiguous — for example a value that is missing entirely, or text that isn’t really JSON at all — there may be no single correct fix. When that happens it repairs what it safely can; always check the result before relying on it.