CSV VALIDATOR

Check a CSV for the problems that break imports: rows with the wrong number of fields, quotes that never close, empty or repeated header names, encoding trouble, and values that do not match the column. Every finding has a line or row number, and several common problems can be fixed with one click.

Zero retention: your files never leave this browser. Verify it yourself in DevTools.

Loading the CSV tools.

About CSV validator

How Can You Verify That Your Files Never Leave This Browser?

You do not have to take our word for it. Browser developer tools list every request a page makes, so you can watch 2csv work and confirm that your data is never sent anywhere. The check takes about a minute.

  1. Open your browser developer tools with F12, or Cmd+Option+I on a Mac, and select the Network tab.
  2. Reload the page and let it finish. You will see the page's own files (including the background file parser), its web fonts, and one anonymous page-view request. No file has been chosen yet, so none of them can contain your data.
  3. Click the clear icon in the Network tab so that the log is empty.
  4. Open a CSV file in the CSV validator tool above, run it, and download the result.
  5. Look at the Network tab again. It is still empty. Reading, changing, and saving the file made no request at all. For extra proof, turn on offline mode after the page loads: every tool keeps working.

Your file is read into this tab's memory with the browser's own file reader, parsed and changed by code that is already on the page, and handed back to you as a download. It is never uploaded, never stored in the browser, and gone when you close the tab. The only other request the site can make is the feedback form, and only when you submit it.

The production site also sends a Content-Security-Policy header that tells your browser to refuse connections to anywhere except this site and the anonymous analytics endpoint, so even a bug could not send your data elsewhere.

What Does the CSV Validator Check?

A CSV validator is a tool that reads a file and lists everything that could make another program reject it or misread it. The 2csv parser repairs problems instead of failing, and the validator shows each repair it made, with the line number in the original file, so nothing is changed silently.

  • Rows with too few or too many fields, quotes that never close, un-doubled quotes, and stray quotes.
  • Blank lines, mixed line endings, a byte-order mark, and a fallback to Windows-1252 encoding.
  • Header names that are empty, repeated, or have spaces at the start or end.
  • Rows with no values and values with leading or trailing spaces.

How Do Column Rules Work?

A column rule says what every value in a column should look like. The validator then lists each value that breaks the rule, by row. Rules are Anything, Not empty, Whole number, Number, Date, True/false, Email address, and Unique values. Detect column types fills the rules in from the data, so you only adjust the ones it gets wrong.

  1. Press Detect column types, or choose a rule for each column yourself.
  2. Set Unique values on ID columns and Not empty on required fields.
  3. Read the list of values that break each rule, with their row numbers.

Which Problems Can Be Fixed With One Click?

Header problems and empty rows have one-click fixes. Empty and repeated header names get unique names such as column_4 or name_2, header names lose spaces at the ends, and rows with no values are removed. For other findings the validator links to the right tool, such as Trim whitespace or the column type converter.

How Are Findings Sorted and Reported?

Findings are grouped by severity. Problems are things that will likely break an import, such as a quote that never closes. Warnings are things worth checking, such as a padded row. Notes are information, such as a removed byte-order mark. Each finding gives the line or row number so you can find it in the grid.

You can download the findings as an issue report CSV, with one row per finding. That is useful when the file came from someone else and you need to send them a precise list of what to fix in their export, without sending the data itself.

What Else Can You Do With a CSV Here?

  • CSV viewer: Open a CSV of any size, scroll every row, and see a profile of each column.
  • Sort CSV: Sort rows by one or more columns, as text, numbers, or dates, ascending or descending.
  • Filter CSV: Show only the rows that match an expression such as price > 10 AND state = "NY".
  • Remove duplicates from CSV: Find and remove duplicate rows, comparing whole rows or only the columns you choose.
  • Trim CSV whitespace: Trim leading and trailing spaces, collapse double spaces, and drop invisible characters and empty rows.
  • Find and replace in CSV: Find text in one column or every column and replace it, with match case, whole cell, and regex options.
  • Remove rows from CSV: Delete rows by number or range, the first or last rows, empty rows, or rows that match a rule.
  • CSV editor: Edit cells, add or delete rows, and add, delete, rename, or move columns.
  • Split CSV column: Split one column into several at a delimiter, such as a full name into first and last.
  • Merge CSV columns: Join two or more columns into one with the separator you choose, skipping empty values.
  • CSV column type converter: Convert a column to clean numbers, ISO dates, true/false, or upper, lower, or title case.
  • CSV to JSON converter: Convert CSV to a JSON array of objects or arrays, or to JSON Lines, with typed values.
  • JSON to CSV converter: Convert a JSON array or JSON Lines to CSV, flattening nested objects into dotted column names.
  • CSV to SQL converter: Turn a CSV into SQL INSERT statements, with an optional CREATE TABLE, for PostgreSQL, MySQL, SQLite, or SQL Server.
  • CSV to TSV converter: Convert a comma-separated file to tab-separated values that paste cleanly into spreadsheets.
  • TSV to CSV converter: Convert a tab-separated file to a standard, properly quoted comma-separated CSV.
  • CSV splitter: Split a large CSV into smaller files of a set number of rows, with the header repeated in each.

All eighteen tools are on the 2csv home page, and once a file is open you can switch between them without reloading it. Part of the 2suite.io privacy-first ecosystem.

Frequently Asked Questions

Does the validator change my file?

Only when you press a fix. The parser repairs problems while reading so no value is lost, and the validator lists every repair with its file line number.

What happens to a row with too many fields?

The table widens with extra columns so no value is lost, and the validator reports the row and its line number.

Can I check that a column holds only email addresses?

Yes. Set the Email address rule on that column, and every value that does not look like an email address is listed by row.

Can I export the list of problems?

Yes. Download the findings as an issue report CSV, with one row per finding, its severity, and its line or row number.

Was this helpful?