getwordcount.com

Find and Replace Text

Search and replace text, with regex support.

0 replaced
Copied to clipboard

This find and replace tool swaps every occurrence of a word or phrase for another across your whole text at once. It offers case-insensitive matching, whole-word matching, and full regular-expression support for advanced patterns.

How to use find and replace

  1. Paste your text into the input box.
  2. Enter the word or phrase to find and what to replace it with.
  3. Tick options as needed: ignore case, whole word, or regex.
  4. The result and a live count of replacements update as you type; copy when done.

Match options explained

  • Ignore case — matches “Cat”, “cat” and “CAT” alike.
  • Whole word — only matches the term on its own, so replacing “art” will not touch “start” or “party”.
  • Regex — treat the find field as a regular expression, with capture groups such as $1 available in the replacement for powerful reshaping.

Private by design

Everything runs in your browser — nothing you paste is uploaded — so it is safe for confidential documents, and it handles large blocks of text without a round-trip to a server.

Frequently asked questions

Does it support regular expressions?

Yes. Tick the Regex option to use full JavaScript regular-expression patterns, including capture groups like $1 in the replacement.

How do I replace whole words only?

Enable the “Whole word” option, so a search for “art” matches only the standalone word and not “start” or “smart”.

Can it replace across many lines at once?

Yes. It works on the entire text you paste, replacing every match in one go and showing how many were changed.

Related tools