TECH / Software & Services 4 min read

How to Find Emails with Attachments in Gmail: Search Operators and Storage Cleanup

Antonio NEMCD Author
Published Dec 26, 2012 · Updated Nov 13, 2026 · 4 min

Sometimes you need to quickly find every email with attached files – whether to locate a buried work document or clear out space in your inbox. Gmail includes built-in search operators that work right from the regular search bar without installing extra extensions.

How to Find Emails with Attachments in Gmail coverFinding emails with attachments and reclaiming storage quota in Gmail using search operators

Simply type an operator into Gmail’s top search box and press Enter – your mailbox immediately filters messages by attachment presence, file extension, total message size, age, or folder scope.

Finding All Attachments and Filtering by File Type

The simplest query to surface every conversation that contains at least one attached file is:

has:attachment

When you already know the file format you are looking for, narrow the list with filename:. It matches both exact file names and extensions:

  • PDF documents: has:attachment filename:pdf surfaces invoices, contracts, and tickets.
  • Compressed archives: filename:zip or filename:rar locates bundled downloads and backups.
  • Photos and office files: use filename:jpg, filename:png, filename:docx, or filename:xlsx in the same way.

Finding Large Emails to Free Up Gmail Storage

When your Google storage quota starts running low, deleting hundreds of tiny text notifications barely moves the needle – locating a handful of oversized attachments is much faster. Gmail provides size:, larger:, and smaller: for filtering by total message size.

Specify the unit right after the number: plain numbers represent bytes, k stands for kilobytes, and M stands for megabytes:

  • Messages over 1 MB: size:1M or larger:1M.
  • Heavy threads over 15 MB: larger:15M – the fastest starting point for storage cleanup.
  • Small messages under 100 KB: smaller:100k (handy for isolating lightweight alerts or text replies).

Combining Operators and Searching Spam or Trash

Operators can be combined in a single search query separated by spaces. Mixing attachment, size, sender, and age filters makes inbox maintenance precise:

Operator What It Matches Example Query
has:attachment Emails containing any attached file has:attachment
filename: Attachments matching a name or extension has:attachment filename:pdf
larger: / size: Messages larger than the threshold (bytes, k, M) larger:15M
smaller: Messages smaller than the specified size smaller:100k
older_than: Older than a relative age (d days, m months, y years) has:attachment larger:10M older_than:1y
from: Sender filter combined with message size size:10k from:[email protected]
in:anywhere Searches all folders, including Spam and Trash in:anywhere has:attachment larger:5M

Keep in:anywhere in mind whenever something seems missing: standard Gmail searches skip Spam and Trash by default, so adding in:anywhere brings deleted or misclassified attachments right back into view.

Using the Gmail Web Search Filter Panel

If you prefer clicking checkboxes instead of memorizing query syntax, Gmail’s web interface exposes the same filters visually:

  1. Click the Show search options icon (sliders or downward arrow) on the right side of the Gmail search bar.
  2. Check the Has attachment box at the bottom of the dropdown panel.
  3. Next to Size, pick greater than and enter a threshold such as 10 MB.
  4. Optionally set Date within or switch the Search scope to Mail & Spam & Trash, then click Search.
Storage cleanup checklist:

  • Empty the Trash: Deleted attachments still count against your storage quota until you click “Empty Trash now” (or wait 30 days for automatic deletion).
  • Back up first: Before bulk-deleting results from has:attachment larger:10M older_than:1y, skim the threads and download any irreplaceable scans or archives.
  • Trim old threads: Deleting an outdated email thread with multiple revision attachments reclaims space for every message inside that conversation at once.

With these few search operators saved, tracking down old files and reclaiming wasted Gmail storage takes only a couple of minutes.

Related posts:

Leave a Comment