Find and Replace Text

Type a search term and a replacement, choose your match mode, and the output updates as you type.

Input
Type or Drag & Drop a file
search
arrow_forward
Output
Output will appear here...

Frequently Asked Questions

How does find and replace work?
Paste your text into the Input panel. Type what you want to find in the Find field and what to replace it with in the Replace field. The output updates as you type - no button needed. Each find/replace pair is color-coded: the colored dot on the left matches the highlight color in the output, so you can see at a glance which rule changed what. Use the + Add Find-Replace button to stack up to 8 substitutions that run in sequence.
What is the difference between Literal, Whole Word, and Regex modes?
Literal matches the exact text you type, including partial words - searching for "cat" matches "cat", "catch", and "concatenate". Whole Word only matches when the text appears as a complete word surrounded by word boundaries, so "cat" will not match "catch" or "concatenate". Regex lets you use regular expression patterns for advanced matching.
Can I use capture groups in regex mode?
Yes. Wrap parts of your pattern in parentheses to create capture groups, then reference them in the Replace field as $1, $2, etc. For example, if Find is (\w+)@(\w+) and Replace is $2/$1, the text "john@example" becomes "example/john". Use $& to insert the full match.
How do I replace with nothing to delete matches?
Leave the Replace field empty. Every match will be deleted from the text, and surrounding content will close up.
What does All vs First Only do?
All replaces every occurrence in the input. First Only replaces only the first match found and leaves the rest unchanged. Both modes process the full text, not line by line.
How do I see what was changed in the output?
Each replacement is highlighted in the color of its find/replace pair. Click the eye icon in the output toolbar to also show the deleted original text in red with a strikethrough - useful for reviewing changes before copying. Click the colored dots in the toolbar to jump through each occurrence of that color, one at a time.
Can I use this to delete entire lines that contain a pattern?
Not directly - this tool replaces text within lines. To remove entire lines that match a pattern, use the Filter Lines tool set to Remove matching mode.
How do I chain multiple replacements or apply the output to more substitutions?
Click + Add Find-Replace to add up to 8 pairs that run in sequence - row 1's output feeds into row 2, and so on. Each pair gets a distinct color so you can track which substitution produced which highlight. To run a completely fresh pass on the result, click Use as Input in the output toolbar - this replaces the input with the current output so you can start a new round of substitutions.

Related reading

Share this tool

Featured on ToolDirs
© 2026 ListDiff

Free online list and text processing tools.