The Find and Replace tool in Word saves time when you need to change the same word or phrase throughout a document
Microsoft Word's Find and Replace feature lets you search for text and swap it for something else in seconds. Instead of scrolling through a document to find and fix each instance by hand, you can replace all occurrences at once. The tool works the same way in Word for Windows, Word for Mac, and Word Online, though the steps differ slightly depending on which version you use.
You can replace a single word, a phrase, formatting, or even special characters. The most common use is fixing a name that appears dozens of times, correcting a misspelling throughout the document, or updating a term that changed after you started writing.
Key Takeaways
- Open Find and Replace by pressing Ctrl+H on Windows or Command+H on Mac, or go to the Home tab and click Replace.
- Type the word you want to find in the "Find what" box and the replacement word in the "Replace with" box, then click Replace All to change every instance at once.
- Use "Match case" if you need to find only uppercase or lowercase versions, and "Whole words only" to avoid replacing parts of longer words.
- Click "More options" to search for formatting, special characters, or paragraph marks if you need to replace something beyond plain text.
- Always review at least one replacement before clicking Replace All, especially when replacing common words that might appear in unexpected places.
Opening Find and Replace in Word for Windows
The fastest way to open Find and Replace is to press Ctrl+H on your keyboard. The Find and Replace dialog box will appear when ready.
If you prefer using the menu, go to the Home tab at the top of the screen. In the Editing group on the right side of the ribbon, click the Replace button. A dropdown menu will appear; click Replace again to open the full dialog.
Opening Find and Replace in Word for Mac
On a Mac, press Command+H to open Find and Replace directly. If that does not work, go to the Edit menu at the top of the screen and click Find, then select Replace from the submenu.
The Mac version of the dialog looks slightly different from Windows, but the boxes and buttons work the same way. The "Find what" and "Replace with" fields are in the same order, and the Replace All button is in the same location.
Entering your search and replacement text
In the Find what box, type the word or phrase you want to find. In the Replace with box, type what you want it to become. For example, if you wrote "colour" throughout a document but need American spelling, you would type "colour" in Find what and "color" in Replace with.
Before you click Replace All, click the Find Next button once to see the first match. This step takes five seconds and prevents mistakes. If the highlighted word is the one you meant to replace, you can proceed. If Word found something you did not expect, you can adjust your search terms and try again.
Once you are confident the search is correct, click Replace All. Word will replace every instance and show you how many replacements it made. If you want to replace one instance at a time instead, click Replace after each Find Next to approve each change individually.
Using Match Case and Whole Words Only
The Match case option tells Word to find only exact matches of uppercase and lowercase letters. If you search for "John" with Match case on, Word will find "John" but not "john" or "JOHN". This is useful when you need to replace a name spelled one way without accidentally changing abbreviations or acronyms that happen to use the same letters.
The Whole words only option prevents Word from replacing text that is part of a longer word. For example, if you search for "cat" without Whole words only, Word will replace it in "category", "catalog", and "concatenate". With Whole words only checked, Word will replace only the standalone word "cat" and leave those longer words untouched.
Both options are in the Find and Replace dialog. On Windows, they appear as checkboxes in the middle section. On Mac, you may need to click More options or a similar button to see them.
Searching for formatting and special characters
Word can also find and replace formatting, not just text. For example, you could find all bold text and make it italic, or find all red text and change it to blue. To do this, click More options (or Format on Mac) and select the formatting you want to search for. The formatting choice will appear below the Find what box.
You can also search for special characters like paragraph marks, tabs, or line breaks. Click More options and then Special to see a list. For example, ^p represents a paragraph mark and ^t represents a tab. Type the code into the Find what box to search for it. This is useful when you need to remove extra line breaks or replace tabs with spaces throughout a document.
Undoing a replacement if something went wrong
If you click Replace All and the results are not what you expected, press Ctrl+Z (Windows) or Command+Z (Mac) when ready to undo the replacement. Word will restore the text to its previous state. You can then reopen Find and Replace, adjust your search terms, and try again.
Undo works best if you act right away. If you close the document and reopen it, you may not be able to undo the replacement. For this reason, it is worth taking a few seconds to review the first match before replacing all instances, especially when replacing common words.
Frequently Asked Questions
Can I search for text in only part of my document?
Yes. Highlight the section of text you want to search before opening Find and Replace. Word will search only within the highlighted area. If you do not highlight anything, Word searches the entire document.
What if I want to replace text but keep some of the original formatting?
Use the Find what box to search for the text, but leave the Replace with box empty or type only the new text. The new text will inherit the formatting of the paragraph it lands in. If you need to preserve specific formatting from the original, you may need to replace manually or use Find Next and replace one instance at a time.
Can I search for a line break or paragraph mark?
Yes. Click More options, then Special, and select Paragraph Mark. The code ^p will appear in your search box. You can replace paragraph marks with spaces, tabs, or other paragraph marks. This is helpful when you have extra blank lines you want to remove.
Does Find and Replace work in Word Online?
Yes, but the feature is more limited. Press Ctrl+H to open Find and Replace in Word Online. You can search for and replace text, but you cannot search for formatting or special characters the way you can in the desktop version.
What happens if I search for a word that does not exist in the document?
Word will display a message saying the search term was not found. You can then close the dialog, check your spelling, and try again with different search terms.