Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

Find Incomplete CSV Records

Detect CSV rows with missing or extra fields compared to the header. Highlights problematic rows. 100% client-side.

Your files never leave your browser
CSV Input0 chars, 0 lines
Analysis Results
Error:
    Ready·

    Spot CSV rows with missing or extra columns by checking every line against your header's field count. Broken rows show up with their row number, expected vs. actual column count, and the raw content so you can fix them fast. And everything runs in your browser. Nothing gets uploaded.

    How It Works

    Paste CSV
    →
    Count Header Columns
    →
    Flag Mismatched Rows

    The parser reads your first row as the header and counts how many fields it contains. Then it walks through every remaining row and checks whether the field count matches. Quoted fields with commas inside them are handled correctly (RFC 4180 compliant), so "New York, NY" counts as one field, not two.

    Examples

    Missing Email in a Contact List

    Someone accidentally deleted the email field on row 3 during a manual edit.

    INPUT
    name,email,phone Alice,[email protected],555-0101 Bob,555-0102 Carol,[email protected],555-0103
    OUTPUT
    Row 3 [MISSING FIELDS] Expected: 3 | Actual: 2 Content: Bob,555-0102

    Extra Comma in Product Data

    An unquoted description contains a comma, creating a phantom extra column.

    INPUT
    sku,name,price A001,Widget,9.99 A002,Gadget, small,14.50 A003,Doohickey,7.25
    OUTPUT
    Row 3 [EXTRA FIELDS] Expected: 3 | Actual: 4 Content: A002,Gadget, small,14.50

    Multiple Issues in a Survey Export

    A Google Sheets export where two respondents had blank answers that collapsed the field count, and one had a stray pipe character that got interpreted as a comma after conversion.

    INPUT
    id,q1,q2,q3,q4 1,Yes,No,Maybe,Yes 2,Yes,No 3,No,Yes,Yes,No 4,Yes,No,Probably,Yes,Extra 5,Yes,No,No,Yes
    OUTPUT
    Row 3 [MISSING FIELDS] Expected: 5 | Actual: 3 Content: 2,Yes,No Row 5 [EXTRA FIELDS] Expected: 5 | Actual: 6 Content: 4,Yes,No,Probably,Yes,Extra

    Who Uses This

    👨‍💻 Developers

    Quick sanity check before importing CSV into a database or API pipeline.

    📊 Data Analysts

    Catch broken rows in exports from CRMs, dashboards, or ETL jobs before running queries.

    🧪 QA Engineers

    Validate test data fixtures and spot malformed records that would cause silent failures.

    📋 Project Managers

    Verify client-submitted CSV files are clean before handing them to the dev team.

    Common Mistakes

    Unquoted fields that contain commas

    A value like Gadget, small gets split into two fields unless you wrap it in double quotes: "Gadget, small". This is the single most common reason for "extra fields" errors.

    Trailing commas on some rows

    A trailing comma creates an empty extra field. If row 5 ends with value, while the header doesn't, that row will show one extra field. Remove the trailing comma or add one to every row (including the header) to stay consistent.

    Mixing delimiters (tabs vs. commas)

    If your file uses tabs instead of commas, the parser sees each full line as a single field. The header will show 1 column, and every row will match — hiding the real problem. Convert tabs to commas first, or use a TSV-specific tool.

    Technical Details

    Frequently Asked Questions

    How do I find rows with missing data in a CSV file?

    Paste your CSV into this tool and click Analyze. It compares every row's field count against the header. Any row with fewer fields than expected gets flagged with the row number and a count of how many fields are missing — so you can go fix them directly.

    Does this tool work with semicolons or tabs as delimiters?

    It's built for comma-delimited CSV files specifically. If your file uses semicolons or tabs, you'd need to replace those with commas first. A quick find-and-replace in any text editor handles that in seconds.

    Can I fix incomplete CSV records automatically?

    This tool detects and reports problems — it doesn't modify your data. For automatic fixes, use the Fill Incomplete CSV Records tool, which pads short rows with a fill value you choose (like an empty string or "N/A").

    Is my CSV data safe when using this tool?

    Yes. Everything happens in your browser with JavaScript. Your data is never sent to any server. Close the tab, and it's gone — nothing gets stored or logged.

    Why does my CSV show extra fields when the data looks correct?

    Almost always, it is an unquoted comma inside a field value. Something like Portland, OR gets read as two separate fields. Wrap values that contain commas in double quotes: "Portland, OR". That fixes it every time.

    Share: