Remove lines containing a word

Remove every line that contains a given text, or keep only those lines.

Original text
Result

Lines containing a word is a free tool that runs entirely in your browser, with no data ever sent to a server. Remove or keep only the lines that contain a given text.

What it's for

Filtering an order log to keep only cancelled ones, removing comment lines from a config file, or isolating entries that mention an error.

What this tool does not do

This tool only applies the transformation described above, with no spelling correction and no understanding of the text's meaning. A text of tens of thousands of lines is processed instantly ; beyond that, the only limit is your device's memory.

Frequently asked questions

Can I search for several words at once?

This version only searches for one text at a time. For a more complex filter, the find and replace tool accepts regular expressions.

Is my data sent to a server?

No : the text you type or paste is processed entirely in your browser, on your device. It is never transmitted to a server.

Do I need to create an account or install anything?

No : the tool works directly on this page, with no sign-up and no install.