To find and replace every match in Microsoft Word for Microsoft 365 on Windows, press Ctrl+H, enter the text in Find what and its replacement in Replace with, then select Replace All. Word changes all matching text in the document and reports how many replacements it made.
What Replace All does
Find and Replace is a built-in editing tool for locating text and substituting different text in one operation. Replace All applies the substitution to every match Word finds within the search scope. It is useful for correcting a repeated typo, updating a product name, changing an abbreviation, or standardizing a term throughout a long document.
For example, if a report uses the old project name “Northstar” 27 times and the name has changed to “North Star,” you can replace all instances at once instead of editing them individually. Word will usually display a message with the number of replacements after the operation. That count is helpful, but it does not guarantee that every change was appropriate: Word can match text in contexts where you did not intend a replacement.
Replace All is different from Replace. Replace changes the current match and takes you to the next one, giving you a chance to inspect each occurrence. Replace All is faster, but it offers less control over individual matches. When wording or context matters, use Find Next and Replace for a reviewable, one-at-a-time workflow.
Replace every occurrence in Word for Microsoft 365 on Windows
- Open the document and press Ctrl+H. Alternatively, select Home > Replace on the ribbon.
- In the navigation or Find and Replace pane, enter the existing word, phrase, or character in the Find what field.
- Enter the new text in Replace with. Leave this field empty if the goal is to remove the matched text.
- Select Replace All. If Word asks whether to continue searching after reaching the end of the document, choose the option that matches your intention.
- Read the replacement count, then inspect the edited passage and several other matches to confirm the result.
Use specific search text when possible. Replacing “cat” with “dog,” for example, may change “catalog” to “dogalog” as well as changing the animal name. If you mean the standalone word, open the additional search options and turn on Find whole words only. You can also use the one-at-a-time Replace command when a word has different meanings in different places.
Before making a broad change in an important document, save a copy or make sure you can use Undo. This is especially sensible for a replacement involving a short string, a common word, or punctuation. A replacement can affect headings, captions, tables, or other text you might not notice in the current view.
Choose search options to avoid unwanted matches
Word offers search settings that can make a replacement more precise. In the Find and Replace pane, select the arrow or options control to expand the available settings; the exact appearance can vary with the ribbon layout and Word update. Commonly useful options include:
- Match case: Treat uppercase and lowercase letters as different. This can help distinguish a capitalized name from the same letters in ordinary text.
- Find whole words only: Avoid matching a search term when it appears as part of a longer word. This is important for short terms and abbreviations.
- Use wildcards: Search for patterns rather than only a literal sequence of characters. Use this only when you understand the pattern you have entered.
- Format: Restrict matches by formatting, such as a particular font, style, or emphasis, where the relevant options are available.
Settings can remain active while you continue searching, so check them when a search unexpectedly finds nothing or finds too much. For instance, with Match case on, searching for “report” will not necessarily find “Report.” If Find whole words only is off, searching for “art” can also find those letters inside “article.” Clearing an option may resolve the issue without changing the search term.
Replace formatting and special characters
Find and Replace can work with formatting as well as ordinary text. In the expanded Find and Replace options, use the Format controls under the appropriate field to specify formatting criteria. For example, you might search for a particular word in bold and replace it with the same word in a different format. If a search behaves as though it is limited to an unexplained style or font, inspect the Format criteria and clear them before trying again.
Word also recognizes certain codes for nonprinting characters in Find and Replace. In a standard, non-wildcard search, common examples include ^p for a paragraph mark, ^l for a manual line break, and ^t for a tab. These can help with cleanup, such as replacing a tab with a space or joining text separated by an unwanted paragraph break. Be cautious with paragraph marks: replacing them can merge paragraphs, change layout, and affect paragraph-level formatting. Review the result rather than assuming the document will retain its original structure.
Some special-character searches behave differently when Use wildcards is enabled. If a code does not work as expected, turn off wildcard searching and consult Word’s available Special menu in the Find and Replace options. Avoid applying a global replacement to structural marks until you have checked a small, representative part of the document.
Use wildcards for pattern-based replacements
Wildcards let Word match patterns, such as a variable group of characters, rather than one exact phrase. In Find and Replace, expand the options and select Use wildcards. Word’s wildcard syntax is its own pattern system; it is not identical to the regular-expression syntax used by many programming tools.
For a simple example, the wildcard ? can stand for one character and * can stand for a sequence of characters. A search pattern using these symbols can be useful when you know the general shape of the text but not every character. However, a broad pattern can match more than expected. A pattern with an asterisk may span a large portion of text, depending on the rest of the search and the document structure.
When using wildcards, test the search with Find Next before choosing Replace All. Check several matches, including the first and last ones, and confirm that the replacement preserves any text you need. Word has additional wildcard features, including grouped expressions and references to matched text, but those require careful syntax. For an occasional edit, a literal search or a sequence of individually reviewed replacements is often safer and easier to understand.
Word on Mac and Word for the web
In Word for Microsoft 365 on Mac, open the document and use Edit > Find > Replace, or locate Replace on the Home tab. The layout and shortcut can differ from Windows, so the menu path is the dependable way to find the command. If you use a keyboard shortcut, check the shortcut shown in your installed Word version rather than assuming that the Windows Ctrl+H combination applies on Mac. Keyboard mappings can also be affected by macOS settings.
Word for the web provides basic Find and Replace through the Home tab’s Replace command. Its controls may be more limited than the desktop application, particularly for advanced search options and wildcard patterns. If you need formatting-based searches, complex patterns, or detailed control, open the file in the desktop version of Word. A document edited in the web app can still be opened in Word for Microsoft 365 on Windows or Mac for those tasks.
Regardless of platform, check that you are editing the intended document and not a read-only view or an older copy. If the Replace command is unavailable or the document cannot be edited, check its editing permissions and whether it is protected before troubleshooting the search itself.
Review changes and fix common problems
If Word reports zero replacements, first confirm that the text in Find what matches the document exactly. Check for spelling, punctuation, spaces, and capitalization, then inspect Match case, Find whole words only, wildcard, and formatting settings. A search for a phrase containing a nonbreaking space or a typographic apostrophe may not match text that looks similar but uses a different character.
If Word reports too many replacements, undo immediately with Ctrl+Z on Windows or Command+Z on Mac, provided the replacement is still available in the Undo history. Then use a more precise phrase, turn on Find whole words only or Match case as appropriate, or review matches one by one with Replace. Undo history can be affected by later editing, closing the file, or other actions, so saving a separate copy before a major replacement is a more dependable precaution than relying on Undo alone.
If a replacement appears to have changed formatting unexpectedly, check whether formatting criteria were attached to the Find or Replace field. Also look for paragraph marks or manual line breaks in the search. To prevent a mistake from spreading, use Find Next on several occurrences before applying another global change. After the replacement, search for the old text again to see whether any occurrences remain; some may have been intentionally left unchanged, or may differ in capitalization or punctuation.
Track Changes can affect how edits are displayed. If Track Changes is on, replacements may appear as deletions and insertions rather than as cleanly substituted text. That is a review feature, not necessarily a failed replacement. Check the Review tab and the document’s markup display, and follow the document’s review process before accepting or rejecting tracked edits.
Frequently Asked Questions
How do I replace all occurrences of a word in Word?
Press Ctrl+H in Word for Microsoft 365 on Windows, enter the old word and the replacement, and select Replace All. On Mac, use Edit > Find > Replace or the Replace command on the Home tab.
Can I replace a word without changing it inside other words?
Yes. Expand the search options and select Find whole words only. For example, this helps keep a search for “art” from matching the same letters inside “article.” Check Match case too if capitalization matters.
Can I use Find and Replace to delete text?
Yes. Enter the text to remove in Find what, leave Replace with blank, and select Replace All. Review the count and inspect the document, especially if the text is short or appears in different contexts.
How do I undo Replace All in Word?
Use Ctrl+Z on Windows or Command+Z on Mac soon after the replacement. If you have made additional changes, Undo may also reverse those changes in sequence. For important files, save a separate copy before a broad replacement.
Why does Word find text but not replace every version?
The remaining instances may differ in capitalization, punctuation, spacing, or formatting, or an option such as Match case or Find whole words only may exclude them. Search again after checking those settings, and inspect the remaining matches individually.
Does Replace All search headers and footnotes too?
Do not assume every type of document content is included in the same way. Search scope can depend on where you are working and the content type. If a header, footer, footnote, or text box is important, check it directly and confirm the replacement there.
Related
- Microsoft Excel Slicers: How They Work and How to Use Them
- Microsoft Excel Solver: How It Works and When to Use It
- Microsoft Excel Solver Add-In: Setup and How It Works
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Repeating Header in Word: How to Add One to Every PageTo add a repeating page header in Word, open Insert > Header, choose a layout, and enter the…
- Copy Excel Sheet to Word: Methods and FormattingTo copy Excel data into Word, select the cells in Excel, press Ctrl+C, click where the content should…
- Free Meal Planning Spreadsheet: How to Choose One That FitsYes—free meal planning spreadsheets are available, and you can also make a simple one yourself in Excel for…
- Outlook Web Access Rules: How to Create and Manage ThemTo create a rule in Outlook Web Access, open Settings (the gear icon), go to Mail > Rules,…
- Schedule an Outlook Email to Send Every WeekOutlook’s built-in Schedule Send feature sends a message once; it does not repeat it every week. To send…
- Make a Fillable Form in Word: A Step-by-Step GuideTo make a fillable form in Microsoft Word, turn on the Developer tab, add content controls such as…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.