✍️ TextWonder 📄 PDFWonder 📁 DocWonder 🖼️ ImageWonder 🛠️ DevWonder 🎓 StudentWonder 🧮 CalcWonder 🩺 HealthWonder 🎨 ColorWonder 💾 DataWonder 📐 UnitWonder
TextWonder

Filter Text Lines Online Free

Keep or remove lines matching a word, phrase, or regex pattern.

What is Filter Text Lines?

Filters the lines of text based on a search pattern — either keeping lines that match (include mode) or removing them (exclude mode). Supports plain text matching, case-insensitive matching, and regular expression patterns.

Common Use Cases

Extracting relevant lines from log files, filtering a contact list by domain, removing lines containing specific words, grep-like filtering in the browser, and data cleaning.

How It Works

Splits input on newlines, tests each line against the pattern using String.includes() or RegExp.test(), and keeps or removes based on the selected mode.

Frequently Asked Questions

Can I use regular expressions?

Yes — enable Regex Mode to use full JavaScript regular expression syntax.

What is Include vs Exclude mode?

Include mode keeps only lines that match your pattern. Exclude mode removes lines that match and keeps everything else.

Related Tools