Guide
Clean a messy CSV
Exports arrive with padded cells, blank rows, duplicate records, and a column that is numbers half the time. Cleaning it is usually five or six small steps — and the order matters more than the steps themselves.
Clean a CSV nowOrder of operations
A useful default: fix structure first, then values, then rows. Trimming before deduplicating and filling blanks before grouping saves the most rework.
- 1. Trim whitespace. Space padded headers and cells break filtering, matching, and joins. Trimming is the first step in almost every cleanup.
- 2. Drop empty rows and columns. Trailing blank rows from an export inflate row counts and show up as nulls later. Blank columns are usually leftover formula output.
- 3. Fill blank cells. Give explicit values to gaps: Unknown, 0, or N/A. Explicit values survive a group by; blanks silently disappear from counts.
- 4. Coerce type. Normalize a column as text, number, boolean, or a date. Values that cannot be parsed are kept unchanged instead of being dropped.
- 5. Find and replace. Fix inconsistent labels — "NY", "N.Y.", "New York" — before grouping or joining on that column.
- 6. Remove duplicates. Dedupe by a key column or by whole rows, keeping the first or last copy. Do it after trimming, never before.
Cleaning without a script
If you already write pandas or DuckDB, keep doing that — the pipeline is for the case where you have a file, a browser, and no environment. Nodes are added from a command palette, connected by dragging, and evaluated in dependency order, so changing one step only re-runs what depends on it.
Need the opposite of cleaning? The same graph covers filtering, sorting, splitting and merging columns, grouping, joining a lookup table, and comparing two files.
Questions
- Can I see the effect of each step?
- Yes. Every node shows a preview and a row count, so you can tell whether a step removed more than it should before continuing.
- Does anything get uploaded while cleaning?
- No. The file is parsed and every transformation runs in your browser, in web workers. There is no backend and no account.
- Can I reuse the same cleanup next month?
- The pipeline is a graph you can keep open, and the app can export the recipe so the same steps can be replayed on a new file.
- What if a step breaks the data?
- Nothing is destructive: the original file is untouched, steps can be disabled or deleted, and you export a new file only when the preview looks right.
Start with your file
Free, no sign-up, nothing uploaded. Files up to 100 MB, exports to CSV, TSV, JSON, or XLSX.
Open the CSV app