Fill Incomplete CSV Records
Find and fill incomplete CSV records with missing fields. Pad short rows to match header column count. 100% client-side.
Paste a CSV with ragged rows — where some lines have fewer columns than the header — and this tool pads each short row with your chosen fill value until every record matches the expected column count. Pick "N/A", "0", an empty string, or whatever placeholder fits your data pipeline. And everything runs in your browser. Nothing gets uploaded.
How It Works
The parser reads your first row as the header and counts its fields. Then it walks through every data row. If a row has fewer fields than the header, the tool appends your chosen fill value until the column count matches. Quoted fields with commas or newlines inside them are handled correctly — the parser follows the RFC 4180 spec, so it won’t split a quoted comma into a separate column.
Examples
Missing phone numbers in a contact list
A CRM export dropped the phone column for contacts who never provided one.
name,email,phone
Alice,[email protected],555-0101
Bob,[email protected]
Carol,[email protected],555-0303
name,email,phone
Alice,[email protected],555-0101
Bob,[email protected],N/A
Carol,[email protected],555-0303
Product catalog with multiple missing fields
Some rows from a supplier feed are missing price, stock, and category — three columns gone in one row. The database import rejects the whole file because of these.
sku,name,price,stock,category
W-100,Widget,9.99,250,Hardware
W-101,Gadget
W-102,Sprocket,4.50
sku,name,price,stock,category
W-100,Widget,9.99,250,Hardware
W-101,Gadget,0,0,0
W-102,Sprocket,4.50,0,0
Survey responses with quoted text
Free-text answers contain commas. A naive split would break the column count, but this parser handles quoted fields properly.
id,response,score,date
1,"Great product, love it",5,2025-03-01
2,"OK"
3,"Needs work, but promising",3
id,response,score,date
1,"Great product, love it",5,2025-03-01
2,"OK",,
3,"Needs work, but promising",3,
Who Uses This
Fix malformed CSV before importing into a database or API pipeline.
Clean up messy exports so pandas or Excel doesn’t choke on ragged rows.
Prep bulk-insert files that need every row to match the table schema exactly.
Patch together CSVs from multiple team members who each forgot different columns.
Common Mistakes
If you fill with "0" in a price column, downstream code might treat it as a real zero-dollar item. Pick something obviously placeholder like "N/A" or "MISSING" so you can find and fix them later.
The tool treats row 1 as the header. If your data doesn’t have one, add a temporary header first — otherwise the first data row becomes the column-count reference and you’ll get wrong results.
If you copy from a spreadsheet, you might get tabs instead of commas. The parser expects comma delimiters — tab-separated data will look like one giant column. Convert to CSV first or check your export settings.
Technical Details
- Processing: 100% client-side — nothing leaves your browser
- CSV Parsing: RFC 4180 compliant (quoted fields, escaped quotes, embedded newlines)
- File Size: No hard limit, but very large files (50MB+) may slow down depending on your device
- Browser Support: Chrome, Firefox, Safari, Edge
Frequently Asked Questions
What counts as an incomplete CSV record?
Any row that has fewer fields than the header row. If your header has 6 columns and a data row only has 4, that row is incomplete. The tool will add 2 fill values to bring it up to 6.
Does this tool delete rows that have too many columns?
No. Rows with extra fields are left exactly as they are. This tool only adds missing fields — it doesn’t remove anything. If you need to truncate extra columns, that’s a different operation.
Can I fill missing fields with different values per column?
Not with this tool — it uses one fill value for all missing fields. If you need column-specific defaults (like "0" for price and "Unknown" for category), fill with a placeholder first, then do a find-and-replace on the specific columns afterward.
Will it break fields that contain commas or quotes?
It shouldn’t. The parser handles RFC 4180 formatting, so quoted fields — even ones with commas, newlines, or escaped double quotes inside — are parsed as single fields. Your data stays intact.
Is my CSV data uploaded to a server?
No. All processing happens right in your browser using JavaScript. Nothing gets sent anywhere. Once you close or refresh the page, the data is gone from memory entirely.