b2KIT

CSV Validator & Linter

Validate CSV files for structural issues: unquoted fields, inconsistent columns, encoding problems.

Tested tool guide Tested browser tools Checked August 16, 2026

What CSV Validator & Linter does and how it behaves

This validator inspects CSV content for broken record structure, especially malformed quoting, rows with different field counts, and text-decoding concerns. It reads the content as records and fields, then identifies places where the apparent CSV grammar stops being consistent. The common surprise is that an unquoted field is not automatically invalid. Ordinary text may be unquoted; trouble begins when a field contains a comma, line break, or double quote without the quoting needed to keep it within one field. Processing stays in the browser, so the CSV is not uploaded.

How the result is produced

1

Record and field checks

CSV is evaluated as a sequence of records containing delimiter-separated fields. The validator checks quotation boundaries and compares the apparent number of fields across records. Under RFC 4180 conventions, a field containing a comma, double quote, CR, or LF must be enclosed in double quotes. A double quote inside a quoted field is represented by two consecutive double quotes.

2

Encoding diagnostics

Encoding diagnostics are separate from structural CSV checks. A file can have consistent rows while still containing text that was decoded incorrectly, and non-ASCII characters are not inherently errors. Review flagged characters in their surrounding fields. If they differ from the intended text, resave or re-export the original data using a known character encoding, then validate the resulting file again.

Good uses

  • Check a database or spreadsheet export before importing it elsewhere, looking for rows that unexpectedly contain fewer or more fields than the rest of the file.
  • Investigate shifted columns caused by commas or line breaks embedded in free-text fields without suitable CSV quoting.
  • Review a legacy or vendor-supplied CSV for malformed quotation and suspiciously decoded characters before converting or distributing the data.

Limits and checks

  • CSV has multiple real-world dialects. A file using semicolons, tabs, unusual line endings, or different quotation conventions may be internally valid but still be interpreted incorrectly if the selected or assumed dialect does not match.
  • Equal field counts do not establish that values are semantically correct. The validator cannot infer whether a date is genuine, an identifier is unique, a required field is populated, or a column contains the intended data type.
  • Character encoding can be ambiguous because the same bytes may be valid under more than one encoding. An encoding warning can identify suspicious text, but it cannot always determine which characters the file's producer originally intended.

Common questions

Are all unquoted CSV fields invalid?

No. Under the common RFC 4180 format, a field may be quoted or unquoted. Quoting matters when the value contains a comma, double quote, CR, or LF. Such content must be enclosed in double quotes to remain one field, and an embedded double quote must be doubled. A plain value such as 42 or Boston does not require quotes.

Why can one bad quote produce many later errors?

A quoted field may legally contain a line break, so an unmatched opening quote can make subsequent physical lines appear to belong to the same record. That changes where later records and columns seem to begin. When many findings follow one another, inspect the earliest quotation error first; correcting it may also resolve the downstream field-count reports.

References and verification

The behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools