Skip to content
hateitall

CSV Validator

Find out exactly why a CSV will not import, with the line numbers to fix, and get a repaired copy.

Processed locallyIn: CSV, TSV, TextOut: CSV, TSV

Loading tool…

How to use csv validator

  1. Drop the CSV that fails to import, or paste the text.

  2. Check the detected delimiter; choose it by hand if the file uses something unusual.

  3. Read the errors, warnings and notes, each with the line numbers involved.

  4. Look at the rows with the wrong number of fields in the table below.

  5. Download a repaired copy if the problems are ones that can be fixed automatically.

What this tool does

  • Finds unclosed quotes, text after a closing quote and stray quotes inside unquoted fields.
  • Finds rows with too few or too many fields and shows them with missing and extra cells marked.
  • Checks the header for repeated, blank and space-padded names.
  • Reports blank lines, mixed or old-style line endings, a byte order mark and files that are not valid UTF-8.
  • Line numbers count real lines in the file, so they match your text editor even when values contain line breaks.

How the result is verified

The repaired copy is read back with the same reader and compared with the repaired table cell for cell; it must have no quote problems and one width for every row.

Frequently asked questions

Why does my CSV have rows with too many fields?

Usually a value contains a comma but was not wrapped in quotes, so it was split in two. Quote that value, or use the repaired copy and choose to join the extra fields into the last column.

Which rules does it check against?

RFC 4180, the common CSV definition: one delimiter, fields with delimiters, quotes or line breaks wrapped in double quotes, and quotes inside written twice.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Normalise quoting, trim cells and fix line endings

CSV · TSV · Text→ CSVLight on device

Trim, dedupe, rename, split and convert columns in steps

CSV · TSV · Text→ CSVLight on device

Switch between comma, semicolon, tab, pipe or any character

CSV · TSV · Text→ CSVLight on device

Types, statistics, distributions and outliers for each column

CSV · TSV · Text→ CSVLight on device