CSV Validator
About this tool
About CSV Validator
When a database import fails at row 48,213 or a spreadsheet shifts half a row into the wrong columns, the cause is almost always a structural problem in the CSV. This validator reads the file the way a strict importer would and groups the problems by type, each with physical line numbers (up to 50 examples per type), so you can jump straight to them in an editor. It catches rows with too many or too few cells, quotes that are never closed, stray quotes inside unquoted cells, text after a closing quote, duplicate or blank column names, a trailing delimiter on every line, blank lines, rows with no values, mixed Windows and Unix line endings, a byte order mark, cells padded with spaces, and numeric columns that contain text such as n/a or ten. Each problem type comes with a plain explanation of how to fix it, and the full report can be copied or downloaded. Files are checked in your browser and never uploaded.
Built and maintained by Abhi JainUpdated
How to Validate a CSV File
- 1
Paste or open the CSV
Paste the data or drop a .csv file onto the left pane. Click Sample to see a file with typical problems.
- 2
Check the settings
Leave Delimiter on Detect unless it is guessed wrong, and untick First row is header if the file has no header.
- 3
Fix and recheck
Read the report on the right, fix the listed lines, and the report updates as you edit. Download it to share.
CSV Validator: questions and answers
What makes a CSV file invalid?
The common format rules (RFC 4180) say every row needs the same number of fields, fields containing the delimiter, quotes or line breaks must be wrapped in double quotes, and a quote inside a quoted field is written twice (""). Breaking any of these confuses importers.
Why do the line numbers differ from the row numbers in Excel?
The validator reports the physical line in the file. A quoted cell containing line breaks spans several lines, so later rows sit on higher line numbers than their row number.
How do I fix a row with too many columns?
Usually a value contains the delimiter without quotes, such as an address with a comma. Wrap that value in double quotes. Too few columns usually means a missing delimiter or a line break inside an unquoted value.
Are warnings errors?
No. Warnings, such as blank lines, mixed line endings or text in a numeric column, still parse but often cause trouble later. Errors break the table structure.
Is there a file size limit?
There is no fixed limit. Files of a few megabytes usually check in a moment; very large files depend on your device's memory because everything runs locally.
Related Tools
- CSV FormatterClean up a CSV: consistent quoting, line endings and delimiter, trimmed cells, no empty rows.
- CSV Viewer & EditorOpen, edit, sort, filter and search big CSV files like a spreadsheet, then export CSV, TSV or JSON.
- JSON ValidatorCheck JSON for errors with line and column, plain-language causes and one-click repair.
- CSV Delimiter ConverterSwitch a CSV between comma, semicolon, tab, pipe or any custom delimiter, keeping quoted cells intact.