How to Search Files by Content on Windows

May 26, 2026 · 6 min read

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:

  1. Open Settings > Privacy & Security > Searching Windows
  2. Under "Find My Files," select Enhanced to index your entire PC (or add specific folders under Classic)
  3. Click Advanced Indexing Options > Advanced > File Types
  4. Check "Index Properties and File Contents" for the file types you want to search inside (.pdf, .docx, .txt, etc.)
  5. Wait for Windows to rebuild the index (this can take hours)
  6. Search using File Explorer: type your query in the search bar and add content:"your search term"

Limitations:

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:

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:

  1. Download and install FileScope
  2. Choose which folders to index during onboarding
  3. Wait for initial indexing to complete (a few minutes for typical folders)
  4. Press Ctrl+Space anywhere on your desktop
  5. Type what you're looking for, in natural language
  6. 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:

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