Why a CSV import fails, and how to find the row
When a database load or a spreadsheet import fails on a CSV, the error is often unhelpful: "unexpected number of fields", "unterminated quoted field" or simply a table with values in the wrong columns. The file looks fine when you open it, because a spreadsheet is forgiving and the loader is not. This validator reads the file the strict way and tells you where it breaks.
The most common problem is a row with the wrong number of cells. A value that contains a comma but was not quoted splits into two cells and pushes everything after it one column to the right. A value that was deleted leaves a row one cell short. The validator compares every row with the header and lists those that do not match, with the count it found and the count it expected.
Quotes cause the most confusing failures. A cell that starts with a quote mark runs until the next lone quote mark, and if there is none, the rest of the file becomes one long cell. A reader that hits this either stops or silently loads garbage. The validator reports where such a quote opens, which is the place to fix. It also reports quote marks that sit in the middle of a cell that was not quoted, such as Priya "Pri" Patel. Excel keeps those as text, but strict readers refuse them. The fix is to quote the whole cell and double the inner marks: "Priya ""Pri"" Patel".
The header gets its own checks. A column with no name, or two columns with the same name, breaks any tool that maps columns by name, including most JSON and database converters. Blank lines are listed too. Many readers skip them, but some count them as rows of empty values. Each problem is given twice over: the row number, counted as a spreadsheet counts records with the header as row 1, and the line number where that row starts. The two drift apart as soon as a quoted cell above holds a line break, and only one of them will be right in the program you open to fix it.
The validator checks structure only. It does not decide whether a column should contain dates or numbers, because CSV itself has no types. It also lists at most 500 problems, while counting all of them, since a list of thousands usually means one cause, such as reading a semicolon file as comma-separated. The file is read in a worker on your device and never uploaded, so it is safe to check exports that hold customer or financial data.