filerepair
All Tools ▾
Fast Local Engine · Private & Free

Fix Truncated JSON, .ipynb & Garbled CSV

Repair interrupted API exports, broken Jupyter Notebooks, trailing commas, and garbled CSV files instantly in your browser.

Drop your JSON & CSV file here
Drag & drop anywhere or press⌘V·100% on-device · never leaves your browser
Try a sample:

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

  1. JSON: strips BOM/NUL bytes, removes trailing commas, closes unclosed strings/brackets/braces, and pretty-prints.
  2. 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

JavaScript / Node / Browser
SyntaxError: Unexpected end of JSON input / Expected property name or "}" in JSON
Python json.loads()
json.decoder.JSONDecodeError: Expecting value / Unterminated string starting at line ...
Jupyter Notebook / VS Code
Unreadable Notebook: NotJSONError — Notebook does not appear to be JSON
Microsoft Excel (CSV)
International, accented, or CJK characters display as garbled mojibake (é, 中文) in Excel

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