Open Find and Replace with a keyboard shortcut or menu
The fastest way to open Find and Replace in Google Docs is to press Ctrl+H on Windows or Cmd+H on Mac. A panel will appear on the right side of your document with two text boxes: one for the text you want to find, and one for the replacement text.
If you prefer using the menu, click Edit in the top menu bar, then select Find and replace from the dropdown. This opens the same panel as the keyboard shortcut.
Key Takeaways
- Press Ctrl+H (Windows) or Cmd+H (Mac) to open Find and Replace instantly without using the menu.
- Type the text you want to find in the first box and the replacement text in the second box, then click Replace All to change every instance at once.
- Use the "Match case" option to distinguish between uppercase and lowercase letters, or leave it unchecked to find all variations.
- The "Match entire cell contents" option finds only exact matches of your full search term, not partial matches within words.
- Google Docs shows you how many instances it found before you replace anything, so you can review the number before proceeding.
Enter your search term and replacement text
In the Find box, type the text you want to search for. This can be a single word, a phrase, or even punctuation. As you type, Google Docs begins highlighting every match in your document in yellow, so you can see how many times the text appears.
In the Replace with box below it, type what you want to replace it with. If you want to delete the text instead of replacing it with something else, leave this box empty and proceed with the replacement.
Review matches before replacing
Google Docs displays the total number of matches at the top of the Find and Replace panel. Read this number carefully before you click Replace All, because replacing is permanent and cannot be undone with Find and Replace — you would have to use Ctrl+Z or Cmd+Z to undo.
You can click the up and down arrows next to the Find box to move through each match one at a time. This lets you see the context around each instance and decide whether it should actually be replaced. This is especially useful if your search term appears in different contexts where you might not want to replace all of them.
Choose between Replace and Replace All
The Replace button (the single arrow icon) replaces only the currently highlighted match. Use this when you want to replace instances one at a time and skip some matches.
The Replace All button (the double arrow icon) replaces every match in the document at once. This is faster when you are certain you want to replace all instances, such as changing a client name throughout a contract or fixing a consistent misspelling.
Use matching options for precise searches
Click More options at the bottom of the Find and Replace panel to reveal additional settings. The Match case option distinguishes between uppercase and lowercase letters. If you check this box, searching for "hello" will not find "Hello" or "HELLO". Leave it unchecked to find all variations regardless of capitalization.
The Match entire cell contents option finds only exact matches of your complete search term. For example, if you search for "cat" with this option checked, it will find "cat" but not "catalog" or "category". Without this option, "cat" matches any word containing those letters.
The Search in dropdown lets you limit your search to the document body only, or expand it to include headers, footers, and footnotes. By default, it searches the entire document.
Close Find and Replace when finished
Click the X button in the top right corner of the Find and Replace panel to close it. The panel will disappear, but your replacements remain in the document. If you made a mistake, press Ctrl+Z or Cmd+Z immediately to undo the last replacement action.
You can also press Escape on your keyboard to close the panel quickly. This is useful if you want to review your document after replacing text without the panel taking up space on the right side.
Common situations where Find and Replace saves time
Find and Replace is most useful when you need to change the same text in many places. Common examples include updating a company name throughout a long document, correcting a word you consistently misspelled, changing date formats, or removing extra spaces between words.
It also works well for formatting changes when combined with regular expressions. If you enable the "Regular expressions" option under More options, you can search for patterns rather than exact text — for instance, finding all phone numbers or email addresses. However, regular expressions require specific syntax and are more advanced than basic find and replace.
Frequently Asked Questions
Can I undo a Find and Replace action?
Yes. Press Ctrl+Z (Windows) or Cmd+Z (Mac) immediately after replacing to undo the action. The undo button in the toolbar also works. However, if you close the document and reopen it, you cannot undo replacements from a previous session.
What if I want to replace text only in a specific section of my document?
Find and Replace searches the entire document by default. To replace text in only one section, select that section first by clicking and dragging to highlight it, then open Find and Replace. It will search only within your selection.
Does Find and Replace work with special characters like line breaks?
Basic Find and Replace does not recognize line breaks or tabs. To search for these, you need to enable "Regular expressions" under More options and use the correct syntax: \n for line breaks and \t for tabs. This requires knowledge of regular expression patterns.
Can I search for text that appears in comments or suggestions?
No. Find and Replace searches only the document text itself, not comments, suggestions, or tracked changes. You would need to review those separately.
What happens if I search for text that does not exist in the document?
Google Docs will display "0" matches at the top of the Find and Replace panel. No replacements will occur. You can then adjust your search term and try again.