How to Search Inside File Contents on Windows 11 File Explorer
🔍 WiseChecker

How to Search Inside File Contents on Windows 11 File Explorer

Quick fix: By default File Explorer searches filenames only. To search inside file contents: open Folder Options → Search tab → tick Always search file names and contents. Or use search syntax: type content:"exact phrase" in the search box. Indexed folders return content matches instantly; non-indexed folders scan in real time.

You remember a phrase from a document but can’t recall the filename. You need full-text search through PDFs, Word docs, text files. File Explorer can do this but it’s off by default for performance reasons.

Symptom: Need to find files by content (text inside them), not just filename.
Affects: Windows 11 (and Windows 10) File Explorer.
Fix time: ~10 minutes.

ADVERTISEMENT

What causes this

File Explorer search has two modes: filename only (default, fast) and filename + contents (slower for non-indexed folders, instant for indexed). The Windows Search index pre-extracts text from supported formats (txt, docx, pdf with text layer, html). For indexed folders, searches return content matches without rescanning. For non-indexed folders, every search re-reads files — slow but available with the right setting.

Method 1: Enable Always search file contents

The setting toggle.

  1. Open File Explorer. Click the three-dot menu → Options (or in older builds, click View → Options).
  2. Switch to the Search tab.
  3. Under How to search: tick Always search file names and contents (this might take several minutes).
  4. Under When searching non-indexed locations: tick Include system directories and Include compressed files.
  5. Click Apply → OK.
  6. Test: in any folder, type a phrase in the search box. After a few seconds, files containing the phrase appear.
  7. For indexed folders (Documents, Desktop): results are instant.
  8. For non-indexed folders: results take seconds to minutes depending on folder size.

This is the simple toggle.

ADVERTISEMENT

Method 2: Use search syntax for precise queries

For more targeted content searches.

  1. In File Explorer’s search box, use these prefixes:
    • content:"exact phrase" — full-text search for that phrase.
    • kind:document content:"quarterly report" — only document files containing that phrase.
    • ext:.pdf content:"invoice" — only PDFs containing “invoice.”
    • filename:budget* — only files whose name starts with “budget.”
    • modified:this week — files modified in last 7 days.
    • size:>10MB — files larger than 10 MB.
  2. Combine: kind:document modified:this month content:"invoice".
  3. For boolean: use AND, OR, NOT (uppercase): content:invoice NOT content:draft.
  4. Use wildcards: filename:budget*2026 matches budget2026, budget_2026, etc.
  5. For path: folder:"C:\Projects" restricts search to that path.
  6. Full syntax reference: search Microsoft Docs for “Advanced Query Syntax (AQS) for Windows Search.”

AQS gives precise queries beyond simple keyword search.

Method 3: Use grep-style alternatives for power users

For very large folder trees or non-indexed content.

  1. Install Everything (free, voidtools.com). Fastest filename search.
  2. For full-text search across thousands of files: install DocFetcher (free, opensource).
  3. Or use FileLocator Lite (free, mythicsoft.com) — handles content search across many file formats including PDF, DOCX, archive contents.
  4. For PowerShell-based content search:
    Get-ChildItem -Path C:\Documents -Recurse -Include *.txt,*.md,*.log | Select-String -Pattern "searchterm"

    Returns matching lines from text files.

  5. For developers searching source code: install ripgrep (rg) via winget install BurntSushi.ripgrep.MSVC. Fast grep-style search:
    rg "searchterm" C:\projects
  6. For VS Code users: Ctrl + Shift + F opens a project-wide search. Searches inside all files in the workspace.

This is the right path when File Explorer’s content search isn’t fast enough.

How to verify the fix worked

  • Type a known phrase from a document into File Explorer search. Document appears in results.
  • Open the file. The phrase is present in the contents, confirming match.
  • Folder Options → Search tab: Always search file names and contents is ticked.

If none of these work

If content search returns no results despite the setting being on, the cause may be: File type not indexed: Windows Search supports specific extensions for content indexing (txt, docx, pdf with text layer, html, csv). PDFs created from scanned images have no text layer; OCR them first via Acrobat or online tools. Indexing not complete: if you just added many new files, indexing takes time. Open Indexing Options — wait for “Indexing complete.” For specific formats not indexed: install IFilter for that format. Adobe Reader installs PDF IFilter automatically. For RTF, EML, MSG, install third-party iFilters from Microsoft. For very large files: Windows Search has size limits (default ~16 MB per file). Larger files aren’t fully indexed. Use DocFetcher or grep-based tools. For protected/encrypted documents: password-protected PDFs and DRM-protected files aren’t indexed. Content can’t be searched.

Bottom line: Folder Options → Search tab → Always search file names and contents. Use AQS syntax (content:"phrase", kind:document) for precision. Third-party tools for very large or non-indexed datasets.

ADVERTISEMENT