List Tools

Line Filter

Keep only the lines that contain a word or phrase, or hide them.

PrivateYour text is processed on your device and never uploaded.
Input
Result
0 chars · 0 lines

Pulling only the lines that contain a word usually means a manual scan or a regular expression.

Line Filter keeps or removes lines based on whether they contain the text you type.

How to use Line Filter

  1. Paste the lines you want to filter into the input box.
  2. Type the text to match and optionally invert, and Line Filter keeps or drops the matching lines.
  3. Copy the filtered lines, or download them as a text file.

Use cases

Good to know

Line Filter checks each line for the text you enter, case-insensitively, and either keeps the matching lines or, when inverted, removes them. Empty lines are dropped, and the rest of each kept line is left unchanged.

Frequently asked questions

Is the match case-sensitive?

No. The contains check ignores case, so a lowercase term still matches a capitalised line.

What does the invert option do?

Inverting keeps the lines that do not contain the text and removes the ones that do.

Does it match anywhere in the line?

Yes. A line is kept if the text appears anywhere within it, not only at the start.

Related List Tools