How to Search for a Word in Google Docs (and Replace It)

To search for a word in Google Docs, open the document and press Ctrl + F (⌘ + F on a Mac), then type the word. Google Docs highlights every match. To swap a word for a different one, open Edit > Find and replace or press Ctrl + H (⌘ + Shift + H on a Mac).

These steps cover Google Docs in a web browser on Windows, Mac, and ChromeOS, plus the Google Docs app on Android, iPhone, and iPad, and they match Google’s Search and use find and replace help page and its Google Docs keyboard shortcuts list.

Open the Document

  • To search, you only need to be able to open the document. Viewers and commenters can search too.
  • To replace, you need edit access, because replacing changes the text. If the document is shared with you as view-only, ask the owner for edit access or make your own copy with File > Make a copy.
  • Find and replace works on one document at a time. It doesn’t change other files in Google Drive.

Quick Answer: Keyboard Shortcuts

Action Windows / ChromeOS Mac
Find Ctrl + F ⌘ + F
Find and replace Ctrl + H ⌘ + Shift + H
Find again (next match) Ctrl + G ⌘ + G
Find previous Ctrl + Shift + G ⌘ + Shift + G

Click inside the document text first so Docs receives the keys. With these, you can jump between matches without touching the mouse.

How to Search for a Word in Google Docs on a Computer

  1. Open your document in Google Docs at docs.google.com.
  2. Press Ctrl + F on Windows or ChromeOS, or ⌘ + F on a Mac. A small search box opens near the top right of the document.
  3. Type the word or phrase you want to find. Every match in the document is highlighted, and the box shows how many matches it found.
  4. Use the up and down arrows in the search box, or press Ctrl + G and Ctrl + Shift + G, to move to the next or previous match. The page scrolls to each one.
  5. Press Esc or select the X to close the search box. The highlights go away.
Steps to search for a word in Google Docs with Ctrl + F on a computer
Ctrl + F opens a search box that highlights every match in your document.

The match count is a quick way to see how often one word appears. If you need the total for the whole document instead, use the word count tool in Google Docs.

How to Use Find and Replace in Google Docs

  1. Open the document in Google Docs.
  2. Select Edit > Find and replace, or press Ctrl + H (⌘ + Shift + H on a Mac). The Find and replace window opens.
  3. Next to Find, type the word you want to find. Docs highlights the matches. To see each place it’s used, select Next or Prev.
  4. Next to Replace with, type the new word.
  5. Select Replace to change the highlighted match only, or Replace all to change every match at once.
  6. Close the window when you’re done.
Steps to use Find and replace in Google Docs
Find and replace lets you change one match at a time or every match at once.

Read through the changed spots to confirm the new word looks right. If you replace something by mistake, press Ctrl + Z (⌘ + Z) right away to undo it. If you only notice the mistake later, you can check the document’s editing history and restore an earlier version.

If Docs keeps changing words as you type them, that’s a different feature. You can turn off AutoCorrect in Google Docs.

Find and replace options

  • Match case: Only finds words with the same capitalization, so searching “Apple” skips “apple”.
  • Match using regular expressions: Lets you search for a pattern instead of exact words, such as any five-digit number.

Before you select Replace all, step through a few matches with Next. Short words can appear inside longer ones, so replacing “cat” would also change “category” unless you add a space or use a regular expression to limit the search.

Find and replace changes text, not formatting, so to cross out a match, jump to it and apply strikethrough in Google Docs instead.

Regular expression example

A regular expression is a short code that describes a pattern of characters. Google uses a format called RE2. For example, turn on Match using regular expressions and search for [0-9]{5}(-[0-9]{4})? to find every US ZIP code, including ZIP+4 codes such as 12345-6789.

In Google Docs, regular expressions only work in the Find box. Anything you type in Replace with goes into the document exactly as typed, so codes like $1 won’t be filled in. Google’s help page notes that replacing with capture groups (the parts of a pattern inside parentheses) only works in Google Sheets. To put a special character such as $ in a search, type a backslash before it.

How to Search for a Word in the Google Docs App on Android

  1. Open the document in the Google Docs app.
  2. Tap More (three dots) and then Find and replace.
  3. Type the word you want to find and tap Search.
  4. To see each place the word appears, tap the arrows in the top right.
  5. To replace one match, tap More > Replace, type the new word, and tap Replace. To replace every match, tap More > Replace all, type the new word, and tap Replace all.
  6. Tap Done to return to the document.

How to Search for a Word in Google Docs on iPhone or iPad

  1. Open the document in the Google Docs app.
  2. Tap More and then Find and replace.
  3. Type the word and tap Search.
  4. Use the arrows at the top of the screen to move through each match.
  5. To replace it, tap Replace with and type the new word. Tap Replace for the current match or All for every match.
  6. Tap Close to return to the document.

Tips for Searching Long Documents

  • Search for a short, unusual phrase rather than a common word to land on the right spot faster.
  • If you’re replacing text in a shared document, let collaborators know, since Replace all changes their sections too.
  • To move between headings instead of words, use the document outline or the table of contents.

Once you’ve found the right spot, you might want to add a hyperlink in Google Docs or add a footnote there. If you’re working in another language, you can also translate the whole document in Google Docs. To look things up on the web instead of inside the file, find out what replaced the Google Docs Research feature.

Find and Replace in Google Sheets

To find and replace text in a Google Sheets spreadsheet on a computer:

  1. Open the spreadsheet and click Edit > Find and replace, or press Ctrl + H (⌘ + Shift + H on a Mac).
  2. Type the text to look for in Find and the new text in Replace with.
  3. In Search, choose All sheets, This sheet, or Specific range.
  4. Click Find to jump to a match, then Replace to change it. Click Find again for the next match, or use Replace all.
  5. Click Done.

Choose Match case or Match entire cell contents when partial or differently capitalized matches should be excluded. Leave Also search within formulas off unless you want to change formula text. Unlike Docs, Sheets can reuse parts of a regular expression match: with Search using regular expressions on, $1 and $2 in Replace with stand for the first and second groups in parentheses. Check a few matches before Replace all, then check the changed cells and any affected calculations.

When the Search Finds Nothing

The search finds nothing. Check the spelling, turn off Match case, and make sure you’re searching for the word as it appears, without extra spaces. Text inside images isn’t searchable. To find typos across the whole document, run spell check in Google Docs.

Ctrl + F opens the browser’s search bar instead. Click inside the document text first, then press the shortcut again. Docs uses its own search box only when the document has focus.

Replace options are missing or do nothing. You probably have view-only or comment-only access. Ask the owner for edit access, or copy the document and edit your copy.

Replace all changed too much. Press Ctrl + Z right away, or use File > Version history to restore the version from before the change.

A regular expression won’t match. Make sure Match using regular expressions is checked, and remember that the ^ and $ start and end markers only work in Google Sheets, according to Google.

Google Docs Find and Replace Questions

Can I search for a word in Google Docs on my phone?

Yes. In the Google Docs app, tap More and then Find and replace. This works on Android, iPhone, and iPad.

Can I undo Replace all in Google Docs?

Yes. Press Ctrl + Z (⌘ + Z on a Mac) right after replacing, or use Version history to restore an earlier version of the document.

Does Google Docs search find partial words?

Yes. A standard search matches the text anywhere it appears, including inside longer words. Add a space, turn on Match case, or use a regular expression if you need tighter matches.

Can I find and replace in several Google Docs at once?

No. Find and replace only changes the document you have open, so repeat it in each file.

Next step: working in the Google Docs app at night? You can also turn on dark mode in Google Docs.