To find a word inside your files on Windows 10, open File Explorer, go to the folder you want to search, and type content: followed by the word in the search box (for example, content:invoice). Windows lists every file in that folder and its subfolders whose text contains the word. If nothing turns up, the folder probably isn’t indexed, and you’ll need one of the fixes further down.
The steps below cover Windows 10 first, then the differences in Windows 11, the indexing settings that decide what Windows can find, and a Command Prompt method that searches any folder without an index.
How Windows searches inside files
Windows doesn’t read every file each time you search. It keeps an index, a catalog of file names and, for supported file types, the words inside them. Searches of indexed folders are quick and include file contents. Searches of folders outside the index are slower and, by default, only match file names.
Microsoft’s page on search indexing in Windows describes two modes under Find my files:
- Classic indexes your Documents, Pictures and Music folders and the desktop.
- Enhanced indexes your entire PC, including all user folders.
So if you keep work files in a folder such as D:\Projects and Windows is set to Classic, a content search there finds nothing until you add that folder to the index. Keep this in mind, because it’s the most common reason a search “doesn’t work”.
Method 1: Search file contents in File Explorer (Windows 10)
- Press Windows + E to open File Explorer.
- Open the folder you want to search. Choose the narrowest folder that will contain the file, because searching This PC takes much longer.
- Click in the search box in the upper-right corner.
- Type content: and the word, with no space after the colon, for example content:budget. For a phrase, use quotation marks:
content:"quarterly budget". - Press Enter. Results appear as Windows finds them, and the green bar in the address bar fills in as the search runs.

- Double-click a result to open it, or right-click it and choose Open file location to see which folder it’s in.
The content: prefix tells Windows to look only at the words inside files. Without it, Windows matches names and contents together, which is fine when you remember either one.
Include contents in folders that aren’t indexed
When you search in a non-indexed location, Windows 10 shows a yellow bar saying searches might be slow. To make that search look inside files too:
- Start a search so the Search tab appears at the top of File Explorer.
- Select Search > Advanced options.
- Check File contents.
- Run the search again.
This setting stays on for later searches. It’s slow on big folders, so for a folder you search often, add it to the index instead (Method 3).
Narrow the results
Windows search uses Advanced Query Syntax, which Microsoft documents in its Advanced Query Syntax reference. A few combinations are useful day to day:
| Type this | To find |
|---|---|
content:"late fee" | Files containing that exact phrase |
content:invoice AND content:Jordan | Files that contain both words |
content:invoice OR content:receipt | Files that contain either word |
content:invoice NOT content:draft | Files with the first word but not the second |
content:invoice *.pdf | Only PDF files containing the word |
content:invoice datemodified:this week | Matching files changed recently |
Type AND, OR and NOT in capital letters. The reference says they must be uppercase, while the rest of a search isn’t case sensitive. In Windows 10 you can also add filters from the Search tab, such as Date modified, Kind and Size, instead of typing them.
Method 2: The same search in Windows 11
Windows 11’s File Explorer replaced the ribbon with a simpler toolbar, so there’s no Search tab. The search box still works the same way:
- Open File Explorer and go to the folder.
- Type content: and your word in the search box, then press Enter.
- To filter, use the Search options button that appears in the toolbar while results are showing, or type filters such as *.docx as in the table above. Depending on your Windows 11 version, that menu may also include the File contents option.
If it doesn’t, you can make every non-indexed search include file contents: select See more (the three dots) > Options, open the Search tab, and check Always search file names and contents. The same setting is on the Search tab of Folder Options in Windows 10. Microsoft’s overview of File Explorer in Windows shows where See more > Options lives.
On Copilot+ PCs, Microsoft’s guide to finding files and apps says Windows also builds a semantic index, so you can describe what a file is about rather than matching the exact words.
Method 3: Add a folder to the index so contents are searchable
If you search the same folder often, indexing it makes content searches fast and complete.
- Open the Start menu, type Indexing Options, and open it.
- Select Modify. The Indexed Locations window opens.
- Select Show all locations if you see that button, then check the drive or folder you want, such as D:\Projects.

