Category: Text tools
Text Line Filter
Keep or drop lines that match a search or pattern
Paste text and keep only the lines that contain, do not contain, or match a regular expression, with case sensitivity and invert options. Runs entirely in your browser.
2 of 5 lines matched.
error: disk full error: timeout waiting for response
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
Filtering a log dump or exported list down to the relevant lines usually means reaching for the command line. This tool does the same job in the browser: test every line for plain text or a regular expression, choose whether the match should be case-sensitive, and optionally invert the result to keep the lines that do not match instead.
How to use it
- Paste the text you want to filter, one item per line.
- Enter a search term or a regular expression and choose the match mode.
- Turn on invert to keep the non-matching lines instead, then copy the result.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- Is my text uploaded anywhere?
- No. Filtering runs entirely in JavaScript in your browser; nothing you paste is sent anywhere.
- What happens if my regular expression is invalid?
- The tool reports that the pattern is invalid instead of filtering, so you can fix it before continuing.
- How does invert interact with the match mode?
- Invert flips whichever mode is selected, so it can also be combined with regex mode to keep only the lines a pattern does not match.