The fastest way to swap one word for another across your whole document

Open your Google Doc and press Ctrl+H on Windows or Cmd+H on Mac. A box will appear with two fields: "Find" and "Replace with". Type the word you want to remove in the Find field, type the word you want instead in the Replace with field, then click "Replace all" to change every instance at once. If you want to change only some of them, click "Replace" one at a time to approve each swap before it happens.

This same tool works whether you are replacing a single word, a phrase, or even a punctuation mark. You can also use it to fix typos across your whole document in seconds instead of scrolling through and catching them one by one.

Key Takeaways

  • Press Ctrl+H (Windows) or Cmd+H (Mac) to open the Find and Replace box in any Google Doc.
  • Type the word to find in the first field and the replacement word in the second field, then click "Replace all" to change every instance at once.
  • Click "Replace" instead of "Replace all" if you want to approve each change before it happens, which is safer when you are not sure the word appears only where you want it.
  • The tool works on phrases, punctuation, and partial words, so you can use it to fix formatting or capitalization across your whole document.

Opening the Find and Replace menu from your keyboard

The keyboard shortcut is the fastest route. Ctrl+H on a Windows machine or Cmd+H on a Mac will open the Find and Replace panel on the right side of your screen, no matter what you are doing in the document at that moment.

If you prefer to use the menu instead, click the three-line menu icon in the top left corner of your Google Doc, then click "Find and replace". This opens the same panel as the keyboard shortcut, just with an extra step.

Replacing one word or all instances of it

Once the Find and Replace panel is open, type the word you want to find in the top field. Google Docs will highlight every instance of that word in your document in yellow as you type, so you can see right away whether you are searching for the right thing.

Type the replacement word in the "Replace with" field below it. Now you have two choices: click "Replace" to change only the highlighted instance, or click "Replace all" to change every instance in the document at once. "Replace all" is faster when you are certain the word should be replaced everywhere. Use "Replace" one at a time if the word might mean different things in different places, or if you are not sure how many times it appears.

Making your search more precise with match options

Below the Replace with field, you will see three checkboxes: "Match case", "Match entire cell contents", and "Search using regular expressions". Most of the time you will leave these unchecked, but they become useful when you need to be more specific.

Match case means Google Docs will only find the word if the capital letters match exactly. If you search for "hello" with Match case on, it will not find "Hello" or "HELLO". This is useful when you are fixing a name or a word that should always be capitalized the same way.

Match entire cell contents finds only the word if it stands alone, not as part of a longer word. If you search for "cat" without this option, it will find "cat", "cats", "category", and "concatenate". With this option on, it finds only "cat" by itself. This prevents accidental replacements in words you did not mean to change.

Undoing a replacement if you change your mind

If you click "Replace all" and then realize you made a mistake, press Ctrl+Z on Windows or Cmd+Z on Mac when ready. This will undo the entire replacement and put all the words back the way they were. You can undo multiple times if you need to go back several steps.

This is why clicking "Replace" one at a time is safer when you are not completely sure about the change. Once you close the Find and Replace panel and move on to other work, undoing becomes harder because you have to go back through all your other edits to reach the replacement.

Replacing phrases and special characters

The Find and Replace tool works on anything you can type, not just single words. You can search for a whole phrase like "thank you for your time" and replace it with "I appreciate your time". You can also search for punctuation marks — for example, find all double spaces and replace them with single spaces, or find all em dashes and replace them with hyphens.

If you want to replace something with nothing at all (delete it), just leave the "Replace with" field empty and click "Replace all". This is a fast way to remove a word, phrase, or character from your entire document without scrolling through and deleting each one manually.

What happens to formatting when you replace text

When you replace text, Google Docs keeps the formatting of the original word. If the word you are replacing was bold, the new word will also be bold. If it was in a different color or font size, the replacement keeps that formatting too.

If you want the replacement word to have different formatting, you will need to change it after the replacement is done. Select the new word, then use the formatting toolbar to adjust the font, size, color, or style. This is usually faster than trying to format before you replace.

Frequently Asked Questions

Can I search for a word only in a certain part of my document?

No, Find and Replace searches your entire document. If you want to change a word only in one section, you can select that section first, then open Find and Replace — it will only search within your selection. After you close the panel, the selection disappears and you can work on the rest of the document normally.

What if I want to replace a word but keep some of the original formatting?

Replace the text first, then manually fix the formatting on the new word. Google Docs copies the formatting from the original word, so if you need something different, it is faster to replace everything and then adjust a few instances than to replace one at a time.

Does Find and Replace work the same way in Google Sheets?

Yes, the keyboard shortcut and the menu option are identical in Google Sheets. The process works exactly the same way — type what you want to find, type the replacement, and choose Replace or Replace all. The match options work the same too.

Can I undo a Replace all if I already closed the Find and Replace panel?

Yes, as long as you have not done other work in the document. Press Ctrl+Z or Cmd+Z to undo, and it will reverse the entire replacement. If you have made other edits since then, you will have to undo multiple times to get back to before the replacement happened.