• EasyStackTools191+ Free Tools
    • Word Counter
    • Character Counter
    • Text Case Converter
    • Slug Generator
    • Remove Duplicate Lines
    • Lorem Ipsum Generator
    • Reverse Text
    • Remove Extra Spaces
    • Line Break Remover
    • Word Frequency Counter
    • Randomcase Text
    • Invert Text Case
    • Repeat Text
    • Replace Text
    • Truncate Text
    • Trim Text
    • Left-Pad Text
    • Right-Pad Text
    • Rotate Text
    • Circularly Rotate Text Left
    • Circularly Rotate Text Right
    • Delete Empty Lines
    • Shuffle Text Lines
    • Reverse Text Lines
    • Convert Spaces to Tabs
    • Convert Tabs to Spaces
    • Center Text
    • Right-Align Text
    • Justify Text
    • Word Wrap
    • Split into Words
    • Number Text Lines
    • Prefix Text Lines
    • Suffix Text Lines
    • Prefix and Suffix Text Lines
    • Join Text Lines
    • Split Strings
    • Find Longest Text Line
    • Find Shortest Text Line
    • Format Text Columns
    • Sort Text
    • Sort Numbers
    • Sort Words
    • Sort Text by Length
    • Sort IP Addresses
    • Filter Text Lines
    • Grep Text
    • Head Text
    • Tail Text
    • Extract Line Range
    • Find Letter Frequency
    • Find Phrase Frequency
    • Extract All Emails
    • Extract All URLs
    • Extract All Numbers
    • Text Statistics
    • Convert Text to Binary
    • Convert Binary to Text
    • Convert Text to Octal
    • Convert Octal to Text
    • Convert Text to Decimal
    • Convert Decimal to Text
    • Morse Code
    • UTF-8 Encode/Decode
    • Base32 Encode/Decode
    • Uuencode / Uudecode
    • Strip HTML Tags
    • Convert Text to HTML Entities
    • Remove Text Character Accents
    • Remove Text Punctuation
    • Add Thousands Separators
    • Add Backslashes
    • Strip Backslashes
    • Extract Regex Matches
    • Replace Regex Matches
  1. Home
  2. Text Tools
  3. Filter Text Lines

Filter Text Lines

Filter lines by text or regex. Include only matching lines or exclude matching lines. Keep or remove.

Read the guide

Filtered lines

Output will appear here...

Frequently Asked Questions

It keeps only lines that match a pattern (include) or removes lines that match (exclude). You can use plain text or regex.

Related Tools

  • Grep Text

    Search text for lines matching a pattern. Regex support. Show only matching lines or show line numbers.

  • Replace Text

    Find and replace text with optional regex support. Replace first match, all matches, or use regular expressions.

  • Sort Text

    Sort lines of text alphabetically. A-Z or Z-A. Case sensitive or insensitive. Clean and organize lists.

  • Word Counter

    Free online word counter tool. Count words, characters, sentences, and paragraphs instantly. Perfect for writers, students, and SEO professionals.