The fastest way to replace one word with another

Use the Find and Replace function built into your word processor. Open your document, press Ctrl+H on Windows or Command+H on Mac, type the word you want to find in the first box and the replacement word in the second box, then click Replace All. The program will swap every instance at once. If you want to check each replacement before it happens, click Replace instead of Replace All, and the program will stop at each match so you can approve it.

This method works the same way in Microsoft Word, Google Docs, LibreOffice Writer, and most other word processors. The keyboard shortcut is the fastest route, but you can also reach Find and Replace through the Edit menu if you prefer.

Key Takeaways

  • Press Ctrl+H (Windows) or Command+H (Mac) to open Find and Replace in any word processor.
  • Type the word to find in the first box and the replacement word in the second box, then click Replace All to change every instance at once.
  • Click Replace instead of Replace All if you want to review each change before the program makes it.
  • Use Match Case if you need to replace only words that match the exact capitalization, such as replacing "John" but not "john".
  • Whole Words Only prevents the program from replacing part of a longer word — for example, replacing "cat" without accidentally changing "catalog".

How to use Find and Replace in Microsoft Word

Open your document in Word and press Ctrl+H. The Find and Replace dialog box will appear. Type the word you want to find in the "Find what:" field and the replacement word in the "Replace with:" field. Click Replace All to replace every instance in the entire document, or click Replace to go through each one individually and decide whether to replace it.

If you want more control, click More to reveal additional options. Check Match Case if the capitalization matters — for example, if you want to replace "John" but leave "john" unchanged. Check Whole Words Only if you want to replace only the complete word and not part of a longer word, such as replacing "cat" without changing "catalog".

How to use Find and Replace in Google Docs

Open your document in Google Docs and press Ctrl+H on Windows or Command+H on Mac. The Find and Replace panel will open on the right side of the screen. Type the word to find in the first field and the replacement word in the second field. Click Replace all to change every instance, or click the single replace arrow next to each match to replace them one at a time.

Google Docs also offers a Match case checkbox if you need exact capitalization matching. Unlike Word, Google Docs does not have a separate "Whole Words Only" option, but you can use search symbols to narrow your results — for example, searching for "cat " with a space after it will help avoid matching "catalog".

How to use Find and Replace in LibreOffice Writer

Press Ctrl+H to open the Find & Replace toolbar. Type the word to find in the "Search for:" field and the replacement word in the "Replace with:" field. Click Replace All to replace every instance or Replace to go through each one. LibreOffice also offers Match Case and Whole Words checkboxes for more precise control.

LibreOffice includes an additional feature called Regular expressions, which lets you search for patterns rather than exact words — for example, finding any number or any word that starts with a certain letter. This is more advanced and not necessary for straightforward word replacement, but it is useful if you need to find and replace text that follows a pattern.

When to use Replace instead of Replace All

Use Replace (one at a time) instead of Replace All when you are not certain the word appears only in the context you intend. For example, if you want to replace "bank" with "financial institution" but your document mentions both a river bank and a savings bank, clicking through each instance lets you skip the ones that do not fit your meaning.

Replace one at a time is also safer when you are replacing a very common word or a short abbreviation. A single typo in the replacement field will affect every instance at once, so reviewing each change gives you a chance to catch mistakes before they spread through the whole document.

What to do if you replace the wrong word

Press Ctrl+Z when ready after the replacement to undo it. Word processors keep a full history of your changes, so you can undo a Replace All operation even if it changed hundreds of instances. If you have already closed and reopened the document, the undo history is gone, so you will need to manually fix the replacements or revert to an earlier saved version if your program has version history (Google Docs and Microsoft Word online both do).

To avoid this problem, save your document before doing a large Replace All operation. That way, if something goes wrong, you can close without saving and reopen the last saved version.

Frequently Asked Questions

Can I replace a word only in part of my document?

Yes. Select the section of text you want to change before opening Find and Replace. When you click Replace All, the program will only replace words within your selection. This is useful if you want to change a word in one chapter but leave it unchanged in another.

What if I want to replace a word but keep some of the original formatting?

In Microsoft Word, you can use Find and Replace with formatting. Click the dropdown arrow next to "Replace with:" and select Format, then choose the formatting you want the replacement word to have. Google Docs and LibreOffice do not have this feature built in, so you may need to manually adjust formatting after the replacement.

Can I replace a word with nothing to delete it?

Yes. Leave the "Replace with:" field empty and click Replace All. The program will remove every instance of the word. Be careful with this — it is straightforward to accidentally delete words you meant to keep, so use Replace (one at a time) instead of Replace All when deleting.

How do I replace a word that appears at the start or end of a sentence?

Find and Replace treats the word the same way no matter where it appears. If you want to replace only instances at the start of a sentence, you will need to go through them one at a time using Replace instead of Replace All, or use Regular expressions in LibreOffice if you are comfortable with that feature.