CSV Validator
Check a CSV file for errors: rows with the wrong number of values, stray or unclosed quotes and duplicate column names. See the type of every column.
| Row | Column | Problem |
|---|---|---|
| Column | Type | Empty values |
|---|---|---|
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the CSV Validator
- 1 Paste the CSV or open the file.
- 2 Check the delimiter and the header-row option.
- 3 Read the list of problems with their row numbers, and the type of each column.
About the CSV Validator
A CSV file that looks fine can still break an import: one row with an extra comma, a quote that was never closed or two columns with the same name is enough. The validator checks the file against the CSV standard (RFC 4180) and lists every problem with its row number.
Row numbers count the records in the file, the header row being row 1. A value in quotes may contain commas, line breaks and quotes (written as two quotes); a quote in the middle of an unquoted value is reported, because many programs read it differently.
Besides errors, the validator shows the type of every column: whole numbers, decimal numbers, true/false, dates (YYYY-MM-DD), dates with a time or text, and how many values are empty. That helps when you prepare a file for a database or another system with strict types.
Frequently asked questions
What counts as an error?
Rows with a different number of values than the first row, quotes in the middle of a value, quotes that are never closed, and (with a header row) empty or duplicate column names.
Which CSV standard is used?
RFC 4180, the standard most programs follow: values with the delimiter, quotes or line breaks are put in double quotes, and quotes inside them are doubled.
Can it check semicolon-separated files?
Yes. The delimiter is detected automatically (comma, semicolon, tab or pipe), and you can also choose it yourself.
Can it fix the errors?
Use the CSV Cleaner to trim values, remove empty rows and columns and rename duplicate columns. Rows with a wrong number of values usually need a look at the source.