Remove Lines Containing
Filter pasted text by removing any lines that contain a specific word or phrase, with optional case-insensitive or whole-word matching.
Input text
Enter the text you want to remove, then run the filter.
Filtered output
The output keeps line breaks intact.
Remove matching lines
When enabled, the tool removes lines only when the search term appears as its own word. For example, “the” matches “the”, but not “they”, “there”, or “theater”.
How to use
Follow these simple steps to use the tool.
Add the text block you want to filter into the input area, with one item or sentence per line.
Type the word or phrase you want the tool to look for, then choose whether to ignore case or match whole words only.
Filter the matching lines, review how many were removed, and copy the remaining lines if the result looks right.
What it does
See what this free online tool can help with.
Filters every line that contains the text you specify.
Can ignore case so uppercase and lowercase matches are treated the same.
Can match whole words only, so larger words with the same letters can stay in the output.
Shows how many lines were removed and kept.
Line removal tool runs in your browser, so your text stays on your device.
Supported formats and limits
Review supported inputs, outputs, and practical limits for this tool.
Formats and options
- Plain text pasted into the editor
- Single-line or multi-line text blocks
- Modern desktop and mobile browsers
Things to know
- Matching is based on whether the line contains the text anywhere inside it unless you turn on whole-word matching.
- This tool filters matching lines only. It does not rewrite or trim the remaining text.
- If the match box is empty, the tool will wait for you to enter a word or phrase first.
FAQ
Answers to common questions about this tool.
Does the tool remove the matching word only, or the whole line?
It removes the whole line if that line contains the match text.
What does ignore case do?
It treats uppercase and lowercase letters as the same, so matching one version can also catch other capitalizations.
How are partial matches handled?
By default, lines are removed when they contain the match text anywhere inside them. Turn on whole-word matching to remove lines only when the search term appears as its own word.
Why use a free online line filter?
Filtering matching lines is useful when you are cleaning logs, trimming lists, or filtering copied text without opening a spreadsheet or code editor.
This Bukmrk tool is built for quick line-by-line filtering. Paste your text, enter a phrase to look for, and filter matching lines while keeping the rest of the block intact.