CSV Validator

Find out why a CSV won't import, with the exact line number of each problem. The validator reads the file strictly by the CSV standard (RFC 4180) and lists rows with more or fewer cells than the header, quotes that are opened and never closed (which swallow the rest of the file), quotes in the middle of unquoted cells, duplicate and empty column names, blank lines, a byte-order mark and mixed line endings. Errors and warnings are listed in order. Your file stays in your browser.

Your data
What to do

2 errors, 2 warnings

5 records, 4 columns in the first row, separator Comma (,)

  • Line 1: Duplicate column name "city" (columns 3 and 4)
  • Line 2: 3 cells instead of 4
  • Line 3: A quote inside an unquoted cell (it should be wrapped in quotes and doubled as "")
  • Line 4: 1 blank line inside the data

Everything runs in your browser. Your files never leave this device.

Features

  • Rows with the wrong number of cells, with line numbers

  • Unclosed quotes and stray quotes inside cells

  • Duplicate column names and columns with no name

  • Blank lines inside the data

  • Byte-order mark (BOM) and mixed Windows / Unix line endings

  • Separator detected: comma, semicolon, tab or pipe

  • Runs in your browser: your data is never uploaded. Free, no signup

When to validate a CSV

An import keeps failing

CRMs, e-commerce platforms, GST and payroll portals often give a vague error. The validator points to the line.

Before a bulk upload

Check a product, price or contact file before uploading thousands of rows.

Files made by hand or by scripts

Quick check that a generated or hand-edited CSV is well formed.

Understanding the results

Errors

  • Wrong number of cells: usually a comma inside an unquoted value, such as an address. Quote that value, or fix it with the Format task.
  • Unclosed quote: a value starts with " but never ends; everything after it is read as one cell.
  • Duplicate column names: many importers reject them or keep only one.

Warnings

  • Stray quote: a " in the middle of an unquoted cell. Many tools accept it, strict ones don't.
  • Byte-order mark: Excel uses it to detect UTF-8; some importers read it as part of the first column name.
  • Mixed line endings: usually harmless, but a sign that the file was joined from different sources.

Fixing problems

The Format task on the same page rewrites the file with correct quoting, trimmed cells, padded short rows and one kind of line ending. Fix rows with extra cells by hand in the CSV editor.

Other tasks on the same page

The same page also analyzes columns, finds missing values and duplicates, cleans, sorts and filters, splits and merges columns, draws charts, converts separators, validates and formats CSV: pick a task above the result.

Related tools

CSV Validator - FAQ