Open Find and Replace, then type what you're looking for
To find and replace text in Google Docs, use the keyboard shortcut Ctrl+H on Windows or Cmd+H on Mac. A box will pop up on the right side of your screen with two fields: one for the text you want to find, and one for what you want to replace it with.
Type the word or phrase you're searching for in the "Find" field. Google Docs will immediately highlight every match in your document in orange, so you can see how many times that text appears before you make any changes.
If you don't see the Find and Replace box appear, make sure you're not in a comment or suggestion. The shortcut only works when your cursor is in the main document text.
Key Takeaways
- Press Ctrl+H (Windows) or Cmd+H (Mac) to open the Find and Replace box on the right side of your screen.
- Type what you want to find in the first field, and Google Docs will highlight all matches in orange so you can see how many there are.
- Type the replacement text in the second field, then choose to replace one at a time or all at once.
- Use "Match case" if you need to find only uppercase or lowercase versions, and "Match entire cell contents" if you're working with specific words only.
- You can undo a replace-all action immediately by pressing Ctrl+Z or Cmd+Z if you change your mind.
Type your replacement text and choose how to replace
Once you've entered the text to find, click in the "Replace with" field and type what you want it to become. You don't have to replace anything — if you just want to find text and move through it, you can skip this step and use the arrow buttons to jump from one match to the next.
When you're ready to replace, you have two options. The "Replace" button (with a single arrow) replaces only the highlighted match. The "Replace all" button replaces every instance at once. Most people use "Replace all" when they're confident about the change, like fixing a misspelled name throughout a long document.
If you're not sure about replacing everything, use the single "Replace" button to go through matches one at a time. This lets you skip any that shouldn't change — for example, if you're replacing "lead" with "lead-free" but some instances of "lead" are part of other words.
Use Match case to find only uppercase or lowercase versions
By default, Google Docs finds text regardless of whether it's uppercase, lowercase, or mixed. If you need to find only the exact capitalization you type, click the three dots next to the search fields and turn on Match case.
This is useful when you're fixing something specific. For example, if you want to replace "iPhone" with "iPhone 15" but leave "iphone" (in lowercase) alone, "Match case" will only find and replace the capitalized version.
Without this option turned on, searching for "iPhone" would also find "iphone", "IPHONE", and any other variation. Most of the time you won't need this, but it's there when you do.
Use Match entire cell contents to find whole words only
If you turn on Match entire cell contents (also in the three-dot menu), Google Docs will only find text that stands completely alone as a word, not text that's part of a longer word.
This prevents accidental replacements. For example, if you search for "cat" without this option, it will find "cat", "cats", "category", and "concatenate" — anything containing those letters in order. With "Match entire cell contents" on, it finds only the word "cat" by itself.
Use this when you're replacing a short word that might appear inside longer words, or when you want to be very precise about what changes.
Undo a replace-all action if you change your mind
If you click "Replace all" and immediately realize you made a mistake, press Ctrl+Z on Windows or Cmd+Z on Mac right away. This undoes the entire replace-all action and puts your document back the way it was.
You can undo multiple times if you need to — Google Docs keeps a history of your recent changes. However, if you close the document and come back later, you won't be able to undo the replacement. So if you're not sure about a large replace-all, do it while you're still in the document and can fix it immediately if needed.
The Find and Replace box stays open after you replace, so you can search for something else right away without closing it. Click the X button in the top right of the box to close it when you're done.
Close the Find and Replace box and continue editing
After you finish finding and replacing, close the box by clicking the X in its top right corner, or press Escape on your keyboard. Your document returns to normal view, and any replacements you made stay in place.
If you need to find and replace again, just press Ctrl+H or Cmd+H and the box opens with your previous search still in it. You can clear those fields and type new ones, or edit what's already there.
Google Docs saves your document automatically, so your replacements are already saved. You don't have to do anything else to keep the changes.
Frequently Asked Questions
Can I find and replace text that spans multiple lines?
Google Docs' Find and Replace does not support line breaks or paragraph marks in the search field. If you need to find text that crosses a line break, search for just the beginning or ending part instead, then manually check each match to see if it's the one you want to change.
What if I want to replace text with nothing (delete it)?
Leave the "Replace with" field empty and click "Replace all". Google Docs will remove every instance of the text you searched for. This is useful for deleting repeated words or removing formatting characters, but be careful — you can only undo this immediately after.
Does Find and Replace work in comments and suggestions?
No. Find and Replace only searches the main document text, not comments, suggestions, or tracked changes. If you need to find text in comments, you'll have to scroll through them manually or use your browser's find function (Ctrl+F or Cmd+F) to search the whole page.
Can I use Find and Replace in a shared document while someone else is editing?
Yes, but be careful. If multiple people are editing at the same time, a large replace-all might conflict with changes someone else is making. For shared documents with active collaborators, consider doing find-and-replace during times when you're the only one editing, or use single "Replace" instead of "Replace all" so changes happen more slowly.
Why isn't Find and Replace finding text I know is in my document?
Check that you're not searching inside a comment or text box — Find and Replace only works in the main document body. Also make sure there are no extra spaces before or after your search term, as "cat " (with a space) won't find "cat" (without one). If you're still stuck, try closing and reopening the Find and Replace box.