Find and Replace Text in Word

Learn how to find and replace text across a whole Word document, review matches before changing them, and catch the spots a single search misses.

Replacing text in Word is one of a common editing jobs, and it is also one of the easiest to get wrong. A client renames a product, a contract swaps one party's name for another, or a thesis changes a term in every chapter. Doing it by hand means scrolling through dozens of pages and hoping you did not miss a spot. Doing it with a careless Replace All can change words you never meant to touch.

This guide shows you how to use find and replace in a Word document (.docx) so you change every instance you intend and nothing else. You will learn the setup steps, the options that prevent false matches, and a simple way to check the result. A short section also covers text inside PDFs, where the standard tool does not work.

How do you replace text in Word? The short answer

Search for the exact text first, review each match, and then replace one at a time or all at once once you are sure the matches are correct.

Your situationWhat to doWhy
A name or term appears many timesSearch first, then use Replace AllLets you confirm every match before the change is applied
A short word appears inside other wordsTurn on whole-word matchingPrevents "cat" from changing "category" or "concatenate"
Capitalization matters, such as a product nameTurn on match caseKeeps "Apple" from changing "apple" in a sentence about fruit
You are not sure all matches are rightUse Replace one at a timeYou approve each change instead of accepting all at once
The text is inside a PDFEdit the PDF or export it to Word firstStandard find and replace works on editable text, not on page images

Before you start

Check these points before you change anything, because a few minutes of preparation prevents most replacement mistakes.

  • Save a copy of the file. Replace All changes every match in one action, and you cannot easily reverse a change after you close and save the file. A copy gives you a clean version to compare against.
  • Decide on the exact search text. Write down the original and the replacement exactly, including spaces, hyphens and capital letters. A search for "Acme " with a trailing space behaves differently from "Acme".
  • Think about word boundaries. A short term such as "rate" also matches "generate" and "accurate". Decide whether you need whole-word matching before you start.
  • Confirm the file is an editable Word document. If your text came from a scanned page or a PDF, the words may not be searchable at all. Check this before you spend time on the steps below.
  • List the places text might hide. Headers, footers, footnotes, endnotes and text boxes are sometimes skipped by a standard search, so note whether your document uses them.

Replacing text in Word, step by step

  1. Open the document and save a copy. Keep the original untouched so you can compare it if a replacement goes wrong.
  2. Open the find-and-replace panel. Use the editing options in your word processor or its keyboard shortcut; in many programs on Windows, that shortcut is Ctrl+H.
  3. Type the text to find. Enter the exact spelling, spacing and punctuation you want to locate, and avoid extra spaces at the start or end.
  4. Type the replacement text. Enter the new wording exactly as it should appear, since the tool inserts it without checking your intent.
  5. Set the match options. Turn on match case or whole-word matching when the term is short, capitalized or likely to appear inside other words.
  6. Run Find before replacing. Step through each match with the find button so you can see the context around every hit.
  7. Replace one at a time or all at once. Use single replacement when some matches should stay, and Replace All only when every match should change.
  8. Search for the old text again. Run the search one more time after replacing; if it returns no results, the change is complete in the main body text.

Check the result

A replacement is only finished once you have verified it. Use this table to find and fix problems.

CheckHow to see itIf it's wrong
Old text is goneSearch for the original term again and confirm no matches remainSearch the headers, footers, footnotes and text boxes separately, then repeat the steps for any location the first pass missed
No accidental matchesRead a sample of the changed sentences, especially short wordsUndo the change using your saved copy, then rerun with whole-word or match-case options on
Capitalization and punctuation are rightLook at the first word of each sentence and any product or proper namesReplace the affected instances manually, one at a time
Layout still looks correctScroll through the pages where replacements happened, paying attention to tables and headingsCheck that the new text is not longer than the space it occupies, and adjust the wording if needed

Machine-assisted translation and OCR can also produce wording you did not intend, so review any text that came from those tools before you rely on it.

When the text is inside a PDF

Find and replace in a word processor works on editable text, so it will not change words that exist only as a page image or in a locked PDF. If your text is in a PDF, the OmniDoc desktop client includes a PDF editor that can edit paragraph text in place, sign, fill forms, redact and run OCR on scanned PDFs. You can also export the PDF to Word and run the replacement in the .docx file. Download the desktop client at download.omnidoc.top. If you prefer working in a browser with a Word-compatible editor, you can open the .docx file in the UniDoc web editor at app.unidoc.top and edit the text by hand there. This article's steps assume a desktop word processor, so check the editor's own tools for a search-and-replace option before you rely on it.

❓ FAQ

1. Why did Replace All change words I did not want to change?

The search matched text inside longer words or in a different capitalization than you intended. Turn on whole-word and match-case options, then use Find one match at a time before replacing anything.

2. Does replacing text also change headers and footers?

Not always. Many searches cover only the main body, so check headers, footers, footnotes and text boxes separately after you finish.

3. Can I undo a Replace All after I save the file?

It is hard to reverse reliably once the file is saved, which is why saving a copy before you start is important. Your copy lets you compare or restore the original wording.

4. How do I replace text that is in a scanned PDF?

Scanned pages contain images, not searchable text, so the standard search cannot find the words. Run OCR to create searchable text, export the result to Word, and then replace the text in the .docx file.

📝 Summary

Replacing text in Word is safe when you search first, set the right match options, and review each change before applying it. Save a copy before you start, and check headers, footers and text boxes after you finish. For text inside a PDF, edit or export the file first, then complete the replacement in an editable document.

Open OmniDoc to edit and export your documents

Updated 2026-11-04