Text Tools
Line Filter
Filter text by line. Keep or remove lines that match a plain string or regex. Multiple patterns, case toggle, whole-line mode, line numbers, no signup.
Quick presets
Filtered output
Keep matching, substring mode, case-insensitive
Output updates instantly. Everything runs in your browser. Text is never uploaded.
Input lines
0
Matched lines
0
Output lines
0
Blanks skipped
0
Options
How to use
- Paste your line-oriented text into the Input text box. Logs, lists, exports, source code, or anything where each line is a unit work.
- Type one pattern per line into the Patterns box. Patterns can be plain substrings (default) or JavaScript regex when you switch the Pattern type.
- Pick Keep matching or Remove matching under Action. Output updates instantly as you type.
- Tune the Match rules: case sensitivity, whole-line match, trim before matching, skip blank lines, and optional line-number prefix.
- Copy the filtered output or download it as a .txt file. Check the per-pattern hit counts at the bottom to confirm each rule did what you expected.
About this tool
Line Filter is a grep-style line filter that runs entirely in your browser. Paste any line-oriented text, type one pattern per line in the patterns box, and choose whether to keep the lines that match or remove them. Patterns can be plain substrings or full JavaScript regular expressions, and you can require any pattern to match (OR) or every pattern to match (AND). Toggle case sensitivity, switch to whole-line matching when you want the pattern to equal the entire line, trim leading and trailing whitespace before comparing, skip blank lines automatically, and optionally prefix every kept line with its original 1-based line number for traceability. A per-pattern hit counter shows how many lines each rule matched, and invalid regex patterns are flagged with the underlying error so a single bad rule never silently drops your output. Useful for triaging server logs, pulling specific entries out of CSV exports, cleaning email or domain lists, isolating TODO comments in source files, extracting only headings from a Markdown dump, or any task that would normally reach for grep, ripgrep, or a Find dialog. Everything stays on your device. There is no upload, no server processing, no rate limit, and no signup.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
Find and Replace
Find and replace text in plain or regex mode with live match highlighting.
Open tool
TextDuplicate Line Remover
Paste a list, dedupe lines in your browser with rich options and live stats.
Open tool
TextText Sorter
Sort lines alphabetical, natural, numeric, length, random, or reverse with dedupe.
Open tool
TextText Cleaner
Remove duplicate lines, blank lines, extra spaces, tabs, and invisible characters.
Open tool
DeveloperRegex Tester
Live regex testing with highlights, capture groups, and replacement preview.
Open tool
TextText Diff
Side-by-side line, word, and character diff with a unified patch.
Open tool