๐Ÿ–ผ๏ธ Compress Image (to 20/50/100/200 KB) ๐Ÿ“„ Compress PDF (to 100/200/500 KB) ๐Ÿ“Š PDF to Excel / CSV ๐Ÿ–ผ๏ธ PDF to JPG ๐Ÿ“„ JPG to PDF ๐Ÿ”„ Image Converter ๐Ÿงท Merge PDF ๐Ÿงน CSV Cleaner ๐Ÿ  All tools ๐Ÿ“š Guides About Contact
Guide

How to clean a messy CSV before Excel

The five problems that break a CSV import โ€” and how to fix them in one pass.

CSV is how data moves between systems, and it's almost always a little broken on arrival: duplicated rows, empty lines, invisible spaces, and disagreements about the separator character. Import that straight into Excel and you get misaligned columns and double-counted totals. Here's what goes wrong and how to fix it before it reaches your spreadsheet.

The five common problems

Fixing them in one pass

The CSV cleaner handles all five together. Drop or paste your file and it will remove duplicate and empty rows, trim whitespace from every cell, optionally delete blank columns, and detect the delimiter automatically โ€” with the option to override it. Crucially, you can also convert the delimiter on the way out, so a semicolon file becomes a standard comma file that opens correctly in an English-language Excel.

  1. Load the file (drop the CSV or paste the text).
  2. Tick the cleanups you want โ€” the sensible defaults suit most files, and "first row is a header" protects your column names.
  3. Set the output delimiter if Excel is mangling your columns โ€” comma is safest for English Excel.
  4. Download the clean CSV and import it.

Importing into Excel the right way

Even a clean CSV can misbehave if you just double-click it โ€” Excel guesses the delimiter and the encoding, and sometimes guesses wrong (turning long numbers into scientific notation, or dropping leading zeros from IDs and postcodes). For important data, use Excel's Data โ†’ From Text/CSV instead, which lets you confirm the delimiter and set columns to text where needed. Cleaning the file first means that import step has far less to trip over.

Where the data comes from

A frequent pattern is extracting a table from a PDF with PDF to Excel, then cleaning the CSV here before it goes anywhere else โ€” the extraction gets the numbers out, the cleaner makes them tidy. And because everything runs in your browser, even a customer list or a financial export never leaves your machine.