Open Find and Replace to swap words quickly

The fastest way to replace a word in Google Docs is to use the Find and Replace tool. Open your document, then press Ctrl+H on Windows or Command+H on Mac. A panel will appear on the right side of your screen with two text boxes: one for the word you want to find, and one for the word you want to use instead.

Type the word you want to remove or change in the "Find" box. Type the replacement word in the "Replace" box. Then click the button to replace that single instance, or click "Replace all" to change every occurrence at once. Google Docs will tell you how many replacements it made.

Key Takeaways

  • Press Ctrl+H (Windows) or Command+H (Mac) to open Find and Replace in any Google Docs document.
  • Type the word to find in the first box and the replacement word in the second box, then choose to replace one at a time or all at once.
  • Use the "Match case" option if you need to replace only words that match the exact capitalization, such as replacing "John" but not "john".
  • The "Match entire word only" checkbox prevents accidental replacements inside longer words, so searching for "cat" won't change "catalog".
  • You can undo any replacement by pressing Ctrl+Z (Windows) or Command+Z (Mac) when ready after the replacement finishes.

Use "Match entire word only" to avoid unintended changes

When you search for a short word like "cat" or "run", Google Docs will find it even when it appears inside a longer word. If you replace "cat" without checking "Match entire word only", the tool will change "catalog" to "olog" and "concatenate" to "conatenate". That is almost never what you want.

Before you click "Replace all", check the box labeled "Match entire word only". This tells Google Docs to replace only the word standing by itself, not the letters when they appear as part of a longer word. The same protection applies to punctuation: if you search for "don't", it will find "don't" but not "dont" unless you uncheck that box.

Use "Match case" when capitalization matters

By default, Google Docs treats uppercase and lowercase letters the same way. If you search for "john", it will find "john", "John", and "JOHN". If you need to replace only the capitalized version—for example, replacing the name "John" but leaving the word "john" alone in a sentence like "I john the boards together"—check the "Match case" box.

When "Match case" is on, your search becomes exact. Searching for "John" will find only "John", not "john" or "JOHN". This is useful when you are correcting a name that appears in different forms throughout a document, or when you want to replace a word only at the beginning of sentences.

Replace one instance at a time to review changes

If you are unsure whether every instance of a word should be replaced, use the single-replace button instead of "Replace all". After you type your find and replace words, click the button that looks like a single arrow or says "Replace" (not "Replace all"). Google Docs will highlight the first match and wait for you to confirm.

You can then click "Replace" to change that one instance and move to the next, or click the arrow button to skip it and move to the next match without replacing. This takes longer than replacing all at once, but it gives you control and lets you catch mistakes before they spread through your whole document.

Close Find and Replace when you are done

The Find and Replace panel stays open on the right side of your screen until you close it. Click the X button in the top right corner of the panel, or press Escape on your keyboard. Your document will return to normal view, and you can continue editing.

If you made a mistake and replaced the wrong words, press Ctrl+Z (Windows) or Command+Z (Mac) right away to undo the replacement. Google Docs will restore the original words. You can undo multiple times if you need to go back several steps.

Search for and replace special characters or formatting

Find and Replace can also search for line breaks, tabs, and other invisible characters. In the "Find" box, you can type special codes: type ^n to find a line break, or ^t to find a tab character. This is useful if you need to remove extra spaces or line breaks that appear throughout your document.

You cannot use Find and Replace to change text formatting (like making words bold or changing their color) in Google Docs the way you can in Microsoft Word. If you need to format text, you will have to select it and use the toolbar or keyboard shortcuts after the replacement is done.

Frequently Asked Questions

Can I undo a "Replace all" if I made a mistake?

Yes. Press Ctrl+Z (Windows) or Command+Z (Mac) when ready after the replacement finishes, and Google Docs will restore all the original words. If you have made other edits since the replacement, you may need to undo multiple times to get back to the moment before the replacement happened.

What if I want to replace a word only in a certain part of my document?

Google Docs does not have a built-in way to limit Find and Replace to a selected section. The tool always searches the entire document. If you need to replace a word in only part of your document, select and copy that section into a new temporary document, do the replacement there, then copy it back.

Can I search for a word and replace it with nothing to delete it?

Yes. Leave the "Replace" box empty and click "Replace all". Google Docs will remove every instance of the word you searched for. Make sure you use "Match entire word only" so you do not accidentally delete those letters when they appear inside other words.

Does Find and Replace work the same way on mobile as on desktop?

The mobile app for Google Docs has a Find feature but not a full Find and Replace tool. On a phone or tablet, you can search for words, but to replace them you will need to open the document on a computer or use the web version of Google Docs in your mobile browser.