Open Find and Replace in Google Docs

To replace text in Google Docs, use the Find and Replace tool. Open your document, then press Ctrl+H on Windows or Command+H on Mac. A panel will appear on the right side of your screen with two text boxes: one for the text you want to find, and one for the text you want to use instead.

You can also reach this tool through the menu: click Edit at the top, then select Find and Replace from the dropdown. Both methods open the same panel and work identically.

Key Takeaways

  • Press Ctrl+H (Windows) or Command+H (Mac) to open Find and Replace, or use the Edit menu.
  • Type the text you want to find in the first box and the replacement text in the second box.
  • Use the "Match case" and "Match entire cell contents" options to make your search more precise and avoid unintended changes.
  • Click "Replace all" only after reviewing what will change, since replacing everything at once cannot be undone with a single click.
  • If you make a mistake, press Ctrl+Z (Windows) or Command+Z (Mac) when ready to undo the replacements.

Enter Your Search and Replacement Text

In the first text box labeled "Find," type the exact word or phrase you want to replace. In the second box labeled "Replace with," type what you want to put in its place. For example, if you want to change every instance of "colour" to "color," you would type "colour" in the Find box and "color" in the Replace with box.

Google Docs will begin highlighting matches in your document as soon as you start typing in the Find box. You will see a count showing how many matches were found. This count updates as you type, so you can see when ready whether your search term is finding what you expect.

Choose Your Search Options

Below the text boxes, you will see two checkboxes: Match case and Match entire cell contents. The "Match case" option makes your search case-sensitive, meaning it will only find text that matches the exact capitalization you typed. If you search for "The" with Match case on, it will not find "the" or "THE."

Use "Match case" when you need to replace a word only in specific contexts—for instance, replacing "President" (capitalized) but leaving "president" (lowercase) untouched. Leave it unchecked if you want to find all versions regardless of how they are capitalized. The "Match entire cell contents" option is less commonly used in regular documents, but it prevents partial matches within larger words.

Replace One Instance or All at Once

Once you have entered your search and replacement text, you have two choices. The Replace button (with a single arrow icon) will replace only the currently highlighted match. The Replace all button will replace every match in the entire document at once.

If you are unsure whether your search will find only what you intend, use the single Replace button first to check one or two matches. This way you can see whether the replacements look correct before committing to replacing everything. After you confirm the first replacement looks right, you can then use Replace all for the remaining matches.

Undo Replacements if Something Goes Wrong

If you click Replace all and realize the changes were not what you wanted, undo the action when ready by pressing Ctrl+Z on Windows or Command+Z on Mac. This will reverse all the replacements at once. You must do this right away—if you make other edits to the document first, you may not be able to undo the replacements.

This is why reviewing a few matches before using Replace all is a good habit. It takes only a few seconds and prevents the need to undo large batches of changes. Once you close the Find and Replace panel, you can still undo recent replacements using the keyboard shortcut, but the further back in your editing history you go, the less reliable undo becomes.

Close the Find and Replace Panel

When you are finished replacing text, close the Find and Replace panel by clicking the X button in the top right corner of the panel, or press Escape on your keyboard. The panel will disappear and you will return to your normal document view.

Your replacements remain in the document. If you need to make more replacements, you can open Find and Replace again using the same keyboard shortcut or menu option. Google Docs remembers your previous search terms, so if you need to search for the same text again, it will still be in the Find box.

Common Mistakes to Avoid

One frequent error is forgetting to check the Match case option when you need it. If you want to replace only capitalized versions of a word, turn on Match case before searching. Otherwise, you might accidentally change words you meant to leave alone.

Another common mistake is using Replace all without reviewing what will change first. A search term that seems specific might match text you did not expect. For instance, searching for "read" will also find "thread," "bread," and "already." If you need to avoid these partial matches, use the Match entire cell contents option or manually review matches before replacing all.

Do not assume that closing the document without saving will undo replacements. Once you replace text, it is part of your document. Always use Ctrl+Z or Command+Z when ready if you need to reverse replacements.

Frequently Asked Questions

Can I search for text using special characters or line breaks?

Google Docs Find and Replace does not support regular expressions or special character codes like \n for line breaks. You can search for regular text, numbers, and punctuation marks, but you cannot search for formatting like bold or italics. If you need to find text with specific formatting, you will need to search for the text itself and then manually check which instances have that formatting.

What happens if I replace text in a document that is shared with others?

Your replacements will appear in the document for all collaborators to see. If others are editing at the same time, Google Docs will show you a notification that the document has been updated. Your replacements are saved automatically, so there is no separate save step needed. If you make a mistake, undo it right away before others see the changes.

Can I replace text in only part of my document?

Google Docs does not have a built-in way to limit Find and Replace to a specific section. If you need to replace text in only part of your document, you can select that section first, then open Find and Replace—it will search only within your selection. After you finish, click elsewhere to deselect and then use Find and Replace again for other parts if needed.

Does Find and Replace work in Google Docs on mobile?

The Find and Replace tool is not available in the Google Docs mobile app. You can use the Find function (search only, not replace) by tapping the three-dot menu and selecting "Find and Replace," but the replace feature only works on the desktop or web version. If you need to replace text, open Google Docs in a web browser on your phone or use a computer.