Make deliberate changes

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.

YOUR WORKBENCHLocal processing
  1. 01 Add data
  2. 02 Review
  3. 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.

Choose cleaning rules

Rules start off. Order: trim → remove empty records → review duplicates. The header is excluded.

Preview once to load column names. A key identifies matching records; it does not decide which business records should be deleted.

Duplicate comparison & conflict policy

The recommended policy removes repeated copies only from groups without conflicts. Keep-first can discard useful values. Neither policy merges fields.

Preview after changing a rule. Restore turns every cleaning rule off and keeps the raw input intact.

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.

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

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.

Sources: RFC 4180: CSV format; Microsoft: duplicate records. Behaviors and limits above describe TableMender specifically.