About CSV Validator
When an import fails with "unexpected number of columns" or a name turns into é, the cause is usually one line in thousands. This tool reads the whole file and lists every problem it finds with its line number: quotes that are never closed or sit in the wrong place, rows with too many or too few fields, header names that are blank, repeated or padded with spaces, and text that is not valid UTF-8 or was decoded with the wrong encoding.
It only reports; nothing is changed. The CSV Formatter can then fix the layout problems it finds.
How it works
- The data is read as RFC 4180 CSV, with the separator detected among comma, semicolon, tab and pipe unless you choose one. Line numbers count every line break, including those inside quoted values, so they match what a text editor shows.
- Each row is compared with the header row, or without a header with the most common number of fields. Every row that differs is listed by the line it starts on.
- A file you open is checked byte by byte for sequences that are not valid UTF-8. A UTF-16 file with a byte order mark is decoded as UTF-16. In any input, replacement characters (�), NUL characters and pairs such as é that betray a wrong decoding are reported.
- Up to 500 problems are listed in line order, with a count of the rest. Mixed line endings, blank lines and a byte order mark are noted as well.
Questions
Is a semicolon-separated file an error?
No. Comma, semicolon, tab and pipe are all accepted and the one in use is shown in the results. Choose it under "Delimiter" if detection picks the wrong one.
Why are pasted texts not checked for invalid UTF-8?
Pasted text has already been decoded by your browser, so the original bytes are gone. Open the file instead to have its bytes checked. Pasted text is still checked for replacement characters and signs of a wrong decoding.
Can it detect every encoding problem?
No tool can tell for certain which encoding a file was meant to have. This one finds bytes that cannot be UTF-8 and the common traces of UTF-8 read as Windows-1252 or Latin-1. A file that is valid UTF-8 but was saved from wrongly decoded text may still pass if it contains no such traces.
How large a file can it check?
Files up to 10 MB, and the same amount of pasted text. The file is read in your browser and is not uploaded.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.