CSV Cleaner

Clean a messy CSV: trim spaces, remove invisible characters and blank rows, collapse spaces, drop duplicates, fix headers and choose the output format.

Drop a spreadsheet or CSV here, or click to browseXLSX, XLS, ODS, CSV, TSV

About CSV Cleaner

The CSV Cleaner tidies a messy CSV or spreadsheet before you import it into another system, so imports stop failing on stray spaces and invisible characters.

What it fixes

Spaces at the start and end of cells, repeated spaces inside cells, invisible and control characters such as non-breaking spaces, blank rows, exact duplicate rows and duplicate header names.

A clear report

You see exactly how many cells and rows each step changed.

Output the way you need

Choose comma, semicolon, tab or pipe, LF or CRLF line endings, and a UTF-8 marker that helps Excel show accents correctly.

Good to know

The tool tidies cells but cannot know what your data means. Duplicate removal only drops rows that match in every cell; for smarter matching use the Excel Duplicate Remover.

Private

Files are read and written in your browser. Nothing is uploaded.

What is a CSV file?

CSV (comma-separated values) is plain text with one row per line and fields separated by commas. Fields that contain commas or line breaks are wrapped in double quotes.

How to use CSV Cleaner

  1. Drop your CSV or spreadsheet on the page and check the detected delimiter and encoding.
  2. Choose the clean-up steps you want, the text case and the output format.
  3. Press Clean CSV.
  4. Read the report and preview, then download the cleaned file.

Help & FAQ

What does the CSV Cleaner do?

It applies clean-up steps such as trimming spaces, removing invisible characters, blank rows and duplicates, and writes a cleaned CSV.

Which clean-up steps are on by default?

Trim spaces, remove invisible characters, remove empty rows and pad short rows. The others are off until you tick them.

Does it remove duplicate rows?

Yes, when you tick Remove exact duplicate rows. Only rows that are identical in every cell are removed.

What are invisible characters?

Characters you cannot see, such as zero-width spaces, a byte order mark, soft hyphens and non-breaking spaces. The tool removes them or turns non-breaking spaces into normal spaces.

Are leading zeros kept?

Yes. In the test, 00123 and 00456 stayed exactly as they were.

What does Make header names unique do?

It renames repeated or empty headers. In the test, the second Name became Name_2.

Can it open Excel files?

Yes.

Why do we see strange characters?

The encoding may have been guessed wrongly. Choose it by hand, for example Windows-1252 or Windows-1256, and clean again.

What does Formula-injection safe mean?

It neutralises cells that start with =, +, - or @, so a spreadsheet does not run them as formulas. It is a precaution, not a guarantee.

What does the UTF-8 BOM option do?

It adds a byte order mark that helps Excel recognise UTF-8, which can improve the display of accents and non-Latin letters.

Is our file uploaded?

No. It is cleaned in your browser. In a test, only the site's small analytics calls were made.

Does changing the text case change IDs and emails?

It changes all data cells, so use it only when that is what you want.

More in Office & Data

See all 28 in Office & Data