AttachHaul
Features Pricing Guides Add to Chrome

GUIDES

Gmail search for attachments: the words that find any file

To search attachments in Gmail, type has:attachment in the search box and add what you know: filename:pdf for a file type, filename:invoice for part of a name, larger:10M for size, from: for the sender, after: for a date. To save every match at once, open AttachHaul and choose "Everything in this search".

CONTENTS

  1. 01Search words worth knowing
  2. 02How to search attachments in Gmail and save the results
  3. 03Combining search words
  4. 04Searching in Outlook on the web
  5. 05FAQ
  6. 06More guides

01Search words worth knowing

  • has:attachment shows only emails that carry a file.
  • filename:pdf, filename:xlsx, filename:jpg find one file type; filename:invoice finds a word in the file name.
  • larger:10M or smaller:1M filter by the size of the email, attachments included.
  • from:, to:, subject: and label: narrow it to one sender, one recipient, one subject or one label.
  • after:2025/01/01, before:2025/07/01, older_than:1y and newer_than:30d limit the dates.
  • in:anywhere also looks in Spam and Trash; - excludes a word, for example -filename:ics.

02How to search attachments in Gmail and save the results

  1. Start with has:attachment. Type has:attachment in the Gmail search box so only emails with files are left.
  2. Add what you know about the file. For example has:attachment filename:pdf from:[email protected] after:2025/01/01. Press Enter and check the results look right.
  3. Open the AttachHaul side panel. Click the AttachHaul icon in the Chrome toolbar. The panel has the same search words as tap-to-copy tips if you forget one.
  4. Choose Everything in this search. This covers every page of results, not only the 50 emails on screen. Under File types you can keep only PDFs, images, spreadsheets or documents.
  5. Press Download attachments. You get one ZIP with every matching file and a CSV list of what was saved.

03Combining search words

Words you put next to each other must all match: has:attachment from:bank filename:pdf means a PDF from the bank. Use OR (in capitals) or curly brackets for either one: filename:{pdf docx}. Put a minus in front to leave something out.

filename: matches the file extension or any part of the file name, so filename:2025 finds files with 2025 in their name. larger: measures the whole email, so an email with several small files can still count as large.

04Searching in Outlook on the web

Outlook uses different words, for example hasattachments:yes. AttachHaul saves the results there too: see download all attachments in Outlook on the web.

05FAQ

How do I see all attachments in Gmail?

Search has:attachment. Gmail lists every email that has a file, newest first. To keep the files themselves, AttachHaul saves the attachments of the whole result list in one go.

Can Gmail search inside the attachment, for example text in a PDF?

Gmail can match words inside some attached documents, but not reliably. Searching by filename:, sender and date is more predictable.

Why does my search miss some emails?

Gmail search skips Spam and Trash unless you add in:anywhere. Large files sent as Google Drive links are not attachments, so has:attachment does not find them; try has:drive.

Is AttachHaul free?

Free for up to 10 conversations per run; bigger runs need a plan: US$2 a month or US$19.99 a year. Every feature is in the free version, and your first bigger run on each browser is free too.

06More guides

  • Download all attachments from Gmail, across every page
  • Find large attachments in Gmail and keep a copy before you delete
  • How to download invoices from Gmail, a whole year at a time

Add to Chrome — free

Gmail and Google Drive are trademarks of Google LLC. Microsoft and Outlook are trademarks of the Microsoft group of companies. AttachHaul is not affiliated with Google or Microsoft.
Terms Refund policy Privacy Contact