Filter CSV
Keep the CSV columns and rows you need: conditions on text or numbers, column order, duplicates, sort.
Runs in your browser. Nothing is uploaded.
Updated
How to use Filter CSV
- Paste a CSV or open a file (up to 100 MB).
- Tick the columns to keep and add conditions for the rows.
- Press Filter CSV, check the preview and download the new CSV.
Filter CSV at a glance
Typical use: Get the name and email of every UK customer with 5 or more orders from a CRM export.
Runs in your browser; nothing is uploaded. Cells are copied exactly as they are.
When to use Filter CSV
Take only what you need from a big export: the email column of customers in one country, the orders above a certain amount, or a list without duplicate rows. It is the job you would otherwise do with Excel filters and copy-and-paste, or a short script.
Paste the CSV or open a file of up to 100 MB. The file is read once in the background; you can then change the columns and conditions and filter again without waiting.
Conditions
- Text tests (is, contains, starts with, ends with, and their opposites) compare the cell as text. Upper and lower case are ignored unless you untick the option.
- Number tests (=, ≠, >, ≥, <, ≤) only match cells that are plain numbers, such as 12, -3.5 or 1e3. A cell like “1,234”, “$5” or an empty cell never matches a number test, so it is left out rather than guessed.
- matches regex uses JavaScript regular expressions:
^Afor cells starting with A,@example\.com$for one email domain,^(UK|Ireland)$for either country. - With several conditions, keep rows that match all of them (and) or any of them (or).
Filter CSV example
From the sample customers list, keep the columns name and email, add the conditions country is UK and orders ≥ (number) 5, and tick “Remove duplicate rows”. The result is:
name,email Anna Smith,[email protected]
Anna appears twice in the file with the same details; the second copy was removed. Jo Lee has 0 orders, so that row is left out too.
What stays the same
Cells are copied exactly as they are: numbers aren’t reformatted, dates aren’t changed, leading zeros stay. Fields are put in quotes only when they need it (when they contain the delimiter, a quote or a line break), the same way Python and Excel write CSV.
Prefer the terminal?
The same with Miller (mlr), a free command-line tool for CSV:
mlr --icsv --ocsv filter '$country == "UK" && is_numeric($orders) && $orders >= 5' then cut -o -f 'name,email' then uniq -a customers.csvfilter keeps rows, cut -o -f keeps columns in the order given, uniq -a removes duplicate rows. Miller refuses files whose rows have different numbers of fields. After you press Filter CSV, the page shows the command for your own settings.
References
Frequently asked questions
Is my CSV uploaded?
No. The file is read and filtered by your browser on your device; this page sends nothing to our server.
How big a file can it handle?
Up to 100 MB. A file that size has around a million rows; reading it takes a few seconds, and filtering again after a change is faster because the file is kept in memory.
Excel shows strange characters instead of accents. What can I do?
Tick “Add a UTF-8 BOM”. Excel uses the BOM to know the file is UTF-8; without it, Excel on Windows often reads accents and other non-English letters wrongly.
Can I change the order of the columns?
Yes. Use the arrows next to each column name; the kept columns are written in the order shown.
How does it decide which rows are duplicates?
Two rows are duplicates when every kept column is exactly the same, including case and spaces. The first one stays. If you sort, it is the first one in the sorted order.
Can it convert the result to JSON or Excel?
Download the filtered CSV and open it in CSV to JSON / Excel / SQL, which turns it into JSON, an .xlsx file or SQL INSERT statements.