Use this free find and replace tool to swap words or phrases in your text. Paste your text, enter what to find and what to replace it with, and see the result instantly. You can match case, replace whole words only, use regular expressions for patterns, and see how many matches were changed. Everything runs in your browser and nothing is uploaded or stored.

Search carefully before you replace. A broad search can change more text than you meant, so check the match count and the result before you copy it.

How to use the find and replace tool

Paste your text, then fill in the two fields. The result updates as you type.

  • Paste your text: add the document, list, or paragraph you want to change.
  • Find: enter the word or phrase to search for.
  • Replace with: enter the new text. Leave it empty to delete every match.
  • Match options: turn on match case, whole words only, or regular expressions.
  • Copy or download: copy the result, or save it as a .txt file.

What the match options do

  • Match case: "Cat" and "cat" are treated as different words.
  • Whole words only: "cat" is replaced in "a cat sat" but not inside "catalog".
  • Regular expression: lets you search for a pattern, such as any run of digits, instead of exact text.

What this tool does and does not do

This tool replaces text in the content you paste. It does not search files on your computer, update web pages, or change text in other documents. It also does not check spelling or meaning, so review the result before you use it.

Match options at a glance

OptionFindResult
DefaultcatCat, cat, and catalog all change
Match casecatOnly lowercase cat changes
Whole words onlycatcat changes, catalog does not
Regular expression\d+Every run of digits changes
Check the match count before you copy. If the number is higher than you expected, narrow the search with match case or whole words only.

Worked examples

Fixing a name across a document

Paste the text, find the old name, and enter the new one. Turn on whole words only so a short name does not change inside longer words.

Removing extra text

Enter a phrase to find and leave Replace with empty. Every match is deleted from the result.

Changing numbers with a pattern

Turn on regular expression, enter \d+ in Find, and enter a placeholder such as [number] in Replace with. Every run of digits is swapped for the placeholder.

Common find and replace mistakes

  • Replacing without checking the count. A short word can match inside longer words. Use whole words only when that matters.
  • Forgetting case. Without match case, "Apple" and "apple" both change. Turn it on when capitals matter.
  • Using special characters in regular expressions. Characters such as . ? + * ( ) have meanings in patterns. Escape them with a backslash to match them literally.

Frequently asked questions

What does a find and replace tool do?

It searches your text for a word or phrase and swaps each match for the new text you enter. The result shows every change at once.

What does match case mean?

When match case is on, uppercase and lowercase letters must match exactly. "Cat" will not match "cat".

What does whole words only mean?

With whole words only on, a word is replaced only when it stands alone. "Cat" will not change the "cat" inside "catalog".

What happens if my regular expression is invalid?

The tool shows a message and leaves your text unchanged, so you can fix the pattern and try again.

Is my text sent or stored?

No. Replacing happens in your browser and nothing is uploaded or saved. The text is cleared when you leave or refresh the page, so copy the result first.

Share this article