| Item | Quantity |
|---|---|
| Notebook | 12 |
| Pencil | 4 |
A table that looks fine in an editor can still be illegal: two headers with the same name, a blank header, a row with one cell too few, or a quote that never closes. CSV validator parses the file and, when the table is rectangular and the headers are unique and nonempty, reports how many columns and how many data rows it found. It does not rewrite the file.
A short row stops with the line number and the widths, such as Row 3: expected 2 cells, got 1. Duplicate headers are named as duplicate column headers. A stray quote surfaces as a parse error on that CSV row. Set Input delimiter when the file is not comma-separated, or leave it on auto. Formatting and delimiter changes happen on the other pages after this one says the table is valid.
Item,Quantity / Notebook,12 / Pen,4. Input delimiter auto. A broken variant drops the quantity on the last line, leaving Pen alone.
Valid table: 2 columns, 2 data rows. The broken last line reports Row 3: expected 2 cells, got 1. A header row of Item,Item reports Duplicate column headers.
A one-line structural check catches ragged rows and repeated headers before a converter guesses what the short row meant.
Valid table: 2 columns, 2 data rows. The cells are not copied into the result. A passing check is that one sentence.
A blank cell in a row that still has the right number of fields is allowed. Missing values counts those blanks. This page cares that the row has a field for every header.
Later tools address columns by name. Two headers named Item would make a merge, a sort, or a JSON object ambiguous.
It checks structure. Trimming and rewriting quotes is the formatter. A padded Notebook still counts as a valid cell.
The parser names the CSV row, for example a trailing quote that never closes on that row.