Remove Lines Containing
Delete every line that contains a word, or keep only the lines that do.
Remove Lines Containing a Word
Filter any text line by line. Enter one or more keywords and every line that contains them is removed – or switch the action to keep only the matching lines, like a browser-based grep.
Typical uses
- Log files – hide noisy INFO lines, or keep only ERROR and WARN entries.
- Keyword lists – drop keywords that contain brand names or unwanted terms.
- Email and URL lists – remove every address from a specific domain.
- CSV exports – delete rows that contain a certain status before importing.
Matching options
- Multiple keywords separated by commas.
- Ignore case to match "Error", "ERROR", and "error" alike.
- Whole words only so "cat" does not match "catalog".
- Regular expressions for advanced patterns.
The filter runs live in your browser, so you can adjust keywords and see the result immediately. To remove repeated lines instead, use Remove Duplicate Lines.
Frequently Asked Questions
Can I filter by several words at once?
Yes. Separate keywords with commas. A line is matched if it contains any of the keywords.
How do I keep only the matching lines instead?
Change the Action option to 'Keep only lines containing'. The tool then works like grep and returns only the lines that include your keywords.
Does it support regular expressions?
Yes. Enable 'Regular expression' and type a pattern such as ^\d{4}- or (error|fail). The whole field is used as one pattern in regex mode.