CSV Fixer
Input
Output
Paste your input on the left and press Fix CSV.
Or drop a file on this box, , or .
What is CSV Fixer?
Got a CSV that won't import? Ragged rows, unescaped quotes, the wrong delimiter, a stray BOM, smart quotes copy-pasted from a Word doc: any of these can blow up Excel, pandas, or your database loader. CSV Fixer reads your messy CSV (Comma-Separated Values) and returns a clean version that actually parses.
Unlike JSON, CSV has no strict spec: RFC 4180 is a guideline, not a law. Excel, Google Sheets, Postgres COPY, and Python's csv module all bend the rules differently. This tool repairs the structural issues that cause hard parse failures: column-count drift, unbalanced quotes, lines that quietly broke in the middle of a quoted field. Once it's clean, run it through our CSV Validator to confirm.
Under the hood: the Fix button posts your text to our backend, the broken rows are rewritten there, and the repaired file comes back in the same response. Nothing is saved on our side. Treat the result as a careful colleague's draft rather than parser output, so read the rows around the original problem before you import.
How to Use the CSV Fixer
Paste, press the green button, check what comes back. Sample, Copy and Download are the only other controls on the page.
Paste Broken CSV or Load the Sample
Drop your CSV into the left editor. Click Sample CSV to load a deliberately broken order file with the kind of error people actually run into: a half-quoted field that swallows the rest of the line. Example of broken CSV:
orderId,customer,product,quantity,total
ORD-1001,"Ava Chen",Wireless Mouse,2,49.98
ORD-1002,Marco Rivera,"USB-C Hub,1,79.99
ORD-1003,"Priya Patel",Mechanical Keyboard,1,129.99
ORD-1004,"Lee, Jordan",Webcam HD,1,59.99 Row 3 has an unclosed quote: "USB-C Hub opens but never closes, so the parser swallows everything after it. Typical real-world breakage.
Click Fix CSV!!
Press Fix CSV!!. One request carries the whole file (64 KB at most) to our backend, where quotes and column counts are rebalanced, every value is left alone and your comma, semicolon, tab or pipe delimiter is kept. A loading overlay covers the right panel until the reply arrives, usually a few seconds for a file of a few hundred rows.
Review the Fixed CSV
The right panel shows the cleaned-up CSV. Skim it, copy it, and load it into your database, spreadsheet, or pipeline. If it still misbehaves, paste it into our CSV Validator for a second opinion or our CSV Formatter to align the columns visually.
When You'd Actually Use This
Database Import Failures
Postgres COPY and MySQL LOAD DATA INFILE are unforgiving: one stray quote and the whole file is rejected. Fix the file, retry the import, go home on time.
Excel & Google Sheets Exports
European Excel exports use ; as the delimiter and prepend a UTF-8 BOM that breaks pandas read_csv. The fixer normalises the delimiter and strips the BOM so your pandas pipeline just runs.
Hand-Edited Data
Someone opened the CSV in Notepad, fixed a typo, saved it, and now the line endings are mixed and the row count is off by one. The fixer handles mixed \r\n/\n, ragged rows, and trailing whitespace without you having to spot the diff manually.
Migrations Between Tools
Moving customer or product data from one SaaS to another and the receiving tool refuses the import? Run the file through here first: most of the rejections are quote-escaping or column-count issues that the fixer cleans up in one pass.
Common Questions
Is my CSV stored or sent anywhere I can't see?
It travels to our backend once, for the length of the request, and the repaired text is returned in the reply; no copy is kept. Even so, customer exports with emails, card numbers or anything under contract are better repaired locally with Python's csv module than pasted into any web page.
What kinds of CSV errors can it actually fix?
The common ones: ragged rows (rows with fewer or more columns than the header), unescaped quotes inside quoted fields, fields containing commas or newlines that should be quoted but aren't, mixed \r\n/\n line endings, a stray UTF-8 BOM at the start, and smart quotes pasted from word processors. The repair follows RFC 4180 quoting. It usually gets these right, but check the rows it touched anyway.
Will it change my actual data values?
It shouldn't. The fix is limited to structure and quoting, and is not meant to add, drop, rename or reorder anything. In practice that holds for typical files, but it isn't guaranteed, so compare row counts and spot-check a few values (a cell like 79.99 should still read 79.99) before you import the result.
Does it keep my delimiter?
The fixer keeps whatever delimiter your file already uses (comma, semicolon, tab or pipe), so semicolon files should come back with semicolons. If you want to switch delimiters afterwards, the CSV Formatter does that deterministically.
What about really huge files?
There is a 64 KB cap on the input. That's roughly a few hundred rows. For bigger exports, fix the broken rows by hand (the CSV Validator lists them by line) or use a streaming tool like csvkit or a quick pandas script.
It said it can't fix my CSV. Now what?
Some structures are too ambiguous to repair safely, for example, a file where you can't tell whether a comma inside a field was meant to be a separator or a literal comma. In those cases, eyeball the first few lines, fix the worst offender by hand, then run it through here again for the rest. You can also try our CSV Validator to see exactly which line is upsetting the parser.
Other CSV Tools You Might Need
A repaired file still deserves a second look. These pages let you check it, tidy it or turn it into another format: