All tools

Email Attachment Search Builder

Fill in what you remember about the attachment and copy a search that works in Gmail or Outlook. Nothing leaves your browser.

has:attachment
Open in Gmail

How to find emails with attachments

How do you find emails with attachments in Gmail or Outlook?

Pick Gmail or Outlook above, then fill in what you remember: a file type or name, the sender, a word in the subject, a size, or how old the message is. The builder writes the search with the operators each app documents, such as has:attachment filename:pdf larger:5M in Gmail or hasattachment:yes messagesize:enormous in Outlook. Copy it, or open it in Gmail directly.

  1. 01

    Choose the app

    Select Gmail or Outlook. The operators differ, and the builder only uses the ones each app documents.

  2. 02

    Describe the attachment

    Type a file type such as pdf, the sender, a word from the subject, a minimum size in MB, and for Gmail how old or new the message is.

  3. 03

    Copy the search

    Click Copy search and paste it into the search box, or click Open in Gmail to run it there.

  4. 04

    Narrow it

    Add a word from the message in the last field if the list is still long. Blank fields add nothing to the search.

Privacy

Your files stay yours

Every tool runs entirely in your browser. We never see, store, or transmit your files.

No server uploads

Files are processed using JavaScript in your browser. Nothing is sent to a server.

No account needed

Use any tool immediately. No email, no sign-up, no paywall.

Nothing stored

Close the tab and your files are gone. We never cache or log documents.

FAQ

Questions answered

Which Gmail search operators find attachments?

has:attachment finds any message with an attachment. filename:pdf matches a type or a word in the name, larger:5M a size, older_than:1y and newer_than:7d an age, and from: and subject: narrow by sender and subject. They combine with spaces, and Google documents all of them on its search operators page.

How do I find all emails with attachments in Outlook?

In classic Outlook, search hasattachment:yes, add from: or subject:, and messagesize:enormous for mail over 5 MB. New Outlook and Outlook on the web have a Files tab, an Attachments option under Advanced Search, and a Sort by Has files option. Outlook documents no older-than operator, so use the date filter after pasting.

Why does the Outlook search use size bands instead of megabytes?

Because that is what Outlook documents: messagesize takes the words tiny, small, medium, large, verylarge or enormous rather than a number. The builder maps the megabytes you type to the nearest band at or above it, so 6 MB becomes enormous, which Microsoft defines as over 5 MB.

Can this find the attachment itself, or only the email?

Only the email. Search finds the message the file arrived in, and the file keeps whatever name the sender gave it. To search attachments by what they say, they have to be filed somewhere that reads them, which is what The Drive AI does with Gmail and Outlook attachments.

Is anything sent to your servers?

No. The search string is built in your browser as you type and nothing is stored or sent anywhere. Open in Gmail hands the search to Google in the page address, the same as typing it into Gmail yourself.

Searching for the same invoices and bills every month? The Drive AI files attachments as they arrive, named by what each one says, so the search is not needed.

Organize this folder: file invoices by vendor and year and bills by provider and month, each named by what the document says.

Opens The Drive AI with this typed into the agent, after a free signup if you are new. Nothing changes until you approve it.