CSVClinic
● 100% local · nothing uploaded

CSV REPAIR GUIDE

Fix inconsistent columns in a CSV.

“Expected 8 fields, saw 7” means at least one record does not have the same width as the header. CSV Clinic uses quote-aware parsing to identify uneven logical rows, then produces an equal-width file locally.

Open CSV Clinic

Why field counts become inconsistent

A trailing delimiter can create an extra field. A missing delimiter can produce a short row. An unquoted comma or line break inside a value can split one field into several records. Simply splitting each physical line on commas is unsafe because valid quoted fields may contain commas and newlines.

Safe repair steps

  1. Keep the original file unchanged.
  2. Detect the delimiter using several quote-aware records.
  3. Compare each logical record width with the header width.
  4. Review every row that is short or long before changing it.
  5. Pad missing trailing fields only when blank values are valid; inspect extra fields rather than silently discarding them.

What the free tool changes

The diagnostic reports the number of uneven rows without uploading the file. Repair pads short rows, normalizes headers and output encoding, and writes an audit report. Rows wider than the header are constrained to the declared width, so review the report and keep the source copy.

Open CSV Clinic