Blog
How to Search Files by Content on Windows
You know the text is in a file somewhere on your PC. Maybe it's a phrase from a contract, a number from a report, or a snippet of code. The problem is you don't remember the filename. You need to search inside the files.
Windows doesn't make this easy by default. Here are three methods to search files by content on Windows, from the built-in option to the most powerful.
The Problem with Windows Search
Windows Search can technically search inside files, but content indexing is disabled for most file types by default. Even when you enable it, results are often incomplete or missing entirely. Microsoft has acknowledged these issues across multiple Windows updates, but the experience remains inconsistent.
If you've ever typed a phrase into the Windows Search bar and gotten zero results, even though you know the text exists in a file on your desktop, you've hit this exact problem.
Method 1: Windows Search (Built-in)
You can enable content indexing in Windows Settings, but it requires some configuration.
Steps:
- Open Settings > Privacy & Security > Searching Windows
- Under "Find My Files," select Enhanced to index your entire PC (or add specific folders under Classic)
- Click Advanced Indexing Options > Advanced > File Types
- Check "Index Properties and File Contents" for the file types you want to search inside (.pdf, .docx, .txt, etc.)
- Wait for Windows to rebuild the index (this can take hours)
- Search using File Explorer: type your query in the search bar and add
content:"your search term"
Limitations:
- Indexing takes a long time and uses significant CPU
- Results are often incomplete or outdated
- Does not work with all file types
- No OCR (can't search text in images)
- No semantic/meaning-based search
- Sends queries to Bing unless you disable that setting
Method 2: PowerShell / findstr (Command Line)
For tech-savvy users, PowerShell and the built-in findstr command can search inside text files.
Using findstr:
findstr /s /i "search term" C:\Users\YourName\Documents\*.*
This searches all files in your Documents folder (and subfolders) for "search term," case-insensitive.
Using PowerShell:
Get-ChildItem -Path "C:\Users\YourName\Documents" -Recurse -File |
Select-String -Pattern "search term" |
Select-Object Path, LineNumber, Line
This gives you the file path, line number, and matching line for each result.
Limitations:
- Only works with plain text files (.txt, .csv, .log, source code)
- Cannot read PDFs, Word documents, or Excel files
- No OCR for images
- Slow on large directories
- Requires command line knowledge
- No fuzzy or semantic matching
Method 3: FileScope (AI-Powered Content Search)
FileScope is a desktop app that indexes your files and lets you search inside them using a global shortcut. It reads content from PDFs, Word documents, Excel spreadsheets, text files, and even extracts text from images using OCR.
Steps:
- Download and install FileScope
- Choose which folders to index during onboarding
- Wait for initial indexing to complete (a few minutes for typical folders)
- Press Ctrl+Space anywhere on your desktop
- Type what you're looking for, in natural language
- Open the matching file directly from the results
FileScope uses a local AI model to understand the meaning of your query. If you type "last quarter revenue numbers," it will find your Q4 financial report even if those exact words aren't in the filename. It also reads text from screenshots, scanned receipts, and photos of whiteboards.
Advantages:
- Reads PDFs, DOCX, XLSX, images (OCR), and text files
- Semantic search (finds files by meaning)
- Fast global shortcut (Ctrl+Space)
- 100% offline, no cloud, no accounts
- Results appear in under a second
Comparison
| Feature | Windows Search | PowerShell / findstr | FileScope |
|---|---|---|---|
| Plain text files | Yes | Yes | Yes |
| PDF content | Partial (with iFilter) | No | Yes |
| Word / Excel content | Partial | No | Yes |
| OCR (images) | No | No | Yes |
| Semantic / AI search | No | No | Yes |
| Speed | Slow | Slow on large dirs | Under 1 second |
| Ease of use | Moderate | Requires CLI knowledge | Very easy |
| Privacy | Sends data to Bing | Local | 100% local |
| Price | Free | Free | $19 one-time |
Conclusion
If you just need to search inside plain text files occasionally, findstr or PowerShell will work. If you need to search inside PDFs, documents, and images, or you want to describe what you're looking for in your own words, FileScope is the most reliable and easiest way to do it on Windows.
Everything runs locally. No cloud accounts, no data leaving your machine.
Stop digging through folders. Find files by what's inside them.
Try FileScope