Fix Truncated JSON, .ipynb & Garbled CSV
Repair interrupted API exports, broken Jupyter Notebooks, trailing commas, and garbled CSV files instantly in your browser.
Common Issues Handled
- "SyntaxError: Unexpected end of JSON input"
- "Trailing comma or unescaped control character in JSON export"
- "CSV opens with garbled accented or international characters in Microsoft Excel"
How It Works
- JSON: strips BOM/NUL bytes, removes trailing commas, closes unclosed strings/brackets/braces, and pretty-prints.
- CSV: strips NUL bytes, auto-converts legacy encodings (Windows-1252, UTF-16, CJK) to UTF-8, and prepends an Excel-compatible UTF-8 BOM.
Exact Error Codes & System Messages Fixed
How Truncated JSON, Broken .ipynb & Garbled CSVs Happen
API dumps, LLM outputs, and Jupyter Notebooks (.ipynb) frequently get cut off mid-stream, leaving unclosed strings, trailing commas, or unclosed nested objects and arrays. Standard JSON parsers abort on the very first syntax error.
For CSV exports, Microsoft Excel on Windows assumes ANSI/Windows-1252 unless a UTF-8 Byte Order Mark (BOM: EF BB BF) is present at the start of the file. FileRepair auto-detects legacy encodings, strips stray NUL bytes, and prepends a clean UTF-8 BOM.
What Can Be Repaired
- Truncated JSON & Jupyter (.ipynb) files with unclosed strings, arrays, or objects
- Trailing commas, NUL bytes, and stray BOM prefixes breaking strict JSON parsers
- Garbled CSV files across Windows-1252, UTF-16, Shift_JIS, EUC-KR, Cyrillic, and GB18030/Big5
Honest Limitations
- Semantically invented keys/values that were never written before truncation
Frequently Asked Questions
Does it work on corrupted Jupyter Notebook (.ipynb) files?
Yes! .ipynb files are JSON documents. Dropping a truncated .ipynb file will auto-close broken cell structures.
Why does Excel garble UTF-8 CSV files even when they look fine in VS Code?
Excel requires a 3-byte UTF-8 BOM (EF BB BF) at the start of a CSV to recognize UTF-8 encoding automatically. FileRepair transcodes your CSV to UTF-8 and adds the BOM so Excel opens it cleanly.
Related File Tools
Repair garbled encoding, malformed timestamps, inverted end times, and broken numbering so VLC, Premiere, and CapCut import cleanly.
Fix garbled encodings, missing END:VCARD / END:VEVENT tags, and invalid line endings so iCloud, iPhone, and Google import your contacts without errors.
Fix broken OOXML archives, missing ZIP central directories, illegal XML control characters, and truncated Word documents without uploading confidential files.
Bypass broken DBF record counters, decode legacy Windows/DOS codepages (CP1252, GB18030, Shift-JIS, CP866), filter soft-deleted rows, and export clean UTF-8 CSV.