Find and Replace Text

Find and replace words or patterns in your text with live preview.

0 chars
0 words
0 lines
0 chars
0 words
0 lines

Find and Replace Text Online

Replace every occurrence of a word or phrase in your text – with live preview and a match counter. It works like the find-and-replace in Word or VS Code, right in your browser.

Features

  • Case-insensitive search to catch every variant of a word.
  • Whole-word matching so you don't accidentally change words that contain your search term.
  • Regular expressions with capture groups ($1, $2) for advanced rewrites.
  • Special characters – use \n for new lines and \t for tabs in the replacement.
  • Match counter showing how many replacements were made.

Examples

  • Replace a product or brand name across a long article.
  • Swap commas for semicolons in a data export.
  • Turn a list into HTML by replacing \n with </li>\n<li>.
  • Reformat dates or phone numbers with a regex pattern.

Your text never leaves your device. To delete whole lines that contain a word, use Remove Lines Containing.

Frequently Asked Questions

Keep 'Whole words only' enabled (it is on by default). Then replacing 'cat' changes 'cat' and 'Cat' but leaves 'catalog' and 'catnip' untouched.

Yes. Turn on 'Regular expression' and use $1, $2 … in the replacement to insert captured groups. For example, find (\d+)-(\d+)-(\d+) and replace with $3/$2/$1 to reformat dates.

Type \n in the 'Replace with' field for a new line, or \t for a tab. This works in both normal and regex mode.