How to Find a File by What's Inside It on Windows (Without Knowing the Filename)

2026-04-11·Updated: 2026-11-13·5 min read
Quick Answer: On Windows you can find a file by what's inside it with File Explorer's content: prefix (slow and unreliable for Office and PDF), Windows Indexing Options with content indexing turned on, PowerShell Select-String (plain-text files only), or a dedicated content search tool. LocalSynapse is a free desktop app for Windows and macOS that indexes the text inside Word, Excel, PowerPoint, PDF, HWP, email and text files on your own PC, so you can search by a phrase or topic you remember — by keyword, and by meaning with its optional AI model.

You wrote a document. You remember exactly what it said. You can't remember what you named it. If that's why you're here, you already know the frustrating part: opening files one by one, hoping to recognize the right one, isn't a real solution. There are four real ways to find a file on Windows by its content. Here's how each works, and which one to actually use.

Method 1: File Explorer with content: prefix

Windows File Explorer has a built-in content search syntax most users have never seen:

content:"quarterly revenue"

Type that into the search box of any folder window. File Explorer will look for files containing the phrase "quarterly revenue".

Pros: Built-in. No installation. Works without any setup if you only need it once.

Cons: Slow — often takes minutes on large folders. Unreliable: Office documents are inconsistently supported. Most people try this once, give up, and never find the file.

Use it for: A one-time search in a small folder of plain text files.

Method 2: Enable Windows Indexing for file contents

You can configure Windows Search to index file contents (not just filenames) so subsequent searches are faster:

  1. Open Indexing Options (search "indexing" in the Start menu).
  2. Click Advanced → File Types tab.
  3. Find each format you care about (.docx, .xlsx, .pdf...) and select Index Properties and File Contents.
  4. Click OK. Windows will reindex — this can take hours.

Pros: Once configured, searches are noticeably faster. Integrates with File Explorer.

Cons: Initial reindex consumes CPU and disk. The index breaks regularly. Office format support is still inconsistent. Most people forget this setting exists, and the rare ones who enable it find the results disappointing.

Use it for: Office workers who only deal with .docx and .pdf and have time to maintain the index.

Method 3: PowerShell Select-String (for plain text)

If you're comfortable with the command line, PowerShell has a built-in grep equivalent:

Get-ChildItem -Path C:\notes -Recurse -Include *.txt,*.md |
  Select-String -Pattern "quarterly revenue"

This recursively searches every .txt and .md file under C:\notes for the phrase.

Pros: Fast for plain text. Built into Windows. Scriptable.

Cons: Only works for plain text formats. Cannot read Word, Excel, PDF — those are binary or compressed XML and Select-String sees gibberish. No GUI.

Use it for: Searching code, markdown notes, log files, configuration files.

Method 4: A dedicated content search tool

The most reliable option is a tool built specifically to read inside documents. Three free options:

Pros (all three): Actually search inside Word, Excel, PowerPoint, PDF reliably. Much faster than Windows native search after the initial index.

Cons: Initial install + first index takes time. The index uses disk space that grows with your library, plus about 2.3 GB if you install LocalSynapse's optional AI model. Slight learning curve for the search syntax.

Use it for: Anyone who searches by content more than once a week.

Which one should you use?

If you'll do this once and never again: Method 1 (File Explorer content: prefix). It's slow but it's free of any setup.

If you'll do this regularly (weekly or more): Method 4 — install a dedicated content search tool. The setup pays back the first time a search finds a file you would otherwise have hunted for folder by folder.

If you only deal with plain text and you're a PowerShell user: Method 3.

What about Method 2 (Windows Indexing)? Skip it unless you've already tried it and it works for you. The maintenance cost rarely pays off.

Why this is harder than it should be

Modern Office documents (.docx, .xlsx, .pptx) are not plain text — they're ZIP archives containing XML files. To search inside one, a tool has to unzip the file, parse the XML, extract the text, and only then run the search. Windows Search and File Explorer technically know how to do this, but in practice content results for Office and PDF files are often incomplete.

Dedicated tools like LocalSynapse build their own parsers for each format and maintain them. That's why they work where Windows native search doesn't.

The shortest path

If you're tired of opening files one by one and you want this problem to actually go away:

  1. Download LocalSynapse from localsynapse.com (free, no account needed).
  2. Let it index your Documents folder once (the first pass takes longer on large folders).
  3. Search by what you remember — phrase, topic, anything inside the file.

The next time you can't remember a filename, search for what you remember writing instead of giving up. If you use Claude, you can also let it search for you.

Try LocalSynapse Free

Search inside files, works offline, free

Go to Home

Related Posts