Home / Free tools / Text & Data / CSV Cleaner

CSV Cleaner

Paste or open a CSV file, tidy it with a few switches, check the preview and download the cleaned file. Trim spaces, remove duplicates, blank rows and hidden characters. The file never leaves your device.

Clean up
Output

Runs in your browser. Nothing you paste or choose is uploaded or stored.

What this CSV cleaner does

CSV files exported from shops, spreadsheets and ad platforms are rarely tidy. Cells have spaces at the ends, the same product appears twice with different capitals, blank rows sit between records, and invisible characters make two identical-looking values different. These problems break imports, product feeds, lookups and pivot tables in ways that are hard to see. This tool fixes the common ones in one pass and shows you a preview before you download anything.

The work happens in your browser. The file is parsed and cleaned on your device, nothing is uploaded, and no copy is stored. That matters for customer lists, order exports and any file that holds personal data.

What each option does

How to use it

  1. Paste your CSV into the box, or choose a file. The delimiter is detected for commas, semicolons, tabs and pipes, and you can set it by hand.
  2. Leave "First row is a header" on if the first line holds column names. The header is never treated as a blank row or a duplicate.
  3. Switch on what you need. The status line says how many cells were tidied and how many rows were removed, and the table shows the first 50 rows of the result.
  4. Press Download cleaned CSV. The file is saved as name-cleaned.csv, so your original is never overwritten.

Worked example

Load the example. It has a header and five lines below it: " MUG-01 " with spaces around the SKU and "Ceramic mug" with a double space, MUG-02 whose name starts with a non-breaking space and ends with a space, a blank row of commas, a lowercase "mug-01" that repeats the first product, and MUG-03. With trimming, space collapsing, invisible-character removal, blank-row removal and duplicate removal that ignores case, the result has the header and three data rows: MUG-01 Ceramic mug 12.50, MUG-02 Steel bottle 18, and MUG-03 Tea cup 9. One blank row and one duplicate were removed, and three cells were tidied. Without ignoring case, "mug-01" would have been kept, which is why the case switch exists.

Where sellers use it

Tips for reliable results

Keep a copy of the original file and check the preview and the row count before you replace anything. If the numbers look wrong, make sure the delimiter was detected correctly: a European file that uses semicolons has commas in its decimal numbers, and reading it as comma-separated would split every price in two. If a column contains several lines of text per cell, they must be inside quotes, and the cleaner keeps them that way. If the data has no header, switch the header option off so that the first row is cleaned like any other.

What the cleaner does not do

It does not reformat numbers or dates, fix spelling, merge near-duplicates such as "Mug" and "Mugs", or check the meaning of values. It handles up to 300,000 rows and 25 MB per file, which is fine for most shop exports but not for very large datasets. Duplicates are found by exact matching after the cleaning options are applied, so choose the columns carefully when you remove duplicates by key.

Questions

Is my CSV file uploaded?

No. The file is read and cleaned in your browser and the download is created there. You can disconnect from the internet after the page has loaded and it will still work.

How large a file can it handle?

Files up to 25 MB and 300,000 rows. Larger input is cut at that limit and the tool tells you. The preview shows the first 50 rows, but the download contains every row.

How does duplicate removal work?

The first occurrence of a row is kept and later rows with the same values are removed. You can compare whole rows or only the columns you choose, such as SKU, and you can ignore upper and lower case. The header row is never removed.

What are invisible characters?

Zero-width spaces, byte-order marks and non-breaking spaces often come in from web pages and spreadsheets. They look like spaces or nothing at all, but they stop two values from matching. The cleaner removes them, or turns non-breaking spaces into normal spaces.

What does the formula protection do?

Spreadsheet programs run cells that start with =, +, - or @ as formulas, which can be abused when a file is opened. With the option on, such cells get a leading apostrophe. Plain numbers such as -5 are left alone. Turn it off if you need the exact text.

Why does the download start with a byte-order mark?

The file is saved as UTF-8 with a byte-order mark so that Excel shows accented characters correctly. Other programs ignore it.

Does it change the contents of my cells?

Only in the ways you select: trimming, collapsing spaces and removing hidden characters. Quoted cells with line breaks and commas are kept intact, and numbers and dates are not reformatted.

Google, Merchant Center, YouTube, LinkedIn, Indeed, Glassdoor and Shopify are trademarks of their owners. Van Born Labs is independent and not affiliated with them. Google's own help pages are the final word on its rules.