CSV Lint

POST /v1/convert/csv-lint
curl -X POST "https://convert.toolkitapi.io/v1/convert/csv-lint" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"csv": "name,age\nAlice,30\nBob"}'
# See curl example
// See curl example
Response 200 OK
{
  "valid": false,
  "warnings": [
    {"row": 3, "message": "Expected 2 columns, found 1"}
  ],
  "warning_count": 1,
  "row_count": 3,
  "column_count": 2
}

How to Use

1

Send a POST request to /v1/convert/csv-lint with a csv string and optional delimiter.

About This Tool

Lint CSV data for common issues: inconsistent column counts across rows, encoding problems, quoting errors, empty headers, and duplicate headers.

Returns a list of warnings with row numbers and descriptions. Useful for pre-validating CSV files before import.

Why Use This Tool

Frequently Asked Questions

What issues are detected?
Inconsistent column counts, empty/duplicate headers, encoding errors, unclosed quotes, and trailing delimiters.
Does it fix issues?
No — the linter reports issues only. Use the report to decide how to clean your data.

Start using CSV Lint now

Get your free API key and make your first request in under a minute.