All supported formats
document.json
Repair Corrupted & Truncated JSON Files Online Free
Sanitizes invalid UTF-8 and NUL/BOM prefixes, removes invalid trailing commas, and closes unclosed strings, arrays, and objects.
Select or drop JSON files
Accepts .json files (or any supported format). Runs 100% locally in your browser.
No JSON file handy? Try a broken sample:
0 bytes uploaded • Zero server storage
JSON Errors You Might See
- "Unexpected token }" or "Unexpected end of JSON input" on import
- API dumps or config files cut off before closing braces
- UTF-8 BOM or embedded NUL bytes break strict JSON parsers
What We Repair Locally
- Strips UTF-8 BOM prefixes and embedded NUL (0x00) bytes
- Removes trailing commas before `}` and `]` outside string literals
- Closes unclosed strings, `{}` objects, and `[]` arrays at EOF
How JSON Repair Works
1
Sanitize Encoding
Strips BOM, NUL bytes, and invalid UTF-8 sequences.
2
Fix Commas & Braces
Removes trailing commas and balances open `{}`/`[]` delimiters.
3
Download Clean JSON
Outputs valid UTF-8 JSON locally with zero uploads.
What Cannot Be Repaired Automatically
- Completely missing key-value pairs in the middle of a truncated object
Related JSON Error Guides
Other document Formats
Frequently Asked Questions
- Will it modify commas inside string values?
- No. The parser tracks JSON string boundaries and escaped quotes so string contents remain untouched.