CSV cleaner: remove duplicates & blank rows
Choose cleaning rules, review their impact, and export CSV or Excel directly. Review duplicate groups, keep conflicting values by default, and preserve your source.
First visit · Step 1 of 3
Paste or upload
Choose a CSV file or paste text below. Processing stays in this browser; nothing is uploaded.
- 1 Paste or upload
- 2 Preview
- 3 Download
Skip anytime. This browser only stores that you finished or skipped — never your file. Storage details
- 01 Add data
- 02 Review
- 03 Export
Start with your source.
Loads the same teaching content as the public /samples/ CSVs into this page. Nothing is uploaded. Pick one, then Preview. The status line states the expected preflight outcome and an honest limit. You can also download leading-zeros.csv, scientific-notation.csv, date-looking-text.csv, phone-numbers.csv, sku-codes.csv, zip-plus-4.csv or long-ids.csv.
CSV/text only: 5 MiB, 20,000 records, 256 columns, 250,000 cells. Processing stays in your browser. Keep an original copy.
Auto detection suggests a separator. Export is blocked only when detection is uncertain — if Comma (or another choice) is already selected and confirmed, you do not need to resolve it again.
Encoding applies to selected files. Pasted text is already decoded by your browser.
Keyboard: Ctrl or ⌘ + Enter runs Preview from the workbench. Escape moves focus to the error if one is shown. Undo last change restores the previous file, paste, sample or clear.
Add a file, paste some text, or try the example. Nothing is uploaded.
Review your result
Local preflight summary
A local copy of these checks (topic, level, detail, what to do). It is not your data file and is not uploaded.
Review duplicate groups
Compare the original parse with the current result. Changed cells are highlighted on the result view. Download always exports the result, not the original-parse view.
Before you download
Export this checked result directly. Changing the format does not change the source or cleaning rules.
Text encoding
UTF-8 · CRLF record separators
CSV cannot store column types. Excel column choices below do not apply to CSV.
Excel column types · Text by default
Keep IDs, phone numbers and long references as Text. Choose Number only for quantities you want to calculate. Use plain decimals with a dot, without spaces, commas, currency or exponents. Empty fields stay blank. We conservatively allow up to 15 significant digits.
Two-decimal display changes appearance, not the stored value; Excel may round what you see. Dates and formulas are not inferred. Number display may differ from the input spelling.
Text by default in Excel; choose numeric columns deliberately. CSV has no column types. Keep the original and check the downloaded file.
What exactly changes?
Trim removes edge whitespace from data fields, including tabs and edge line breaks, while preserving internal whitespace. Empty-record removal tests every field after optional trim. Duplicate removal compares all fields or selected named columns as strings. Matching groups with differing values stay intact by default, including earlier repeated copies. You can explicitly choose keep-first to remove later whole records. Records with an empty partial-key identifier are excluded from duplicate removal. The header is excluded. Ignore case compares lowercase keys; output spelling stays unchanged.
Review the impact before downloading
Counts cover the whole input; examples show at most the first ten change events with source record numbers. Trimmed-cell counts include cells in subsequently removed records. Your raw input stays intact. Restore original preview turns every rule off and rebuilds from the unchanged parsed source. Uneven nonempty records remain visible and block export; an entirely empty physical record is removable only when you choose that rule.
Choose safe duplicate keys → · Understand empty records and whitespace → · Check files before you merge them → · All how-to guides →
Inputs this cleaner accepts
The same CSV/text sources as the other tools: a local file, a problem sample, or pasted text, with comma, semicolon, tab or pipe delimiters. Cleaning rules start off. Order is trim → empty-record removal → duplicate review. Duplicate keys are either every column or named columns with one-based labels. Conflicting groups stay intact unless you choose keep-first. Records with an empty selected identifier are excluded from duplicate removal.
What you download
Default output is UTF-8 CSV with a -cleaned suffix. XLSX is available with the same Text defaults as the converter. Duplicate review CSV is a separate -duplicate-review.csv file: it is not the cleaned data. After Preview you can switch Original parse and Result; changed cells are highlighted. Download always exports the result. Restore original preview turns rules off; Undo last change restores the previous input or rules.
What CSV clean cannot do
- Merge fields, add quantities, keep the newest date, or prefer a nonempty cell inside a group.
- Treat
00127and127as the same key, or apply locale-aware case folding. - Delete a useful row that has one blank cell when you only asked to remove empty records.
- Pad uneven nonempty records or silently drop extra fields to force a download.
Choose a duplicate rule that fits the record
In this synthetic example, two rows have the same product code but different quantities:
product_id,quantity 00127,12 00127,7 00127,12
With a header and full-row duplicate comparison, the last row is removed and two data rows remain. Selecting only product_id as the key with the recommended conflict policy keeps all three data records, including both quantities. Choosing keep-first explicitly leaves only the first data record and discards the quantity of 7. Neither option adds quantities or merges conflicting values.
Keep every cleaning option off for an initial preview. Select one rule, preview its effect and use Restore original preview if the rule was too broad. A missing cell in an otherwise useful row is different from a row whose fields are all empty.
Check more than the first few records
The preview displays twenty data records per page and every parsed column. Scroll inside the table for wide files, use Next for later records, or filter a specific column. The source record number is a preview label, never an extra output column. Quoted line breaks belong to a field, so a record can span several physical lines.
Choose All result records to export the complete result, or Only records matching the filter to export all matches across all pages. The current preview page does not determine the download. The header, when enabled, is retained in either export. Zero matches disable a matching export.
What happens to my original file?
Cleaning runs on a copy of the parsed source in memory. Downloads create a new -cleaned file. Restore original preview turns every rule off without deleting your paste. Undo last change restores the previous input or the rules you had before Restore or Clear.
Does empty-record removal delete a row with one blank cell?
No. A row is removed only when every field is empty after optional trim. A quoted line break inside a note is field content, not an extra blank row. See empty rows.
What does the local preflight summary actually check?
After Preview, it reports encoding/BOM hints, delimiter certainty, empty rows, whole-row duplicate risk, identifier risks (leading zeros, 16+ digit tokens, exponents, ZIP+4 shapes, plus-prefixed phones), header blanks/duplicates, date-looking text, formula-like fields, edge whitespace and replacement characters. Each row includes a What to do step. It is heuristic, runs only in this browser, and does not change your file. You can download that summary as a CSV.
Why is download blocked, and what is the file named?
Uneven nonempty records, an empty export scope, or unsafe Number columns block download. Duplicate review is a separate -duplicate-review.csv. Ready data files use -cleaned, plus -matched for a filter export.
How can I prove nothing was uploaded?
Open DevTools → Network, preserve the log, then preview and download a synthetic file. Your CSV fields should not appear in a POST body. Static assets and optional analytics beacons are expected. See the prove zero-upload guide.
How do I compare original rows with the cleaned result?
After Preview, use Original parse and Result. Changed cells are highlighted on the result view. Download always exports the result, not the original-parse view.