- Select OK, then Close.
Windows indexes the new location in the background. A large folder can take a while, and the Indexing Options window shows how many items have been indexed so far. Content searches in that folder get more complete as it works.
Alternatively, switch to Enhanced mode to index the whole PC. In Windows 11 that’s under Settings > Privacy & security > Searching Windows > Find my files. In Windows 10, look under Settings > Search > Searching Windows. Enhanced uses more battery and CPU while it builds the index, so plug in a laptop the first time.
Make Windows index the text of a file type
Some file types are indexed by name and properties only, so their contents never show up. Common examples are code files, logs and other plain-text formats with unusual extensions.
- Open Indexing Options and select Advanced. Approve the administrator prompt if it appears.
- Open the File Types tab.
- Find the extension in the list (for example log or ps1) and select it.
- Under How should this file be indexed?, choose the option to index properties and file contents.
- If the extension isn’t listed, type it in the box at the bottom and select Add.
- Select OK. Windows re-indexes files of that type.
Fix an index that gives wrong or missing results
If files you know contain a word still don’t appear, the index may be out of date. In Indexing Options, select Advanced and then Rebuild on the Index Settings tab. Searches are incomplete until rebuilding finishes, which can take a long time on a full drive. If you turned indexing off earlier, these steps for turning indexing on or off in Windows 11 show how to switch the Windows Search service back on.
Method 4: Search any folder with findstr
The built-in findstr command reads files directly, so it doesn’t depend on the index. It works best on plain-text files such as .txt, .csv, .log, .html and code files. It can’t read inside Word, Excel or PDF files, because those store text in a compressed or encoded format.
- Open the Start menu, type cmd, and open Command Prompt.
- Go to the folder you want to search, for example: cd /d D:\Projects
- Run:
findstr /s /i /m "invoice" *.*

The options come from Microsoft’s findstr reference:
- /s searches the current folder and all subfolders.
- /i ignores upper and lower case.
- /m prints only the names of files that contain a match. Leave it out, and add /n, to see each matching line with its line number.
For a phrase, use /c:, as in findstr /s /i /m /c:"late fee" *.txt. Without it, findstr treats each word as a separate search and lists files containing any of them.
Searching inside Word, Excel and PDF files
- Word and Excel: File Explorer can search their contents once the folder is indexed. If a document is open, Windows may not pick up unsaved changes until you save it.
- PDF files: Windows can usually index the text of PDFs that contain real text. A scanned PDF is just a picture of a page, so there’s no text to find unless it was run through text recognition (OCR) first.
- ZIP files: Files inside a compressed folder aren’t searched like normal files. Extract them first.
Once you’ve found the files, you may want a record of them. This guide on printing a list of files in a folder shows how to save a folder’s file names to a text file.
Troubleshooting
- The search box does nothing or File Explorer freezes: wait for the green progress bar to finish, or search a smaller folder.
- Results include files that don’t contain the word: Windows also matches file properties such as tags and author names. Use content: to limit matches to the text.
- Cloud files are missing: OneDrive files that are online-only aren’t fully stored on the PC, so content matches can be incomplete. Right-click the folder and choose Always keep on this device, or search in OneDrive on the web.
- Nothing from a USB or network drive: those usually aren’t indexed. Use the File contents option (Windows 10), the Search tab setting (Windows 11), or findstr.
Windows 10 reached the end of support on October 14, 2025, according to Microsoft’s Windows 10 end of support notice. These search features still work on it, but the Windows 11 steps are the ones that will stay current.
Quick answers
Can I search for a word in just one folder?
Yes. Open that folder first, then search. File Explorer searches the current folder and everything below it, nothing above.
Is there a keyboard shortcut for the search box?
In File Explorer, Ctrl + F or Ctrl + E puts the cursor in the search box. More shortcuts are listed in this article on opening the search box with the keyboard.
Can I search the taskbar instead of File Explorer?
Yes. Type a word in the taskbar search box and choose the Documents filter. It searches indexed locations only, so it’s quickest for files in Documents or on the desktop.
Is the search case sensitive?
No. “Invoice” and “invoice” give the same results in File Explorer, and findstr ignores case when you add /i.
Matt Williams is the writer and editor behind TechInfoHome. He holds a degree in computer science and has more than 10 years of experience working in IT. For the past 5 years he has written online tutorials for Windows, Microsoft Office, Google apps and iPhone, with a focus on clear steps that get readers to a working fix quickly.