# CSV Cleaner

> Trim cells, drop empty rows, remove duplicates. Runs entirely in your browser — nothing you paste is sent anywhere.

Source: https://toffeekit.com/tools/csv-cleaner

**Category:** [Data](https://toffeekit.com/category/data) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/csv-cleaner

**Also useful for:** csv, clean, duplicates, trim

## How it works

1. Paste your messy CSV into the Messy CSV box, or click Sample.
2. Choose which cleanups to apply: Trim cells, Drop empty rows and Remove duplicate rows.
3. Check the Clean CSV output on the right.
4. Click Copy or Save to download clean.csv.

## FAQ

### How do I remove duplicate rows from a CSV?

Keep Remove duplicate rows on. A row is dropped when every cell matches an earlier row, and the first copy is kept.

### How do I trim extra spaces in CSV cells?

Turn on Trim cells. Leading and trailing spaces are removed from every cell, so ' Ada ' becomes 'Ada'.

### Are duplicates case-sensitive?

Yes. Ada and ada count as different values. Rows are compared after trimming if Trim cells is on, so spacing differences will not hide duplicates.

### Does it keep my delimiter?

Yes. The delimiter is detected from your data, and the cleaned CSV is written with the same one.

### Does the header row get changed?

It is treated like any other row, so it is trimmed but otherwise untouched. A duplicate of the header further down is removed.

### Is CSV Cleaner free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so your files are processed on your device and never uploaded. It works on phones and computers alike.

## Privacy

CSV Cleaner runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [CSV to JSON](https://toffeekit.com/tools/csv-to-json) — Turn CSV rows into JSON objects.
- [JSON to CSV](https://toffeekit.com/tools/json-to-csv) — Flatten JSON into a CSV you can open in Excel.
- [XML ⇄ JSON](https://toffeekit.com/tools/xml-json-converter) — Convert XML to JSON and back.
- [Delimiter Converter](https://toffeekit.com/tools/csv-delimiter-converter) — Switch between comma, semicolon, tab and pipe.
- [CSV Viewer](https://toffeekit.com/tools/csv-viewer) — Open a CSV as a sortable, searchable table.
- [JSON Viewer](https://toffeekit.com/tools/json-viewer) — Explore JSON as a collapsible tree.

