CSV cleaning guide

This guide describes what the cleaner does to a table in this browser. It is a planning note, not a hosted spreadsheet product or legal advice about a particular dataset.

RFC 4180 quoting

A field may be wrapped in double quotes. A comma, tab, semicolon, or line break inside those quotes is part of the cell, not a new column or row. A quote inside a quoted field is written as two quote characters.

The first record is treated as the header row. Shorter rows are padded. A UTF-8 byte order mark at the start of a file is ignored.

Delimiter detection

Auto-detect scores comma, tab, semicolon, and pipe against the first records and prefers a consistent column count of two or more. You can override the choice if a sheet uses a different separator.

Quoted commas do not force a comma delimiter. A tab-separated ledger should still be detected as a TSV.

Cleaning order

When a toggle is on, cells are trimmed, then completely empty rows are removed, then duplicates are dropped while the first occurrence is kept. A keyword filter looks only at visible columns. Sort is applied last and is numeric-aware when every non-empty value in the column is a number.

Hiding a column changes the preview and the exported file, but it does not recount empty or duplicate rows already removed.

Exports

CSV and TSV downloads follow RFC 4180: records end with CRLF, and fields that contain the delimiter, a quote, or a line break are quoted. JSON is a pretty-printed array of objects keyed by the visible headers. Markdown is a pipe table; pipes and line breaks inside cells are escaped.

Back to the cleaner

Questions

Does the cleaner change the original file on disk?

No. The local file is read into this tab. Downloads are new files. The original path is not overwritten.

How are duplicate rows chosen?

The first matching row is kept. You can compare every column, or only one header such as an order id or an email. Case-insensitive matching is optional.