The fastest way to search a document
Use the keyboard shortcut Ctrl+F (Windows) or Command+F (Mac) to open the search box in almost any document or webpage. Type the word or phrase you want to find, and the program will highlight every match and show you how many times it appears. This works in Microsoft Word, Google Docs, PDFs, web browsers, and most other text editors.
The search box usually appears at the top or side of your screen. Once you type your search term, you can move between matches by pressing Enter or clicking the arrow buttons in the search box. Closing the search box is as simple as pressing Escape or clicking the X button.
Key Takeaways
- Press Ctrl+F (Windows) or Command+F (Mac) to open the search function in nearly any document or browser.
- The search box shows the total number of matches and highlights all instances of your word or phrase in the document.
- Use the arrow buttons or Enter key to move between matches one at a time.
- Most programs offer a "Replace" option alongside search, letting you change one word to another throughout the entire document.
Searching in Microsoft Word
In Microsoft Word, press Ctrl+F to open the Find pane on the right side of your screen. Type your search term and Word will highlight every match in blue. The pane shows how many instances were found at the top. Use the up and down arrows to jump between matches.
If you want to replace the word as well, click the arrow next to the search box to expand it, or press Ctrl+H to open Find & Replace directly. This lets you type a replacement word and choose to replace one instance at a time or all instances at once. Word will confirm how many replacements it made.
Searching in Google Docs
Open the search box in Google Docs by pressing Ctrl+F or Command+F. A small search bar appears at the top right of the document. Type your word or phrase and Google Docs highlights all matches in yellow. The search bar shows the current match number and total count (for example, "2 of 5").
To use Find & Replace in Google Docs, press Ctrl+H or Command+H. A larger panel opens where you can type both the word to find and the word to replace it with. You can replace one instance at a time or click "Replace all" to change every match in the document at once.
Searching in PDFs and web browsers
The search function works the same way in PDFs and web browsers: press Ctrl+F or Command+F to open the search box, usually in the top right corner. Type your search term and the program highlights matches. In PDFs, you can move between matches using the arrow buttons. In web browsers, pressing Enter moves you to the next match on the page.
One difference: web browsers search only the content currently visible or loaded on the page. If a webpage loads content as you scroll, you may need to scroll down first to load more content before searching for words that appear lower on the page. PDFs search the entire document at once, regardless of length.
Tips for better search results
Search for exact phrases by typing them in quotes. For example, searching for "customer service" will find only that exact two-word phrase, not pages where "customer" and "service" appear separately. This is especially useful in long documents where you need to find a specific sentence or term.
If you are not sure of the exact spelling or want to find variations of a word, search for just the root word. Searching for "run" will find "run", "running", and "runs" in most programs. Some programs also offer case-sensitive search, which lets you search for "Run" (capitalized) separately from "run" (lowercase) — check the search box options to see if this is available.
When searching a very long document, narrow your search by using more specific terms. Instead of searching for "the", search for "the customer" or a longer phrase that appears fewer times. This saves time by reducing the number of matches you have to scroll through.
Using Find & Replace to edit multiple instances
Find & Replace is useful when you need to change the same word or phrase throughout a document. Open it with Ctrl+H (Windows) or Command+H (Mac). Type the word you want to find in the first box and the replacement word in the second box.
Most programs let you replace one instance at a time or all instances at once. Replacing one at a time is safer if you are not completely sure the replacement is correct everywhere — you can review each match before confirming. The "Replace all" button is faster when you are certain the change should happen everywhere in the document.
What to do if search is not working
If the search box does not open when you press Ctrl+F or Command+F, the document may not support the search function. Some older file formats, scanned PDFs (images of text rather than actual text), and certain web pages do not allow searching. Try copying a small section of text and pasting it into a search engine to see if the content is searchable text or an image.
If you are searching a scanned PDF, you may need to use optical character recognition (OCR) software to convert the image into searchable text first. Many PDF readers and online tools offer this feature. Alternatively, you can open the PDF in a different program — some PDF readers have better search capabilities than others.
Frequently Asked Questions
Can I search for a word at the beginning or end of a line?
Most basic search functions do not support this, but advanced search options in Word and Google Docs do. In Word, open Find & Replace and click "More Options", then check "Match case" or use wildcards. In Google Docs, the standard search does not support this, but you can use the search function in your browser's developer tools for more advanced options.
How do I search for special characters like $ or @?
Type the special character directly into the search box just like any other character. Most programs search for it as-is. If the search does not work, the character may need to be escaped with a backslash — try typing \$ or \@ — though this depends on the program you are using.
Can I search across multiple documents at once?
The built-in search function only works within one document at a time. To search multiple files, use your computer's file search tool (Windows Search on Windows, Spotlight on Mac) or your cloud storage search (Google Drive, OneDrive, Dropbox). These tools search file names and content across all your documents.
What is the difference between Find and Find & Replace?
Find locates words or phrases in your document and highlights them so you can see where they appear. Find & Replace does the same thing but also lets you change the word to something else. Use Find when you only need to locate text, and Find & Replace when you need to change it.
Does search work the same way in all programs?
The basic function is the same — Ctrl+F or Command+F opens search, and you type to find matches — but the layout and extra options vary. Word and Google Docs have more advanced options like Replace All and case sensitivity. Browsers and PDFs have simpler search boxes. Check your specific program's help menu if the search box looks different than expected.