Find and Replace is in the Edit menu

Open the Edit menu at the top of your Google Docs document, then click Find and replace. A panel will slide open on the right side of your screen. You can also use the keyboard shortcut Ctrl+H on Windows or Command+H on Mac to open it when ready without clicking through the menu.

The Find and Replace panel stays open while you work, so you can run multiple searches and replacements without reopening it. When you are finished, close it by clicking the X button in the top right corner of the panel.

Key Takeaways

  • Find and Replace opens from the Edit menu or by pressing Ctrl+H (Windows) or Command+H (Mac).
  • Type the word or phrase you want to find in the first box and the replacement text in the second box.
  • Use "Match case" to distinguish between uppercase and lowercase letters, and "Match entire cell contents" to find exact whole-word matches only.
  • Click "Replace" to change one instance at a time, or "Replace all" to change every occurrence in your document at once.
  • The panel shows how many matches were found and highlights them in your document so you can see them before replacing.

Typing what you want to find and replace

The first text box is labeled Find. Type the word, phrase, or even a single character you want to search for. Google Docs will highlight every match in your document as you type, so you can see how many times it appears before you make any changes.

The second text box is labeled Replace with. Type what you want to put in place of the text you found. If you want to delete something instead of replacing it, leave this box empty and click Replace or Replace all.

Using Match case and other search options

Below the two text boxes are checkboxes for search options. Match case tells Google Docs to treat uppercase and lowercase letters as different. For example, if you search for "apple" with Match case checked, it will find "apple" but not "Apple" or "APPLE". Leave it unchecked if you want to find all versions regardless of capitalization.

Match entire cell contents finds only exact whole-word matches. If you search for "cat" with this option checked, it will find "cat" but not "catalog" or "scatter". This is useful when you want to avoid accidentally replacing part of a longer word.

Replacing one instance or all at once

After you type your search term and replacement text, you have two choices. Click Replace to change just the first highlighted match. Google Docs will move to the next match automatically, so you can review each one before deciding whether to replace it.

Click Replace all to change every match in your document in one action. Google Docs will tell you how many replacements it made. Use this when you are confident the search term appears only where you want it replaced — for example, replacing a company name throughout a document.

Seeing matches before you replace them

As you type in the Find box, Google Docs highlights every match in your document with a light blue background. This lets you scan your document and confirm the search is finding what you expect. The number of matches appears at the bottom of the Find and Replace panel, so you know exactly how many changes you are about to make.

If the search is finding too many results or the wrong results, adjust your search term or turn on Match case or Match entire cell contents before you replace anything. This prevents accidental changes to words you did not intend to modify.

Closing Find and Replace when you are done

Click the X button in the top right corner of the Find and Replace panel to close it. The panel will slide away, and your document returns to normal view. Any replacements you made stay in your document — closing the panel does not undo them.

If you need to undo a replacement you just made, use Ctrl+Z (Windows) or Command+Z (Mac) when ready after closing the panel. This works best if you used Replace all and want to reverse the entire action at once.

Frequently Asked Questions

Can I search for line breaks or special characters?

Google Docs Find and Replace does not support searching for line breaks, tabs, or special formatting characters the way some desktop programs do. You can search for regular text and punctuation marks, but not invisible characters. For complex formatting searches, you may need to manually locate and replace those instances.

What happens if I click Replace all by accident?

Press Ctrl+Z (Windows) or Command+Z (Mac) when ready to undo the replacement. Google Docs will reverse all the changes made by Replace all in one action. If you have made other edits since the replacement, undoing may reverse those as well, so work carefully after using Replace all.

Does Find and Replace work in comments or suggested edits?

No, Find and Replace only searches the main text of your document. It does not search inside comments, replies to comments, or text in Suggested Edits mode. You will need to find and edit those manually if they contain the text you are looking for.

Can I search for text with different spacing or line breaks?

Find and Replace treats spacing literally, so searching for "hello world" will not find "hello world" (with two spaces). If spacing varies in your document, you may need to run multiple searches with different spacing, or manually locate and fix those instances.