Skip to content

CSV Validator

Find broken rows in a CSV file before you import it into a database, spreadsheet or shop system. The validator parses the data with standard CSV quoting, detects the delimiter or uses the one you choose, and checks that every row has the same number of columns, that quotes are closed and that the text is clean UTF-8. It reports the delimiter, line endings, row and column counts, empty or duplicate headers and the rows to fix.

Reset

Frequently asked questions

What does the CSV validator check?

It checks that every row has as many columns as the first row, that every quoted field is closed and that quotes are only used where CSV allows them. It also looks for signs of a wrong encoding, NUL characters, empty or duplicate headers and mixed line endings. Errors make the file invalid, while warnings are listed for review.

How is the delimiter detected?

With Detect automatically the validator tries comma, semicolon, tab and pipe and picks the one that splits the rows most consistently. If a file uses a delimiter that also appears in the values, choose it explicitly in the Delimiter field. The result always shows which delimiter was used.

How are rows with the wrong number of columns reported?

Every row is compared with the first row, and each row that differs is listed with its number, its column count and the expected count. Rows are numbered from 1 including the header row, and the first 20 differing rows are listed with a count of the rest. Quoted line breaks inside a field do not start a new row.

What quoting problems are detected?

A field that starts with a double quote must end with one, and a quote inside a quoted field must be doubled as "". The validator reports quoted fields that are never closed and quotes that appear in the middle of an unquoted field. Both are common when a value containing the delimiter was exported without proper quoting.

How does it check the encoding?

Text that was saved in another encoding and then read as UTF-8 contains replacement characters, which the validator counts and reports as an error. NUL characters, a sign of a binary or UTF-16 file, are reported too. A UTF-8 byte order mark is allowed and shown in the Encoding line.

What header checks are there?

With First row contains headers enabled, empty header cells and headers that appear more than once are listed as warnings, because many import tools reject them. Turn the option off for files without a header row. The column count check runs either way.

Why are line endings reported?

The result shows whether the file uses LF, CRLF or CR line endings. A file that mixes them gets a warning, since some importers count rows differently in that case. Line breaks inside quoted fields are part of the value and allowed.

Are blank lines a problem?

Lines that are empty or contain only whitespace are skipped and do not count as rows. A row of empty fields such as ,,, is a real row and must have the right number of columns.

What is the difference between errors and warnings?

Errors are problems that make the data unreliable, such as ragged rows, broken quotes or a wrong encoding, and they mark the file as invalid. Warnings point at things that are legal CSV but often cause trouble, such as duplicate headers or mixed line endings. A file with only warnings is reported as valid.

How large can the CSV be, and can I convert it?

Inputs can be up to 5 MiB and 100,000 rows. To turn a valid CSV into JSON, YAML, XLSX or another format, use the Data Format Converter.

About OneClick Pro

OneClick Pro is a free collection of more than 150 web tools for everyday work: converting images and units, formatting and validating code, checking domains and SEO, and working with text, dates and numbers. Every tool runs without registration or subscription, and what you enter is only used to calculate your result and is never stored. Use it as a quick toolbox for one-off tasks, or bookmark the tools you rely on every day.