How to find and replace text in multiple Word documents at once on a Mac

By

Word's Find and Replace works on one open document at a time. Here's the free way to update a folder of .docx files, and a faster one that previews every match and leaves the originals alone.

A company name changed, or an address, and it’s in dozens of Word documents: contracts, letters, templates, price lists. You want to change it everywhere at once.

Word can’t do that on its own. Its Find and Replace works on the document you have open, so the free way is to open each file and replace the text one document at a time. To do the whole folder in one go, you need a tool that reads many .docx files, like Word Batch Text Replacer.

Can Word replace text in several documents at once?

Not with its menus. Find and Replace in Word, and Find & Replace in Pages and TextEdit (Command-F), all work on one open document.

So for each document you open it, run Replace All for each piece of text, look at what changed, save and close. That’s fine for three documents. For 40 contracts and two pieces of text, it’s 80 rounds of Replace All, and you only get a count of how many replacements were made, not the sentences that changed.

Be careful with two things while you do it:

  • Tracked changes. If Track Changes is on, every replacement is recorded as a change for the next person to accept. If the document already has changes nobody accepted, the old name may sit inside one of them.
  • Fields. Mail-merge fields, cross-references and links have text that Word produces from the field. A change there can be lost the next time the field updates.

Word macros can loop over a folder, but that means writing code and trusting it with your files. Pages and TextEdit aren’t a shortcut either: Pages converts the document to its own format, and TextEdit has no headers, footers or footnotes.

What does the app do differently?

It takes a list of pairs (find this, replace with that) and applies all of them to every document you add. Before it writes anything, it shows every match in every document with the sentence around it. Then it saves edited copies in a new folder, and your originals stay as they were.

Matches inside tracked changes, fields and form fields are left alone, and listed in a report with what to do about each one.

How Word Batch Text Replacer edits a folder of Word documentsYou add the documents and the find and replace pairs. The preview lists every match. Plain text matches are replaced in edited copies saved in a new Edited Documents folder. Matches in tracked changes, fields, form fields or across two paragraphs are left alone and listed in Exceptions.csv. Old .doc files are skipped. The original documents are never changed.Plain textTracked change, field,form fieldOld .doc fileWord documents andpairsPreview of everymatchReplaced in anedited copyLeft alone, listedin Exceptions.csvSkipped, with thereasonNew Edited DocumentsfolderOriginals unchanged

How do I replace text in many Word documents with the app?

The example here is a made-up client rename. There are five files in a folder: Contract.docx, Welcome Letter.docx, Price List.docx, No Matches.docx and an old Old Format.doc. The client went from “Acme Corporation” to “Globex Ltd”, moved from 12 Harbor Road to 40 Mill Lane, Springfield, and a partner company was renamed too.

When you open the app, the bottom bar tells you the next step: Add Documents….

Word Batch Text Replacer when it opens: a Documents box that says Drop .docx files or a folder here with an Add button, the Search in and Matching options, a Save in box with a Choose button, and in the main area Replace text in many Word documents at once with Import CSV and Add a Pair buttons; the bottom bar says Next: add the Word documents to edit

  1. Drag the folder onto the Documents box, or click Add…. The old .doc shows in orange: the app edits .docx files only.
  2. Click Add Pair and type “Acme Corporation” in Find and “Globex Ltd” in Replace with. Add the other two pairs the same way. If your list is in a spreadsheet, save it as CSV with the text to find in the first column and click Import CSV….
  3. Under Search in, leave the body, headers and footers, footnotes and text boxes ticked.
  4. Under Save in, click Choose… and pick a folder for the copies.
  5. Click Preview.

The Replacement pairs screen with five documents in the sidebar, Old Format.doc in orange, and three pairs: Acme Corporation to Globex Ltd, 12 Harbor Road to 40 Mill Lane, Springfield, and Northwind Traders to Contoso Partners; the bottom bar says Ready to preview 3 pairs in 4 documents

What does the preview show?

Here it found 17 replacements in 3 documents, 6 exceptions, and 1 file it can’t edit. “Acme Corporation” is replaced 15 times, the address and the partner’s name once each.

Each match shows where it is and the text around it, with the old text struck through and the new text in green. In Contract.docx that includes the header, the footer, a footnote and a text box. In Welcome Letter.docx the header says “ACME CORPORATION” in capitals: with Match case off, it’s found too, and becomes “Globex Ltd” exactly as typed.

The preview: 17 replacements in 3 documents, 6 exceptions and 1 file can't be edited, then the matches in Contract.docx with Acme Corporation struck through and Globex Ltd in green, and two matches in orange marked Tracked change

Click Exceptions only to see the six matches the app won’t touch. Two sit in tracked changes, two in fields (a link and a mail-merge field), one in a content control (a form field), and one starts at the end of a paragraph and finishes in the next. Each says what to do, like “Accept or reject the change in Word, then run the batch again.”

The preview with Exceptions only selected: two Tracked change matches, two Field matches, a Content control and a Two paragraphs match, each in orange with a sentence on what to do

What do I get at the end?

Click Create Edited Copies. The app makes a new Edited Documents folder with three edited copies (Contract with 10 replacements, Price List with 3, Welcome Letter with 4), Replacements.csv with every change and the text around it, and Exceptions.csv with the six exceptions and the skipped .doc. No Matches.docx had nothing to replace, so it isn’t copied.

The done screen: 3 edited copies are ready, with Contract.docx, Price List.docx and Welcome Letter.docx and their replacement counts, the two CSV reports, and under Not copied No Matches.docx and Old Format.doc with the reason

After the run, the original files were byte for byte the same as before. The app writes standard .docx files and rewrites only the text it changes, so styles, images and everything else in each document are copied as they were. The edited copies were checked in LibreOffice and with macOS’s own text tools, not in Word or Pages.

Word, one document at a timeWord Batch Text Replacer
40 documents, 2 pairs80 rounds of Replace All, 40 savesOne preview, one click
See what changesA countEvery match with the text around it
Tracked changes and fieldsYou have to spot themLeft alone and listed with what to do
Original filesSaved overUnchanged, edits go on copies
A record of the changesNoneReplacements.csv and Exceptions.csv
Old .doc filesYesNo, save them as .docx first

The app doesn’t search comments, link addresses or the document’s title and author, and it doesn’t copy the capitals of the text it replaces. Word Batch Text Replacer costs $19, paid once.

Get Word Batch Text Replacer

Replace the same text in many Word documents at once. Preview every match with the text around it, skip tracked changes and fields, and save edited copies with a report.

See Word Batch Text Replacer → · Read the docs · $19. See the app page for tax details.

More tutorials for my apps →

Want me to talk about your product? You can sponsor this site.