The fastest way to replace text in Google Docs
Open your document and press Ctrl+H on Windows or Cmd+H on Mac. This opens the Find and Replace dialog. Type the word or phrase you want to find in the first box, type what you want to replace it with in the second box, 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, changing "their" to "there" only where it makes sense — use the one-at-a-time method. Google Docs will highlight each match and wait for you to decide whether to replace it. This takes longer but prevents mistakes.
The Find and Replace tool works on the entire document by default. If you have selected a specific section of text before opening Find and Replace, it will only search within that selection.
Key Takeaways
- Press Ctrl+H (Windows) or Cmd+H (Mac) to open Find and Replace in any Google Docs document.
- Replace All changes every instance of a word or phrase throughout the entire document in seconds.
- Use Replace (one at a time) when you need to check each change before it happens, such as fixing homophones or brand names.
- You can search for exact phrases, not just single words, and replace them with anything including nothing (to delete text).
Searching for exact phrases and special cases
If you search for a word like "read," Google Docs will find "read," "reading," "reader," and "reads" — every form of the word. To find only the exact word "read," check the box labeled Match case in the Find and Replace dialog. This also makes the search case-sensitive, so "Read" and "read" are treated as different.
You can also search for phrases with spaces, punctuation, or line breaks. Type the exact phrase you want to find, including spaces and punctuation. For example, searching for "United States" will not match "United States" (with two spaces) unless you type two spaces in the search box.
To delete text without replacing it with anything, leave the Replace field empty and click Replace All. This removes every instance of the search term from your document.
What happens when Find and Replace finishes
When you click Replace All, Google Docs shows a message telling you how many replacements were made. If it says "0 replacements made," the text you searched for does not exist in the document — check your spelling or try a shorter phrase.
Every replacement is undoable. Press Ctrl+Z (Windows) or Cmd+Z (Mac) immediately after to undo all replacements at once. If you realize a mistake later, you can still undo by opening the Edit menu and clicking Undo, though you can only go back through your recent actions.
Using Find and Replace with collaborators
If multiple people are editing the same document, Find and Replace works on the current version everyone sees. When you use Replace All, the changes appear instantly for all collaborators — they will see the updated text the next time they refresh or scroll to that section.
There is no way to limit Find and Replace to only your own edits or to only changes made after a certain time. If you need to track which replacements were made and by whom, use the Version History feature instead: click File, then Version History, then See version history to view all changes and who made them.
Finding and replacing across multiple documents
Find and Replace only works within a single open document. If you need to replace text in multiple documents at once, you must open each document separately and run Find and Replace in each one.
A faster method is to use Google Drive's search feature to find all documents containing a word, then open them one by one. Go to Google Drive, click the search box at the top, type the word you want to find, and Drive will show every document containing it. You can then open each document and use Find and Replace within it.
Common mistakes and how to avoid them
The most common mistake is using Replace All without checking what will actually be replaced. If you search for a short word like "to," you will also replace it inside longer words like "into," "toward," and "button." Always use Replace (one at a time) for short words, or search for the word with a space before or after it — for example, search for " to " (with spaces on both sides) to avoid matching it inside other words.
Another mistake is forgetting that Find and Replace is case-sensitive by default. If you search for "john" it will not find "John" at the start of a sentence. Uncheck Match case to search for all variations of capitalization at once.
If you are replacing a word that appears in headers, footers, or comments, Find and Replace will change those too. There is no way to exclude headers or footers from the search, so be aware that your replacement will affect the entire document including these areas.
Frequently Asked Questions
Can I search for a word only at the beginning or end of a line?
Google Docs does not support regular expressions or special search patterns like "word at start of line." You can only search for exact text. If you need to find words in specific positions, you will need to scroll through the document manually or use Find (Ctrl+F) to highlight each instance and check it yourself.
What if I want to replace something but keep part of it?
You can use parentheses to capture part of the search term and reuse it in the replacement. For example, search for "color: (.*)" and replace with "colour: $1" to change "color:" to "colour:" while keeping whatever comes after it. This requires checking the Use regular expressions box in Find and Replace.
Does Find and Replace work in Google Sheets or Google Slides?
Yes. Google Sheets and Google Slides both have Find and Replace using the same keyboard shortcut (Ctrl+H or Cmd+H). In Sheets, it searches cell contents and formulas. In Slides, it searches text in all slides, speaker notes, and slide titles.
Can I undo a Find and Replace if I close the document?
If you close the document without saving, the changes are lost and the document reverts to its last saved state. If you already saved, you can still undo by opening Version History (File > Version History > See version history) and clicking on a version from before the replacement was made.