The Find & Replace tool lets you swap one word or phrase for another throughout your entire document at once
Microsoft Word's Find & Replace feature saves you from manually hunting through a document to change the same word multiple times. Instead of scrolling and clicking each instance, you open one dialog box, type what you want to find and what you want to replace it with, and Word does the work. You can replace one instance at a time or all of them in seconds.
The tool works the same way in Word on Windows, Mac, and the web version. You can search for exact words, partial phrases, or even formatting — like finding all bold text and removing the bold, or finding a word only when it appears at the start of a sentence.
Key Takeaways
- Open Find & Replace by pressing Ctrl+H on Windows or Command+H on Mac, or go to the Home tab and click Replace.
- Type the word or phrase you want to find in the "Find what" field and the replacement text in the "Replace with" field.
- Click "Replace All" to change every instance at once, or "Replace" to change them one at a time and skip any you want to keep.
- Use "Match case" if you only want to find text that matches the exact capitalization, and "Whole words only" to avoid replacing parts of longer words.
- You can undo all replacements at once by pressing Ctrl+Z immediately after, even if you replaced dozens of instances.
Opening Find & Replace in Word
The fastest way to open Find & Replace is to press Ctrl+H on Windows or Command+H on Mac. A dialog box will appear with two main fields: "Find what" and "Replace with."
If you prefer using the menu, go to the Home tab at the top of Word. On the far right of the ribbon, you'll see a button labeled Replace (it looks like two overlapping rectangles). Click it and select Replace from the dropdown. In Word on the web, click the Edit menu and choose Find and Replace.
Entering your search and replacement text
In the "Find what" field, type the exact word or phrase you want to search for. For example, if you want to change "email" to "e-mail" throughout your document, type "email" in this field.
In the "Replace with" field, type what you want it to become. In the same example, you would type "e-mail." Leave this field blank if you want to delete the word entirely — Word will remove every instance of the search term.
Once both fields are filled, you have two choices: click Replace All to change every instance at once, or click Replace to go through each one individually. The individual approach is safer if you're not certain every instance should change.
Replacing one at a time versus all at once
When you click Replace (not Replace All), Word highlights the first match in your document and waits for your decision. You can then click Replace to change that instance and move to the next one, or click Find Next to skip it and move on without changing it. This method takes longer but gives you control over each change.
Replace All changes every matching instance in the document without stopping. Word will tell you how many replacements it made. This is faster but riskier — if your search term appears in places you didn't expect, you'll change those too. For example, searching for "read" and replacing it with "understand" would also change "already" to "alunderstanly," which is why checking the "Whole words only" option matters.
Using options to narrow your search
Below the main fields, you'll see several checkboxes that control how Word searches. Match case makes the search sensitive to capitalization — checking this box means searching for "Word" will not find "word" or "WORD." This is useful when you want to change a proper noun but leave common uses of the same word alone.
Whole words only prevents Word from matching your search term if it's part of a longer word. Without this option, searching for "read" finds it inside "already," "thread," and "spread." With it checked, Word only finds "read" as its own word. For most replacements, turning this on prevents accidental changes.
If you need more options, click More (or Options in some versions). This reveals additional settings like searching for specific formatting, finding text only in headers or footers, or searching backwards through the document.
Undoing replacements if something goes wrong
If you click Replace All and realize the change was a mistake, press Ctrl+Z on Windows or Command+Z on Mac immediately. Word will undo all the replacements at once, even if you replaced 50 or 500 instances. This works as long as you haven't made other edits to the document since the replacement.
If you've already closed the Find & Replace dialog and made other changes, you can still undo — just keep pressing Ctrl+Z to step backwards through your recent actions until you reach the point before the replacement. Word's undo history typically goes back many steps, though the exact number depends on your settings.
Common mistakes and how to avoid them
The most common mistake is forgetting to check "Whole words only" when replacing a short word. Searching for "is" without this option will change "this," "island," and "wisdom." Always pause before clicking Replace All and ask yourself whether your search term could be hiding inside other words.
Another frequent issue is accidentally replacing text in headers, footers, or comments when you only meant to change the main document. If this happens, undo immediately. To prevent it, use the More or Options button to specify exactly where Word should search — you can limit it to the main document body only.
Capitalization surprises also happen often. If you search for "the" and replace it with "The," Word will change every instance, including ones in the middle of sentences where "The" doesn't belong. Using "Match case" and searching for "the " (with a space after) helps, though you may still need to go through replacements one at a time to catch these edge cases.
Frequently Asked Questions
Can I search for a word only at the beginning or end of a line?
Yes, but you need to use special codes called regular expressions. Click More or Options, then check Use regular expressions. Type ^ before your search term to find it only at the start of a paragraph, or $ after it to find it only at the end. For example, ^The finds "The" only when it starts a line.
What if I want to replace text but keep some of the original formatting?
In the Find & Replace dialog, click More or Options, then Format. You can specify that you want to find text with certain formatting (like bold or a specific font) and replace it with different formatting. This is useful when you want to change a word and also change it from italic to regular text in one step.
Can I search for line breaks or paragraph marks?
Yes. In the "Find what" or "Replace with" field, you can type special codes: ^p for a paragraph break or ^l (lowercase L) for a line break. For example, to remove extra blank lines, search for ^p^p (two paragraph marks) and replace with ^p (one).
Does Find & Replace work the same way in Word on the web?
Mostly yes, but with fewer options. Open it from the Edit menu. You can search and replace text and use "Match case" and "Whole words only," but you cannot search for formatting or use regular expressions in the web version. For advanced searches, use the desktop version of Word.
What happens if I search for something that doesn't exist in the document?
Word will display a message saying "Search key not found" or similar. This simply means the exact text you typed doesn't appear in your document. Check your spelling, and remember that spaces and punctuation matter — searching for "don't" won't find "dont" or "don't" with a different type of apostrophe.