Use Find and Replace to change one word or many at once

Google Docs has a built-in tool called Find and Replace that lets you swap out words, phrases, or formatting across your entire document in seconds. You open it with Ctrl+H on Windows or Cmd+H on Mac, type the word you want to find and the word you want instead, then choose whether to replace just one instance or all of them at once.

This is faster and more reliable than scrolling through and editing by hand, especially in longer documents where you might miss a word or accidentally change something you meant to keep. The tool also lets you search for specific formatting — like bold text or a particular font — and replace it with different formatting, which is useful when you need to standardize how your document looks.

Key Takeaways

  • Open Find and Replace with Ctrl+H (Windows) or Cmd+H (Mac), type the word to find and the replacement word, then click Replace All to change every instance at once.
  • Use the "Match case" option if you only want to replace words that are capitalized the same way as you typed them.
  • The "Match entire word only" option prevents you from accidentally changing part of a longer word — for example, replacing "cat" inside "category".
  • You can undo any replacement by pressing Ctrl+Z (Windows) or Cmd+Z (Mac) when ready after, even if you replaced hundreds of words at once.

Opening Find and Replace and entering your search terms

Press Ctrl+H on a Windows computer or Cmd+H on a Mac. A panel will open on the right side of your screen with two text boxes: one labeled "Find" and one labeled "Replace with". Click in the Find box and type the word or phrase you want to change. Then click in the Replace with box and type what you want it to become.

If you are replacing a phrase rather than a single word — for example, changing "New York City" to "NYC" — type the entire phrase exactly as it appears in your document. Spacing and punctuation matter. Once both boxes are filled in, you are ready to search.

Choosing between Replace and Replace All

After you enter your search terms, Google Docs will highlight the first match in your document. You now have two choices: click the "Replace" button to change only that one instance, or click "Replace All" to change every match in the document at once.

Use "Replace" when you want to check each change before it happens — for example, if you are replacing a common word like "the" and want to make sure you are not accidentally changing it in a way that breaks a sentence. Use "Replace All" when you are confident the replacement is correct everywhere, like changing a person's name throughout the document or fixing a consistent misspelling.

Using Match case to control capitalization

By default, Find and Replace ignores whether letters are uppercase or lowercase. If you search for "hello", it will find and replace "hello", "Hello", and "HELLO" all the same way. Check the "Match case" box if you want to replace only words that match the exact capitalization you typed.

This is useful when you want to change a name from "john" to "John" without accidentally changing "JOHN" (all caps) or "John" (already correct). With Match case turned on, your search becomes more precise and you avoid unintended changes.

Using Match entire word only to avoid partial replacements

By default, Find and Replace will change a word even if it is part of a longer word. If you search for "cat" and replace it with "dog", you will accidentally change "category" to "dogegory" and "catalog" to "dogalog". Check the "Match entire word only" box to prevent this.

With this option on, the tool will only replace "cat" when it stands alone as its own word, separated by spaces or punctuation. This is the safer choice for most replacements, especially when you are working with common short words that might appear inside longer ones.

Undoing a replacement if something went wrong

If you click Replace All and realize the change was not what you wanted, press Ctrl+Z (Windows) or Cmd+Z (Mac) when ready to undo it. Google Docs will reverse the replacement and restore your document to how it was before. This works even if you replaced hundreds or thousands of words at once.

You can undo multiple times to step back through your recent changes. If you wait too long or close the document, you may not be able to undo, so act quickly if you notice a mistake.

Replacing formatting instead of just words

Find and Replace can also search for and change formatting. Click the three-dot menu next to the Find box to see options like "Bold", "Italic", "Underline", and "Font". You can search for text that has a specific format applied to it, then replace it with the same text in a different format.

For example, you could find all instances of bold text and remove the bold, or find all text in Arial font and change it to Times New Roman. This is helpful when you inherit a document with inconsistent formatting and need to standardize it quickly. The formatting options appear in both the Find and Replace with sections, so you can be very specific about what you are looking for and what you want to change it to.

Frequently Asked Questions

Can I search for a blank space or line break?

Yes. In the Find box, you can type a space character to find and replace spaces, or use the special code ^n to find line breaks. This is useful if you have extra spaces between words or multiple blank lines you want to clean up. Click the three-dot menu next to Find to see the option for "Regular expressions" if you need to search for more complex patterns.

What if I only want to replace the first few instances, not all of them?

Click the "Replace" button one at a time for each instance you want to change. Google Docs will move to the next match after each replacement, so you can decide for each one whether to replace it or skip it. This takes longer than Replace All but gives you full control.

Does Find and Replace work in shared documents?

Yes, it works the same way in documents you own and documents shared with you. If you have edit permission, you can use Find and Replace. The changes will appear in the document history and other people viewing it will see the replacements happen in real time.

Can I search for text with a specific color or highlight?

The standard Find and Replace tool does not search by text color or highlight color. You would need to manually find and change those. However, you can search for bold, italic, underline, and font changes using the formatting options in the three-dot menu.