How to Search Files by Content on Windows and Mac
You need to find a document. You don't remember the filename. But you remember it mentioned "termination clause" or "quarterly targets" or "vendor payment schedule." If you could search the actual text inside your files, you'd find it in seconds.
Good news: content search exists on both Windows and Mac. Bad news: it's limited, inconsistent, and often disabled by default. This guide shows you how to enable it, where it falls short, and what tools fill the gap.
Content Search on Windows
Enable it in File Explorer
By default, Windows Search only looks at filenames and metadata. To search inside files:
- Open File Explorer and navigate to the folder you want to search
- Click the search box, then go to Search > Options > Change indexed locations
- In Advanced Options > File Types, select "Index Properties and File Contents" for the file types you care about (.pdf, .docx, .xlsx, .txt)
- Wait for the index to rebuild (this can take hours on large drives)
Once enabled, typing a word in the File Explorer search box will match files containing that word in their text. The catch: it's exact keyword matching only. The word must appear exactly as you type it.
Using grep (for developers)
If you're comfortable with the command line, findstr on Windows or grep (via Git Bash or WSL) can search file contents directly:
findstr /s /i "termination clause" *.pdfsearches all PDFs in the current directory treegrep -r "quarterly targets" ~/Documents/in WSL/Git Bash searches all files recursively
This is fast and reliable for plain text files but doesn't work well with binary formats like .pdf or .docx without additional tools.
Content Search on Mac
Spotlight
Spotlight indexes the contents of most common document types automatically. Press Cmd + Space and type a phrase that appears inside the document. Spotlight will show matching files.
Spotlight's content search works better than Windows Search out of the box. It indexes PDFs, Word documents, Pages files, Keynote presentations, and plain text without additional configuration.
Finder search
For more control, use Finder search (Cmd + F). Change the first dropdown from "Name" to "Contents" and type your search term. This searches inside file contents only, filtering out filename matches.
mdfind (command line)
Mac's command-line Spotlight interface is powerful: mdfind "quarterly budget" searches all indexed content. Add -onlyin ~/Documents to limit the search to a specific folder.
Why Built-in Content Search Falls Short
Both Windows and Mac content search share the same fundamental limitation: keyword matching. They search for exact words, not meaning.
Practical examples of what breaks:
- You search for "lease agreement" but the file says "rental contract." No match.
- You search for "budget" but the file uses "financial allocation." No match.
- You search for "John's proposal" but the file says "proposal by J. Smith." No match.
- You search inside a scanned PDF, but since it's an image (not selectable text), the search engine can't read it at all.
These aren't edge cases. They're the normal way people think about their files. You remember concepts, not exact words. Traditional content search can't bridge that gap. For a deeper technical analysis, see our article on why file search is broken.
Search by what files mean, not just what they say.
Filect reads your documents and understands the concepts inside them. "Lease agreement" finds files that say "rental contract" because the AI understands they mean the same thing.
Download Filect Free โAI-Powered Content Search
AI search tools solve the keyword problem by converting file contents into semantic representations. Instead of matching exact words, they match meaning.
Here's what that enables:
- Synonym matching: "Budget" finds files about "financial plan," "cost estimate," and "spending forecast"
- Concept matching: "The file about employee benefits" finds HR policy documents that discuss health insurance, PTO, and 401k matching
- Cross-format search: One query searches PDFs, Word docs, spreadsheets, and presentations simultaneously
- Scanned document search: AI tools with OCR can read scanned PDFs and images with text, making them searchable
For more details on how AI handles different file formats, see our guide to searching inside PDFs. For tool recommendations, check our AI file management tools comparison.
Content search that actually understands content.
10-day free trial. No credit card. Windows and Mac.
See Pricing โFAQ
How do I search for files by content on Windows?
Enable "Index Properties and File Contents" in Indexing Options for the file types you need. Then search in File Explorer. For semantic search that understands meaning, use Filect.
Can Mac Spotlight search inside files?
Yes, Spotlight searches inside most document types by default. However, it only matches exact keywords, not meaning. "Rental agreement" won't find "lease contract."
What is the difference between keyword search and semantic search?
Keyword search matches exact words. Semantic search (used by AI tools) understands meaning. "Budget" matches "quarterly financial allocation" because the AI understands the conceptual connection.
Filect