— Filter Lines

Free Online Line Filter Tool

Quick Tips

  • This tool runs entirely in your browser - your data stays private.
  • Press Ctrl+V (Cmd+V on Mac) to quickly paste text.
  • Use the Copy button to save your result to clipboard.
  • Bookmark this page for quick access!

Filter and keep only lines matching specific criteria.

Examples

Input
apple
banana
apricot
cherry
Filter: contains 'ap'
Output
apple
apricot
Input
Error: File not found
Info: Process started
Error: Connection failed
Output
Error: File not found
Error: Connection failed
Input
john@email.com
no email here
jane@test.org
Output
john@email.com
jane@test.org
Input
TODO: Fix bug
DONE: Update docs
TODO: Add tests
Output
TODO: Fix bug
TODO: Add tests

Frequently Asked Questions

Include mode keeps only lines matching your criteria, removing everything else. Exclude mode removes lines matching your criteria, keeping everything else. Choose based on whether you want to extract or eliminate matches.

Yes, enable regex mode to use regular expression patterns for filtering. This allows complex pattern matching like finding lines with email addresses, phone numbers, or any custom format.

"Starts with" only matches lines beginning with your text. "Contains" matches lines with your text anywhere within them. Use "starts with" for prefix filtering.

You can filter the results of a previous filter to apply multiple conditions. This layered approach lets you progressively narrow results using different criteria.

Yes, toggle case sensitivity to control matching. Case-insensitive finds all capitalizations; case-sensitive matches only exact letter case.

Yes, all filtering happens locally in your browser. Your text is never sent to any server, ensuring complete privacy for your content.

Cookie Preferences

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.

Cookie Preferences

Manage your cookie settings

Essential Cookies
Always Active

These cookies are necessary for the website to function and cannot be switched off. They are usually set in response to actions made by you such as setting your privacy preferences or logging in.

Functional Cookies

These cookies enable enhanced functionality and personalization, such as remembering your preferences, theme settings, and form data.

Analytics Cookies

These cookies allow us to count visits and traffic sources so we can measure and improve site performance. All data is aggregated and anonymous.

Google Analytics _ga, _gid

Learn more about our Cookie Policy