How to search for text in any document
The fastest way to find text in a document is to use the search function built into your program. On Windows, press Ctrl+F. On Mac, press Command+F. A small box will appear, usually at the top or side of your document. Type the word or phrase you're looking for, and the program will highlight every match and jump to the first one.
This works the same way in Microsoft Word, Google Docs, Adobe Reader, web browsers, and most other programs that display text. The search box is always there — you just need to know the keyboard shortcut to open it. Once you've typed what you're looking for, you can press Enter or click the down arrow to move to the next match.
Closing the search box is just as simple: press Escape on your keyboard, or click the X button in the search box itself. Your document stays open and unchanged.
Key Takeaways
- Press Ctrl+F on Windows or Command+F on Mac to open the search box in almost any program.
- Type the exact word or phrase you want to find, and the program will highlight all matches and show you how many there are.
- Use the arrow buttons or Enter key to move between matches one at a time.
- Search is case-insensitive by default in most programs, so "apple" and "Apple" will both be found.
- Some programs offer advanced search options like "match whole words only" or "match case," which narrow results when you need them to.
Moving between search results
Once you've typed your search term, the program shows you how many matches exist in the document. In Google Docs, you'll see "1 of 47" if there are 47 matches. In Microsoft Word, the status bar tells you the same thing. The down arrow button moves you to the next match; the up arrow moves you backward through the list.
You can also press Enter to jump to the next match without clicking anything. If you want to go back to a previous match, press Shift+Enter (or Shift+Return on Mac). This is faster than clicking the up arrow repeatedly when you're scanning through a long document.
Making searches more precise with options
The basic search finds every instance of your text, even if it's part of a larger word. If you search for "cat," you'll also find "category," "catalog," and "concatenate." When that's not what you want, most programs offer a Match Whole Words Only option. This checkbox appears in the search box or in an "Options" menu. Turning it on means "cat" will only match the word "cat" by itself.
Another useful option is Match Case, which makes the search case-sensitive. By default, searching for "john" finds "John," "JOHN," and "john" all the same way. If you turn on Match Case, it will only find the exact capitalization you typed. This is helpful when you're looking for a specific name or acronym.
In Microsoft Word, these options appear in the "Find & Replace" dialog, which you can open with Ctrl+H. In Google Docs, click the three dots next to the search box to see "Match case" and other options. In Adobe Reader, the search box itself has small icons for these settings.
Using Find & Replace to change text
Find & Replace does two things at once: it finds text and replaces it with something else. Open it with Ctrl+H on Windows or Command+H on Mac. You'll see two boxes — one for the text you want to find, and one for what you want to replace it with. Type in both, then click "Replace All" to change every match at once, or "Replace" to change them one at a time.
One at a time is safer when you're not completely sure about the change. For example, if you're replacing "their" with "there," you might want to check each match first, because "their" is sometimes correct and "there" is not. Clicking "Replace" lets you see the context before you commit to the change.
Be careful with "Replace All" on common words. If you replace every instance of "a" with "the," you'll change sentences you didn't mean to touch. Start with less common phrases, or use the "Match Whole Words Only" option to avoid accidental changes.
Searching across multiple pages and long documents
In a long document, searching is the only practical way to find something. If you're looking for a specific date, name, or phrase in a 50-page report, scrolling through manually will take hours. The search function jumps directly to every match, no matter how far apart they are.
Some programs show you a preview of the match in context. In Microsoft Word, the search results pane on the left shows a snippet of text around each match, so you can see whether it's the one you're looking for before you jump to it. In Google Docs, clicking a match in the search results takes you straight to that location.
If you're searching a PDF file with scanned images instead of text, the search won't work — the program can't read text from pictures. You'll need to use optical character recognition (OCR) software to convert the images to searchable text first. Most modern PDF readers like Adobe Reader can do this automatically.
Searching in Google Docs and Microsoft Word Online
The search function works the same way in the online versions of these programs as it does in the desktop versions. Press Ctrl+F or Command+F, type your search term, and use the arrow buttons to move between matches. Google Docs shows a sidebar with all matches listed, and you can click any one to jump to it. Microsoft Word Online works similarly.
One difference: in Google Docs, you can search for formatting as well as text. Click the three dots next to the search box, then "Advanced search," and you can look for bold text, italic text, or specific colors. This is useful when you're trying to find all the headings in a document or all the text you've marked in red.
Troubleshooting when search doesn't find what you're looking for
If you search for something you know is in the document and nothing appears, check these things first. Make sure you're not using "Match Case" if the capitalization is different from what you typed. Check for extra spaces — if you search for "the cat" with two spaces and the document has one space, it won't match. Try searching for just part of the phrase instead.
If you're searching a PDF and nothing comes up, the file might be a scanned image rather than real text. Try copying a sentence from the PDF and pasting it into a text editor. If the text doesn't paste, the PDF is an image and you'll need OCR to search it. Some PDF readers have OCR built in; others require a separate tool.
In Google Docs, if search seems slow or incomplete, try refreshing the page. Occasionally the search index doesn't update immediately after you've made changes. In Microsoft Word, if search isn't finding something, make sure you're searching the whole document and not just the current page or selection.
Frequently Asked Questions
Can I search for special characters or symbols?
Yes, but it depends on the program. In most programs, you can search for punctuation like periods, commas, or quotation marks. Some programs let you search for line breaks or paragraph marks using special codes — in Microsoft Word, you can search for "^p" to find paragraph breaks. Check your program's help menu for the exact codes.
What's the difference between Find and Find & Replace?
Find (Ctrl+F) only searches and highlights matches. Find & Replace (Ctrl+H) lets you search and change text at the same time. Use Find when you just want to locate something; use Find & Replace when you want to change it.
Can I search for text that spans multiple lines?
In most programs, no — the search box treats line breaks as invisible characters. If you're looking for a phrase that wraps to the next line, search for just the first part of it, or search without the line break by typing the words with a space between them.
Does search work in password-protected documents?
If the document is password-protected but you can still read it, search works normally. If the document is encrypted or locked so you can't edit it, search may be disabled depending on the protection level. You'll need the password to unlock it first.
How do I search for a phrase that contains a question mark or asterisk?
In some programs, these characters are treated as wildcards — they match any character instead of the literal symbol. If you want to search for the actual character, you may need to put a backslash before it, like "\*" or "\?". Check your program's search help to see if it uses wildcards, and how to search for the literal character if it does.