ConvertAnyFiles

Find and Replace Text

Replace every occurrence of a word or phrase in a block of text in one go. Match case, restrict to whole words, or use regular expressions for advanced patterns.

Free · No sign-up · Files stay on your device

How to use Find and Replace

  1. 1Paste your text.
  2. 2Type what to find and what to replace it with.
  3. 3Choose any options, then copy the result.

Features

  • Replace all occurrences at once
  • Match case and whole-word options
  • Regular expressions with capture groups
  • Shows the number of replacements
  • Your text stays in your browser

Whole words only

With "Whole words" on, replacing "cat" changes "cat" and "Cat." but leaves "catalog" and "concatenate" alone. Without it, every occurrence of the letters is replaced, even inside longer words.

Regular expressions

Turn on "Regex" to use patterns. For example, find (\d+)-(\d+) and replace with $2-$1 to swap two numbers, or find \s+ and replace with a single space to collapse extra spaces. Use $1, $2… to insert captured groups.

Frequently asked questions

Can I replace line breaks?

Yes. Turn on Regex and search for \n to find line breaks.

Can I delete every occurrence of a word?

Yes. Leave the "Replace with" box empty.

Is my text stored?

No. Everything happens in your browser.

Related tools