How to Find and Replace Text in a List Online

A word processor's find-and-replace works fine for a document, but a plain list of hundreds of lines - IDs, URLs, exported data - needs the same substitution applied consistently across every line at once, usually with more precision than a basic text editor offers.

Quick answer

To find and replace text in a list, paste the text into a find-and-replace tool, type what to find and what to replace it with, and the result updates live. Choose Literal for exact text matches, Whole Word to avoid matching inside other words, or Regex for pattern-based replacement with capture groups - and chain multiple substitutions together if you need more than one change.

Try it on your text

Open Find & Replace →

Three matching modes

  • Literal - matches your exact text anywhere it appears, including as part of a longer word. Searching "cat" matches "cat", "catch", and "concatenate".
  • Whole Word - only matches complete words. Searching "cat" with this on matches only standalone "cat", not "catch" or "concatenate".
  • Regex - full pattern matching, including capture groups for rearranging text ($1, $2, etc.).

Chaining multiple replacements

Real cleanup jobs rarely need just one substitution. Click + Add Find-Replace to stack up to 8 pairs - each one runs on the result of the one before it, so you can strip one pattern, then reformat what's left, then fix a second issue, all in a single pass. Each pair gets its own highlight color in the output so you can trace exactly which rule changed what.

Using capture groups to rearrange text

Regex mode supports capture groups for reshaping text, not just substituting it. Wrap the parts you want to keep in parentheses in the Find pattern, then reference them by number in Replace:

Find: (\w+)@(\w+) · Replace: $2/$1

john@example
mary@acme

Output

example/john
acme/mary

Need to remove whole lines, not just parts of them?

Filter Lines keeps or removes entire lines based on a pattern.

Try Filter Lines →

Frequently Asked Questions

How do I find and replace text across a whole list at once?
Paste your text into Find & Replace, type what to find and what to replace it with. The output updates live as you type - no button to press, and no line-by-line editing needed.
What's the difference between Literal, Whole Word, and Regex modes?
Literal matches your exact text anywhere it appears, including inside other words - "cat" matches "cat", "catch", and "concatenate". Whole Word only matches "cat" as a complete word, not as part of a longer one. Regex unlocks pattern-based matching for anyone who needs it.
How do I delete text instead of replacing it with something else?
Leave the Replace field empty. Every match gets removed and the surrounding text closes up around the gap.
Can I make more than one substitution at once?
Yes - click "+ Add Find-Replace" to stack up to 8 pairs that run in sequence, each one operating on the previous one's output. Each pair is color-coded so you can see which rule changed what in the result.
Can I use capture groups to rearrange parts of the text?
Yes, in Regex mode. Wrap parts of your pattern in parentheses, then reference them in the Replace field as $1, $2, and so on. Finding (\w+)@(\w+) and replacing with $2/$1 turns "john@example" into "example/john".
Does it replace every match, or just the first one?
Both modes are available: All replaces every occurrence across the whole input, and First Only replaces just the first match and leaves the rest untouched.
Can I see exactly what changed?
Each replacement is highlighted in the output in the color of the rule that made it. Toggle the eye icon to also show the original deleted text struck through in red, so you can review every change before copying the result.
How do I remove entire lines that contain a pattern, not just text within them?
Find & Replace only edits text inside lines - it doesn't remove whole lines. For that, use the Filter Lines tool set to Remove matching mode instead.

Share this tool

Featured on ToolDirs
© 2026 ListDiff

Free online list and text processing tools.