The Find and Replace feature in Word lets you search for text and swap it out for something else across your entire document at once
Microsoft Word's Find and Replace tool saves time when you need to change the same word or phrase multiple times. Instead of hunting through your document manually, you can search for every instance and replace them all in seconds. The feature works the same way in Word for Windows, Word for Mac, and Word Online.
You open Find and Replace through the Edit menu or with a keyboard shortcut, type what you're looking for, type what you want instead, and choose whether to replace one instance at a time or all of them together. You can also search for formatting, special characters, or partial matches if you need something more precise.
Key Takeaways
- Open Find and Replace by pressing Ctrl+H on Windows or Command+H on Mac, or through the Edit menu.
- Type your search term in the "Find what" field and your replacement text in the "Replace with" field, then click Replace All to change every instance at once.
- Use the "More options" or "Format" button to search for specific formatting, capitalization, or whole words only.
- Replace All changes every match in your document without asking you to confirm each one, so review your search term carefully first.
- You can undo a Replace All action immediately after by pressing Ctrl+Z or Command+Z.
Opening Find and Replace in Word
The fastest way to open Find and Replace is with the keyboard shortcut. Press Ctrl+H on Windows or Command+H on Mac. A dialog box will appear with two text fields: "Find what" and "Replace with".
If you prefer using the menu, click the Edit menu at the top of the window, then select Find and Replace from the dropdown. In Word Online, the Edit menu is in the top left corner. The keyboard shortcut is faster once you use it a few times.
Replacing text one instance at a time
Type the word or phrase you want to find in the "Find what" field. Then type what you want to replace it with in the "Replace with" field. Click the Find Next button to jump to the first match in your document.
Word will highlight the matching text. If it's the right instance, click Replace to swap it out. If it's not the one you want to change, click Find Next again to move to the next match. Keep going until you've replaced all the instances you need. This method gives you control over each change and is useful when you only want to replace some matches, not all of them.
Replacing all instances at once
If you want to change every match in your document without reviewing each one, type your search term and replacement text, then click Replace All. Word will replace every instance and show you a message saying how many replacements it made.
Be careful with Replace All because it changes everything at once without asking you to confirm. If you make a mistake, press Ctrl+Z (Windows) or Command+Z (Mac) immediately to undo the replacements. The undo works as long as you haven't made other changes to the document since the replacement.
Searching for whole words and exact capitalization
By default, Find and Replace matches text anywhere within a word. If you search for "cat", it will find "cat", "category", and "concatenate". To search for only the exact word "cat" by itself, click More Options (or Format in some versions), then check the box next to Match entire word only.
If you want to match capitalization exactly, check Match case in the same menu. This means searching for "Word" will find only "Word" with a capital W, not "word" in lowercase. These options are useful when you need precision — for example, replacing a person's name without accidentally changing common words.
Finding and replacing formatting
You can search for text based on its formatting, not just its letters. Click More Options, then click the Format button. A menu will appear where you can choose formatting like bold, italic, font type, font size, or color. Select the formatting you want to search for, and Word will find only text that matches both the words and the formatting you specified.
For example, you could search for all instances of the word "important" that are bold and replace them with "important" in italic instead. This is helpful when you need to change how certain text looks throughout a long document without touching text that looks different.
Searching for special characters and line breaks
The Find and Replace tool can also search for things that aren't regular letters, like paragraph marks, tabs, or manual line breaks. Click More Options, then look for a button labeled Special or No Format (the name varies by Word version). A menu will show codes for common special characters.
For instance, you might search for "^p" (the code for a paragraph mark) to find every place where a new paragraph starts, or "^t" for tabs. This is useful for cleaning up formatting problems — for example, replacing double paragraph marks with single ones, or removing extra tabs that got inserted by mistake.
Frequently Asked Questions
Can I undo a Replace All if I make a mistake?
Yes. Press Ctrl+Z on Windows or Command+Z on Mac immediately after the replacement to undo all the changes at once. This works as long as you haven't made other edits to the document since the Replace All action. If you've made other changes, undo will reverse those too, so be careful.
What's the difference between Replace and Replace All?
Replace changes only the current match that Word has highlighted, and you choose which ones to replace one at a time. Replace All changes every match in the document without stopping to ask. Replace All is faster but riskier because you can't review each change before it happens.
How do I search for text that appears at the beginning or end of a line?
Click More Options, then check the box for "Use regular expressions" (in some versions, this is called "Use wildcards"). Then use "^" to search for the start of a line and "$" for the end. For example, searching for "^the" finds "the" only when it appears at the start of a paragraph.
Can I search and replace across multiple documents at once?
No, Find and Replace works on one document at a time. You'll need to open each document and run Find and Replace separately. If you have many documents to update the same way, consider using Word's batch processing features or opening them one by one.
Does Find and Replace work in Word Online the same way as desktop Word?
Yes, the basic Find and Replace works the same in Word Online. Open it with Ctrl+H or Command+H, or through the Edit menu. Some advanced options like regular expressions or searching for specific formatting may be limited in Word Online compared to the desktop version.