Category: Tech Tip | Published: 2026-08-06
Someone sent you a contract three weeks ago. Or was it a spreadsheet? You know it came by email, you know roughly when, but you cannot remember who it was from and the subject line is giving you nothing. You scroll back through your inbox, then further, then further still. Sound familiar?
Outlook has a built-in way to find email attachments that cuts through all of that in a matter of seconds — no scrolling, no guessing, no hunting through folders. Most people have never used it.
The Search Term That Changes Everything
The key is a search filter called hasattachments:yes. Type that into the Outlook search box and press Enter, and Outlook immediately filters your results to show only emails that contain attachments. Everything else disappears.
That single step removes the majority of emails in most inboxes straight away. Instead of scrolling through newsletters, replies, and notifications, you are looking at only the messages that actually contain a file. From there, finding the one you need becomes considerably faster.
This works across Outlook versions, so whether you are on Outlook for Microsoft 365, a standalone version, or Outlook on the web, the hasattachments:yes filter will work.
Narrowing Down Further by File Type
If you are using classic Outlook for Windows, you can go one step further and filter by the type of file attached. This is where the search becomes really powerful for finding a specific document.
The operator to use is ext: followed by the file extension you are looking for. So to find email attachments that are PDFs, you would type ext:pdf into the search box. For Word documents, ext:docx. For Excel spreadsheets, ext:xlsx. For PowerPoint presentations, ext:pptx.
You can use these on their own, but they work even better when combined with the hasattachments filter or with other search terms. For example, if you type hasattachments:yes ext:pdf into the search box, Outlook will return only emails that contain PDF attachments. If you add a keyword or a sender name on top of that, the results narrow down further still.
A Few Practical Combinations Worth Knowing
Here are the search strings that come up most often in practice.
To see all emails with any attachment: type hasattachments:yes and press Enter.
To find only emails with a PDF attached: type hasattachments:yes ext:pdf and press Enter.
To find a PDF sent by a specific person: type hasattachments:yes ext:pdf from:their name and press Enter, replacing their name with the sender you are looking for.
To find a spreadsheet from a particular month: use the date range filter available in Outlook alongside hasattachments:yes ext:xlsx to narrow the results to a specific period.
None of these require you to remember what the email was called, what the subject line said, or exactly when it arrived. You are searching by what the email contains rather than by what you remember about it, which is usually much easier.
Why the Ext Filter Is Only in Classic Outlook
The ext: operator is specific to classic Outlook for Windows because it uses Windows Search indexing to look inside attachment metadata. Outlook on the web and the newer Outlook for Windows app use a different search architecture that does not support the ext: filter in the same way.
If you are on Outlook for the web or the new Outlook app and need to filter by file type, the quickest workaround is to use hasattachments:yes to pull up all attachments, then use the sort or filter options available in the search results to group or limit by file type where the interface allows it.
For the majority of users on business Microsoft 365 accounts running classic Outlook for Windows, the full combination of hasattachments and ext: filters will work exactly as described.
Small Tips That Save Real Time
Searching for attachments is one of those small Outlook habits that pays back immediately and compounds over a working week. Once you know hasattachments:yes is there, you will reach for it whenever you need to track down a document and cannot face scrolling through hundreds of messages.
It is also worth knowing that these search filters work within any folder you are currently viewing in Outlook, not just your inbox. If you want to search across all folders including sent items and subfolders, make sure you select All Mailboxes or All Folders from the scope options that appear when you click in the search box before running your search.
If your team would benefit from making better use of the tools already in your Microsoft 365 setup, our Managed IT Services page covers how we help businesses get more from the technology they already have.