Text & Writing

Keep Lines Containing

Filter text to only the lines that contain a phrase.

Text & Writing

Keep Lines Containing

Local only
Everything stays in your browser

Your text is processed on your device — nothing is uploaded to a server.

How it works

A line is kept if the phrase appears anywhere in it.

Worked example

Set Phrase to error and leave Case-sensitive off. Matching is substring-based, not whole-word-based; use the regex filter for a precise pattern.

Input

ERROR timeout
INFO ready
error retry

Expected result

ERROR timeout
error retry

Good to know

Frequently asked questions

How do I use it?

Enter your text, adjust the options and press “Keep matching lines”. Check the result, then copy or download it.

How does it work?

A line is kept if the phrase appears anywhere in it.

Is my data uploaded?

No. Everything is processed in your browser and nothing is sent to a server. No account is needed.