Check a CSV file for errors

Find rows with the wrong number of columns, unclosed and stray quotes, blank or repeated headers and mixed line endings, each with its line and row number.

Drop your CSV file here or click to choose a file CSV file · processed on this device

How to check a CSV file

  1. 1

    Choose a .csv file

  2. 2

    Press Check file

  3. 3

    Read the problems by line and row or download them as a CSV

Find the line that breaks the import

An import fails with “unexpected end of file” or “row 4,812 has 9 fields, expected 8”, or worse, it succeeds and some rows come in with their values one column to the right. The cause is almost always a handful of characters somewhere in a large file: a quote that was never closed, a comma in a value nobody quoted, a header written twice. This finds them and says where.

What it checks

Column count. Every row should have as many values as the header. A row with more or fewer is listed with both numbers.

Unclosed quotes. A value that opens a quote and never closes it swallows everything after it. The report gives the line the quote opened on, which is the line to fix, and how many lines it swallowed.

Stray quotes. A quote inside a value that is not wrapped in quotes, as in 5” screen, and text after a closing quote, as in “Ada”Lovelace. RFC 4180 allows neither, and readers handle both differently.

Headers. A header with no name, and a header that repeats another, including one that differs only in capitals or spaces. Both make a column impossible to pick by name.

Line endings. A file whose lines end in a mix of Windows CRLF and Unix LF, usually from two files pasted together. Many readers cope; some count rows wrongly. This is a warning, with the first line that differs.

Blank lines. An empty line, which most readers skip and some read as a row of blanks. Also a warning.

Reading the report

Each problem has a line, as a text editor numbers it, and a row, as a spreadsheet does with the header as row 1. Errors are faults a reader may get wrong; warnings are worth knowing. The first two hundred are shown on the page, every problem is counted, and the full list of up to a thousand downloads as a CSV.

The delimiter is detected from the header line, or you can choose it. A byte-order mark at the start is mentioned but not counted as a problem, since Excel uses it to read UTF-8. To fix spacing and empty rows after checking, the CSV cleaner does that in one pass. Nothing is uploaded.

Everything you need

Line and row for every problem

Each fault is listed where it starts, so it can be found in an editor or a spreadsheet.

The faults readers disagree on

Quotes, column counts, headers and line endings are checked against RFC 4180.

Private by design

The file is checked in your browser and never sent anywhere.

Nothing uploaded: open the Network panel while it runs and check.

No daily limits or watermarks: free batches take up to 20 images.

Works offline: once the page has loaded, on any current browser.

Frequently asked questions

What is the difference between line and row?

Line is the line of the file as a text editor numbers it. Row is the record, with the header as row 1, as a spreadsheet numbers it. They differ once a cell holds a line break, because that cell spans two lines but is one row.

Why is 5" screen a problem?

RFC 4180 allows a quote only inside a value wrapped in quotes, written twice. Readers disagree about a bare one: some keep it, some start a quoted value at it and swallow the delimiters that follow. Written as "5"" screen" it reads the same everywhere.

Why does one unclosed quote matter so much?

Everything after it reads as part of one value until another quote turns up, which can be the rest of the file. A reader then sees one enormous cell, or rows joined together, with no error at the place the fault is. The report gives the line where the quote opened.

Is the file uploaded?

No. The file is checked in this browser tab and never leaves your device.

Sources

Related guides

Work with files privately and confidentlyPractical, sourced explanations for safer file conversion, sharing, and cleanup.