How to Search for Text in Files on Windows

This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions.

The wikiHow Tech Team also followed the article's instructions and verified that they work.

This article has been viewed 30,022 times.

This wikiHow teaches you how to search for specific text inside any document on your Windows PC.

Method 1 of 2:

Searching for Documents Containing Certain Text

Step 1 Press ⊞ Win+S.

Fair Use (screenshot)
\n"> Press ⊞ Win + S . This opens the Windows Search box.

Step 2 Type indexing options.

Fair Use (screenshot)
\n"> Type indexing options . A list of matching results will appear. Advertisement

Step 3 Click Indexing Options.

Fair Use (screenshot)
\n"> Click Indexing Options . It should be the first result in the list (and it may be the only result).

Step 4 Click Advanced.

Fair Use (screenshot)
\n">

Click Advanced . It’s the button at the bottom of the window. Depending on your settings, you may also be asked to confirm the action or enter your administrator password.

<a href=Step 5 Click the File Types tab." width="460" height="344" />

Fair Use (screenshot)
\n">

Click the File Types tab. It’s near the top of the window. A list of file types on your computer will appear.

Step 6 Select Index Properties and File Contents.

Fair Use (screenshot)
\n">

Select Index Properties and File Contents . It’s the second radio button beneath the list of file types.

Step 7 Click OK.

Fair Use (screenshot)
\n">

Click OK . Windows will now begin to index the text within your documents instead of just their titles. Now that you’ve made this change, you can search for a file by typing some of the words it contains.

Step 8 Press ⊞ Win+S.

Fair Use (screenshot)
\n">

Step 9 Type your search criteria and press ↵ Enter.

Fair Use (screenshot)
\n">

Step 10 Double-click the file to open it.

Fair Use (screenshot)
\n"> Advertisement Method 2 of 2:

Searching for Text in an Open Document

<a href=Step 1 Open your document in its default application." width="460" height="347" />

Fair Use (screenshot)
\n">

Open your document in its default application. This method should work for the majority of text/word processing applications, including Microsoft Word and Notepad.

Step 2 Press Ctrl+F.

Fair Use (screenshot)
\n"> Press Ctrl + F . This opens the Find or Find and Replace dialog.

Step 3 Enter the text you want to find.

Fair Use (screenshot)
\n">

Enter the text you want to find. Be specific—this tool will only return exact matches. Make sure all spaces and symbols are in the correct places, and that you’ve made no spelling mistakes.

Step 4 Press ↵ Enter.

Fair Use (screenshot)
\n">

Press ↵ Enter . The application should now display the text you searched for highlighted in a different color. If no matching text is found, you'll see a message that says something like “The search item was not found.”

Advertisement

Expert Q&A

Ask a Question 200 characters left Include your email address to get a message when this question is answered. Advertisement

Tips

Submit a Tip All tip submissions are carefully reviewed before being published Please provide your name and last initial Thanks for submitting a tip for review!

You Might Also Like

Open ISO Files

How to Open an ISO Files on Windows and Mac

Find a File

How to Find a File's Path on Windows

Open an Img File on PC or Mac

Open an Img File on PC or Mac

Run a BAT File on Windows

Run a BAT File on Windows

Make a New File in Windows

Easily Create a New File in Windows: User-Friendly Instructions

Install Msi Files on Windows 10

How to Install MSI Files on Windows 10 or Windows 11

Delete Files That Cannot Be Deleted

Delete Files That Cannot Be Deleted

Rebuild the Icon Cache in Windows

A Guide to Rebuilding the Icon Cache on a Windows PC

Install a Screensaver File in Windows

Install a Screensaver File in Windows

Block an Application or .EXE from Running in Windows

Block an .exe Running in Windows

Play WebM Files

Play WebM Files

Copy a Folder with Batch File

Copy a Folder with Batch File

Save a Text or .txt File

How to Save a Text or .txt File on a Computer