- Configures the indexer to index properties and content in key extensions.
- Combine operators (AND/OR/NOT), quotes, and wildcards for powerful queries.
- Use properties (date, size, ext, type) and metadata to narrow down results.
- Use AstroGrep, Agent Ransack, Notepad++, or findstr for non-indexed formats.

If you work with a lot of documents, knowing how to locate a phrase within hundreds of files makes all the difference between wasting time and being a productivity ninja. In Windows 11, you can search for text within file content using a combination of shortcuts, operators, and a well-configured indexer.
This guide will show you, in a practical way, how to do this from Explorer using powerful queries, what filters and properties you can use, how to refine your search with Boolean operators, and what to do when the system doesn't index a certain type of file. You'll also see alternatives like AstroGrep, Everything, Agent Ransack, Notepad++, and the findstr utility in CMD , and a troubleshooting section with real-world examples.
Search for text within files from Explorer
The quickest way to start is to use File Explorer itself . Navigate to the folder you want to search and press F3 (or click the search box in the upper right).
You can now write a simple or advanced query. To search for an exact word within the documents, use the content property. For example: content:SMS . This returns files whose content includes the string “SMS”.
If you want to restrict by extension, combine wildcards and properties. Example: *.docx content:"payment agreement" will only search Word documents with that phrase within the text.
When you don't remember the file name, but you do remember part of the text, it's best to start with the least common term to reduce false positives. For example: *.docx content:334455 or *.docx content:ortigoza.
Remember that Explorer's search function supports multiple criteria at once and filters within the current location. You can move to "This PC" to include all drives or stay in a specific folder to narrow the scope.

Operators, quotes, and wildcards that save you hours
Windows Search understands logical operators in the style of traditional search engines. Use them in UPPERCASE so they are applied as operators and not as literal text.
AND/Y is used to require that all terms appear, regardless of order. If you type two words separated by a space, Windows already applies implicit AND. Example: contract payment returns results that contain both.
OR expands the range by accepting one or the other term. Example: dog OR cat retrieves files that contain either dog or cat.
NOT (or the minus sign) excludes terms. Example: dog NOT cat or dog -cat avoids results with “cat”.
Double quotes force an exact match in that order . For example, "dog cat" will not return "cat dog".
Parentheses group terms to evaluate priorities; the contents of the parentheses can appear in any order. Example: (balance budget) finds both terms regardless of the sequence.
Regarding wildcards, the asterisk * replaces a group of characters and the question mark ? is equivalent to a single character. Example: name:*2014 or file:pre?budget.
Some guides also cite the ampersand & as an equivalent connector to AND for joining words, useful if you feel more comfortable with that symbol.

Advanced properties and filters that refine your search
In addition to content, there are a good number of properties that you can query using the format property:value . Many allow ranges with relational operators such as >, <, >=, <=, = or .. for intervals.
- date: Filter by calendar dates such as today, yesterday, this week, last week, this month, last month, this year, or last year; specific dates and ranges are also accepted. Example: date:yesterday.
- modified: same as date, but only for the last modification. Example: modified:this month.
- created: filter by creation date. Example: created:>=01/01/2024.
- size: accepts categories (empty, tiny, small, medium, large, huge, gigantic) or numeric values/ranges. Example: size:>1GB.
- name: restricts by file name, supports wildcards. Example: name:*2014.
- extension: and the alias out: allow you to target a specific format. Example: ext:pdf.
- type: Filter by content class; for example, type:image o type:video.
- class: another broad category filter (document, email, music, image, program, etc.). Example: class:image.
- binder: y archive: help narrow down where you look or if you're just searching by file name.
These filters can be combined with AND/OR/NOT and wildcards. A powerful pattern would be: size:>1GB AND name:*2014 to locate large files related to “2014”.

