CSV Validator Online
Check a CSV file for broken quotes, uneven rows, duplicate headers, encoding problems and more. Every issue is listed with its line number, and the file never leaves your browser.
How to Validate a CSV File and Fix the Errors It Finds
What makes a CSV file "valid"
CSV has no single enforced standard, but most software followsRFC 4180: records are separated by line breaks, fields by a delimiter, and any field that contains the delimiter, a quote or a line break must be wrapped in double quotes, with inner quotes doubled. Every row should also have the same number of fields as the header. A file that breaks these rules may still open in a spreadsheet, but an importer or database loader can reject it or, worse, read the data into the wrong columns.
Quick 3-step check
- STEP 1Add your file: Drop a
.csv,.tsvor.txtfile above. The delimiter is detected automatically, or you can pick it. - STEP 2Read the summary: Errors are problems that usually break imports. Warnings and info items are worth a look but often harmless.
- STEP 3Fix and re-check: Use the line numbers to fix the source file, or open it in theCSV editor, then validate again.
The errors you will see most often
Unclosed quote. One missing closing quote makes the parser treat the rest of the file as a single cell, so a file with thousands of rows can suddenly show one giant row. The report points to the line where the quote opened.
Wrong column count. A comma inside an unquoted value, such as Smith, John, adds an extra field. The row then no longer lines up with the header. Wrapping the value in quotes fixes it.
Quotes in the wrong place. A quote in the middle of an unquoted value, or text after a closing quote, is not valid CSV. Different programs handle it differently, which is why the same file can look fine in one tool and broken in another.
Encoding problems. Replacement characters usually mean the file was saved in Windows-1252 or Latin-1 instead of UTF-8. Null bytes usually mean UTF-16. Re-saving as UTF-8 fixes both, and theencoding guide explains how.
Warnings that save you trouble later
Duplicate or empty column names break tools that read rows by header. Mixed line endings suggest the file was edited on different systems. Cells that start with =,+, - or @ can run as formulas when someone opens the file in a spreadsheet, a risk known as CSV injection. Excel also limits worksheets to 1,048,576 rows, 16,384 columns and 32,767 characters per cell, so the report warns you before you hit those limits.
Validation runs in your browser with JavaScript, and the contents of your file are not sent to a server.
CSV Validator FAQ
How validation works, what it checks, and how your file is handled.
What does a CSV validator check?
It reads the file the way an importer would and reports structural problems with line numbers: unclosed or stray quotes, text after a closing quote, rows with too many or too few columns, blank lines, duplicate or empty column names, invalid UTF-8 characters, null bytes, mixed line endings, and values that Excel limits. It also flags cells that start like formulas, because spreadsheet programs may run them.
Does the validator upload my CSV file?
No. The file is read and checked by JavaScript in your browser, and its contents are not sent to our servers. You can confirm this in your browser's Network tab while you validate a file.
How do I fix a 'row has the wrong number of columns' error?
Open the line number shown in the report. The usual causes are a value that contains the delimiter but is not wrapped in quotes, a missing value, or an extra delimiter at the end of the row. Wrap values that contain commas in double quotes, or fill in the missing field, then validate again.
Why does my file pass here but still fail in my importer?
A file can be structurally valid and still be rejected for business reasons: required columns that are missing, a date format the importer does not accept, a column name it does not recognize, or a file size limit. This tool checks the CSV format itself. Check the importer's own template and documentation for field rules.
Which delimiters and encodings does it support?
It auto-detects comma, semicolon, tab and pipe delimiters, and you can choose one manually. Files are read as UTF-8, including files with a byte order mark. If a file was saved as Windows-1252, Latin-1 or UTF-16, the report shows invalid characters or null bytes so you know to re-save it as UTF-8.
How large a file can I validate?
The check runs in your browser's memory, so the limit depends on your device. Files with hundreds of thousands of rows normally finish in a few seconds. Files over 200 MB are refused to keep the page responsive; split larger files first.