Use Find and Replace to change one word or many at once

Open the document you want to edit. Press Ctrl+H on Windows or Cmd+H on Mac. A box will appear with two fields: one for the word you want to find, and one for the word you want to put in its place. Type the word you're looking for in the first field, type the replacement word in the second field, then click Replace All to change every instance at once, or Replace to change them one at a time.

If you only want to replace some instances — for example, if you have a name that appears in different contexts — use the Replace button to go through each one. Google Docs will highlight each match so you can see it in context before you decide whether to replace it.

Key Takeaways

  • Press Ctrl+H (Windows) or Cmd+H (Mac) to open Find and Replace in any Google Docs document.
  • Type the word to find in the first field and the replacement word in the second field, then click Replace All to change every instance at once.
  • Click Replace instead of Replace All if you want to review each instance before changing it, which is useful when a word has multiple meanings in the same document.
  • The Find and Replace tool is case-sensitive by default, but you can click the three-dot menu to turn off case sensitivity if you want to match "the" and "The" as the same word.

Match whole words only to avoid unintended changes

If you search for "read" without any restrictions, Google Docs will also change "reading," "reader," and "already" — any word containing those letters in that order. To prevent this, click the three-dot menu icon next to the search field and turn on Match entire word only. Now "read" will only match the standalone word "read," not parts of longer words.

This matters most when you're replacing short words or common letter combinations. If you're replacing "cat" with "dog," you probably don't want to change "catalog" to "dogalog."

Use case sensitivity to distinguish between proper nouns and common words

By default, Find and Replace treats capital and lowercase letters as different. If you search for "john," it will not find "John." This is useful when you need to replace a name only in certain places, or when you want to change a word that appears at the start of sentences differently from how it appears in the middle.

If you want to ignore case — so that "the," "The," and "THE" all count as matches — click the three-dot menu and turn on Match case to turn it off. The setting is confusing because the button says "Match case," but clicking it actually disables case-sensitive matching.

Replace formatting along with text

You can replace not just words but also their formatting. Open Find and Replace with Ctrl+H or Cmd+H. Type the word you want to find. Then click the three-dot menu and select Replace with to expand options for the replacement field. Now you can type the replacement word and also choose a font, size, color, or style (bold, italic, underline) to explore to it.

For example, you could find every instance of "warning" and replace it with "warning" in bold red text. The replacement field will show a preview of what the text will look like after the change.

Search within a specific range if you only want to change part of the document

If your document is long and you only want to replace words in one section, select that section first before opening Find and Replace. Highlight the text you want to search within, then press Ctrl+H or Cmd+H. Google Docs will only search and replace within your selection, leaving the rest of the document untouched.

This is helpful when you're working on a document with multiple chapters or sections and you want to change terminology in just one part without affecting the others.

Undo a replacement if you change your mind

If you click Replace All and realize the change was wrong, press Ctrl+Z or Cmd+Z when ready to undo it. Google Docs treats a Replace All action as a single undo, so one keystroke will revert all the changes at once. If you've made other edits since the replacement, you may need to press undo multiple times to get back to the state before the replacement.

For this reason, it's often safer to use the Replace button instead of Replace All when you're unsure. You can always click Replace multiple times to change all instances, but you'll see each one before it changes.

Frequently Asked Questions

Can I search for a phrase instead of a single word?

Yes. Type the entire phrase in the Find field, including spaces and punctuation. For example, you can search for "the quick brown fox" and replace it with "the fast brown fox." The search will only match that exact phrase in that exact order.

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

Use Find and Replace to change the text, then manually fix the formatting in the replacement field. Or, find the word, note what formatting it has, then use the formatting options in the Replace field to explore the same formatting to the new word. Google Docs will preserve any formatting you don't explicitly change.

Does Find and Replace work in shared documents?

Yes, but the changes are tracked like any other edit. If the document has suggestion mode on, your replacements will appear as suggestions that the owner can accept or reject. If suggestion mode is off, the replacements happen when ready and are visible to everyone with access to the document.

Can I search for special characters like line breaks or tabs?

Google Docs does not support searching for special characters like tabs or paragraph breaks in the standard Find and Replace tool. If you need to remove extra line breaks, you can manually select and delete them, or use a workaround like finding a space followed by a line break and replacing it with just a space.