Find and Replace Text

Replace every occurrence of a word, phrase or character in your text at once. See a live count of matches and highlight them before you replace, with options for matching case and whole words only.

  • 100% free, no sign-up
  • Runs in your browser: text never uploaded
  • Instant results

Find and replace

0 matches found

How to use the Find and Replace

  1. Paste your text into the box.

  2. Type the word or phrase to find. Matches are counted and highlighted as you type.

  3. Type the replacement text. Leave it empty to delete every match.

  4. Turn on Match case or Whole words only if needed, then click Replace All.

Examples

Whole words only
Input
Find "cat", replace with "dog" in: cat concat cat.
Result
dog concat dog. ("concat" is left alone)
Delete every match
Input
Find "very " with an empty replacement in: It was very very good.
Result
It was good.

Options explained

  • Match case only finds text with exactly the same capitalisation. With it off, "Apple", "apple" and "APPLE" all match.
  • Whole words only ignores matches inside longer words, so searching for "art" will not change "start" or "party".
  • Empty replacement deletes every match, which is handy for removing a repeated word, a tracking code or a stray symbol.

The search is literal: characters such as ., *, ? or $ are matched as themselves, not treated as special patterns. That makes it safe for prices, file paths, code and URLs.

Common uses

  • Rebranding copy: update a product or company name across a long document.
  • Fixing repeated typos: correct a misspelling that autocorrect missed throughout a draft.
  • Cleaning exported data: swap semicolons for commas, or remove quote marks.
  • Localising text: change "color" to "colour" or US dates to UK format.
  • Preparing code or templates: replace a placeholder like {{name}} with a real value.

Tips for safe replacing

Check the match count before you click Replace All. If it is higher than expected, turn on Whole words only or Match case to narrow it down. Replacing short strings such as "in" or "is" without whole-word matching will almost always change words you did not mean to touch.

For several different replacements, run them one at a time and check the highlights between each. For spacing problems, Remove Extra Spaces is faster, and for changing capitalisation use the Case Converter.

Worked example: updating a product name

Suppose a document mentions "WidgetPro" 14 times and the product has been renamed "Widget Studio". Some mentions are "WidgetPro's" and one is in a URL, "widgetpro.com".

  1. Search for WidgetPro with Match case on. The count shows 14 and every instance is highlighted, including "WidgetPro's".
  2. Notice the URL is lower case, so it is not matched. That is what you want, because the web address has not changed.
  3. Type Widget Studio as the replacement and click Replace All. "WidgetPro's" becomes "Widget Studio's" automatically.
  4. Search again for WidgetPro to confirm the count is now zero.

Find and replace vs. editing by hand

For one or two changes, editing directly is fine. Once a change appears more than a handful of times, bulk replacing is faster and far more reliable: it is easy to miss the eleventh occurrence when scanning by eye. The live count acts as a checklist, telling you exactly how many places will change before you commit.

Frequently asked questions

No. The search is deliberately literal so that symbols like $, . and * are matched exactly. This avoids accidental changes when replacing prices, code or URLs.

Last reviewed by the WordTools Pro team. How our tools work