File type-specific metadata
Windows also understands metadata properties for multimedia and office documents. Its effectiveness depends on the file having that metadata saved.
- slides: number of slides in presentations. Example: slides:20 returns presentations with 20 slides.
- commentary: search in document comments (Word, for example). Example: comment: "to review".
- artist: filter songs by artist. Example: artist:Michael Jackson.
- album: restricted to a specific music album. Example: album: "Bad".
- clue: track number in audio files. Example: track:13.
- gender: delimited by musical genre. Example: genre: rock.
- duration: Valid for music and video; accepts categories (very short, short, medium, long, very long) or specific times.
- year: useful for multimedia content; filter by year. Example: year: 1990.
- orientation: In photos, it distinguishes vertically or horizontally if the camera recorded it.
- width: y high: allow you to set exact dimensions in images. Examples: width:1024, height:480.
Combining metadata with content and extension allows for surgical searches, such as ext:docx content:budget comment:review for Word documents where, in addition to the text, there is a comment with "review".

Configure the indexer to analyze the content
If your search returns no files whose content includes your term, it's almost always an indexing issue. Check the options for Windows to analyze properties and content.
- Opens Start > Settings > Search > Searching Windows. Choose mode Classic (Libraries and Desktop only) or Improved (the whole system) as you prefer.
- On that same page, go to Configuring the Advanced Search Indexer to open Indexing options. Add or remove locations depending on where you want to look.
- Balance Advanced and go to the tab File Types. Check the relevant extensions (docx, xlsx, pdf, txt, etc.) and select “Index file properties and contents”.
- Agree to index rebuild when I suggest it. Re-indexing takes time and can increase CPU and battery usage., especially with the Enhanced option.
In Windows 10, the process is virtually identical, and from that same area you can enable searching in unindexed files. Use this feature judiciously if your computer has limited resources.
Keep in mind that Windows does not process all types of files; for example, it will not find strings within certain .dat files unless there is an iFilter that understands their format.

Unindexed Files: Useful Tools and Commands
When a format isn't supported by the indexer, or you need a one-off search without affecting indexes, there are quick solutions. The Everything tool and other options work very well for both local and network folders.
AstroGrep is lightweight, fast, and also searches network locations. Its interface is simple and allows you to review matches with context . Web: astrogrep.sourceforge.net
Agent Ransack combines speed with an integrated viewer for seeing matches without opening the file. It's ideal when working with large folder trees . Web: www.mythicsoft.com/agetransack
Notepad++ includes a very convenient search function accessible via Ctrl+Shift+F . You can search for text within a folder, using file extension filters and regular expressions. It's perfect for reviewing code or text documents . Website: notepad-plus-plus.org
If you prefer line of commands, do you have the fc command y findstr. From a window of Symbol of the system, go to the target folder and run something like: findstr /s /m terminobuscado *.*.
Key parameters: /S searches the current directory and subfolders; /M displays only the file name if the term is found. Add extension filters if needed: findstr /s /m contrato *.txt.
These alternatives do not depend on the index and are therefore very useful with atypical formats or when you need an immediate result without reconstructing anything.

Tricks and combinations that really work
A practical strategy is to start simple and add filters until the list is manageable. First, restrict by folder and extension, then apply content and date filters.
- *.docx content:334455 when you remember a unique number in the document.
- ext:pdf content: "payment contract" modified: this year to locate recent PDFs with that exact phrase.
- type:image (width:>=1920 height:>=1080) if you need Full HD images or higher.
- class:document content:ortigoza name:*2014 to attack documents related to a surname and a year.
If you're performing signature-based data recovery and the files have lost their original names, focus on uncommon terms. First, use the least frequent string of the text you remember , and if there are too many results, add a second condition with AND/NOT.
Remember that you can combine multiple properties at once and that searches support cumulative searches. Think of your query as a funnel: each filter reduces noise.

Table of Contents
- 1 Search for text within files from Explorer
- 2 Operators, quotes, and wildcards that save you hours
- 3 Advanced properties and filters that refine your search
- 4 File type-specific metadata
- 5 Configure the indexer to analyze the content
- 6 Unindexed Files: Useful Tools and Commands
- 7 Tricks and combinations that really work