CSV cleaner
Tidy a messy CSV export before you import or analyse it. Paste the data or open a file of up to 20 MB, and the cleaner trims stray spaces, collapses double spaces, drops empty rows and empty columns, and removes duplicate rows, keeping the first one. Compare whole rows or only the columns you choose, such as an email column, and ignore case if you like. Quoted fields with commas and line breaks are handled properly, and nothing leaves your browser.
Delimiter
How to use the CSV Cleaner
- 1
Add the CSV
Paste it or open a .csv file.
- 2
Choose the delimiter
Auto-detect, or pick comma, semicolon, tab or pipe.
- 3
Pick the clean-ups
Trim, empty rows and columns, duplicates.
- 4
Choose key columns
Optional: compare only these columns for duplicates.
- 5
Copy or download
The cleaned CSV, with a summary of what changed.
When to use it
- Remove duplicate contacts from a mailing list export.
- Clean a spreadsheet export before importing it elsewhere.
- Drop empty columns from a wide report.
Limits
- Files up to 20 MB.
- Values are compared as text; 1.0 and 1 are different.
- The output always uses UTF-8 and the chosen delimiter.
Privacy
Your data is cleaned in your browser. Nothing is uploaded or stored.
Frequently asked questions
Which duplicate is kept?
The first one, in the original order.
Can I find duplicates by one column?
Yes. With a header row, tick the key columns, such as email, and rows that match in those columns count as duplicates.
Does it change my data?
Only as you choose: trimming spaces, collapsing double spaces and removing rows or columns. Quoting is added only where CSV needs it.
Is my file uploaded?
No. The file is read and cleaned in your browser.
Why is the downloaded file marked UTF-8?
It starts with a byte-order mark so Excel opens accented characters correctly.
Related tools
People also use
- JWT Generator & SignerCreate and sign JSON Web Tokens with HMAC, RSA or ECDSA keys, entirely in your browser.
- Base64 Encoder & DecoderEncode and decode Base64 and Base64url, text or files.
- URL Encoder & DecoderPercent-encode or decode URLs and see their query parameters.
- UUID GeneratorBulk UUID v4 and v7 generator with a UUID inspector.
Last updated November 22, 2026 · How we build and test our tools