What makes a CSV malformed
A malformed CSV is a file where one or more rows no longer match the structure the parser expects. Common causes include extra commas inside text fields, quotes that never close, empty rows in the middle of the file, and exports that switch delimiters halfway through.
Examples of CSV errors
name,age,city Alice,29,"New York, NY" Bob,31,London,UK Charlie,35,"Paris
The second row has too many columns because the city value is not quoted. The third row contains a quote that never closes, which can break imports and downstream parsing.
Fastest way to repair a bad CSV
Open CSVDoctor, upload the file, and review the issue list. The tool auto-detects the most common row width, flags line numbers with malformed formatting, removes empty rows when safe, and fixes common quote and delimiter problems before generating a corrected download.
Manual checks that still matter
- Confirm the delimiter is really comma, semicolon, tab, or pipe.
- Check that the header row matches the rest of the file.
- Make sure free-text fields containing commas are wrapped in double quotes.
- Remove accidental blank rows created by spreadsheet exports.
It is faster to locate the broken line with a validator than to debug a long import stack trace manually.