EditSafely

Filter CSV Cells

Return data in a CSV file that matches a pattern.

Runs on your device, nothing uploaded

Condition
Valueneeded
Try:

0 chars · 0 lines

Output

Return data in a CSV file that matches a pattern.

Type or paste above to see the result here.

Example: Keep the rows that mention a city

What you paste never leaves this tab

Filter CSV Cells is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, a customer export full of names and emails is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Filter CSV Cells

  1. 1. Paste the CSV. Drop your rows into the input pane. Filtering works on whole records: a row stays or goes based on whether its cell in the chosen column, or any cell when no column is picked, meets the condition.
  2. 2. Write the pattern. Tap a column under Where, pick a Condition such as equals, greater than or matches regex, and type the Value. Greater than and less than read numbers like 1,234.50 and $12. Case-sensitive controls whether letter case matters.
  3. 3. Choose keep or drop. By default rows with a matching cell are kept, like grep. Tick Keep rows that do not match to invert that, like grep -v, and tick the Header row box under the input to protect your column names either way.
  4. 4. Copy the filtered rows. The output table holds only the rows that survived, with the matching cells tinted and a line such as Kept 2 of 5 rows. Copy them into a new file, a spreadsheet or the next tool in your cleanup chain.

When to use Filter CSV Cells

Filter CSV Cells is grep for tabular data: keep or discard rows based on whether their cells match a substring or a regular expression. It saves you from loading a whole file into pandas or a spreadsheet just to pull out the records that mention one thing.

  • Extracting one region's records. A global sales file needs to become a London-only file for a regional manager. Filter on the city name and copy out just those rows, header included.
  • Pulling error rows from a report. A batch job's result CSV mixes successes and failures. Filtering for the word FAILED isolates the problem records so you can retry or investigate only those.
  • Removing rows by regex. Test accounts all have emails matching @example\.com. Turn on the regular expression and keep-non-matching options together to strip every synthetic user from a production export.
  • Narrowing a file before sharing. A colleague needs only rows referencing one project code from a large timesheet export. Filter down to those records instead of sending the entire file.

Examples

Keep the rows that mention a city

Input

name,city
Ada,London
Grace,NYC

Output

name,city
Ada,London

Keep the rows where a number is above a limit

Input

name,mrr
Ada,49
Grace,199
Barbara,199

Output

name,mrr
Grace,199
Barbara,199

About the Filter CSV Cells tool

Filter CSV Cells runs as plain JavaScript in your browser tab, with no server behind it. Return data in a CSV file that matches a pattern. Whatever you put in stays on your device from start to finish.

The tool is part of EditSafely's CSV Tools section, 133 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.

You can shape the output with 6 settings, including Where, Condition, Value and Case-sensitive, and the result refreshes the moment you change one. 2 worked examples further down the page show exactly what the tool produces for real inputs.

That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.

Frequently asked questions

Does Filter CSV Cells cost anything?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All CSV Tools →