Blog/ Gmail how-tos

How to Find Large Attachments in Gmail: has:attachment larger:10M

Nafiul HasanNafiul Hasan· 7 min read
Illustration showing Gmail search operators filtering emails by attachment size, with large files identified and cleared to free Google storage quota

The short answer

To find large attachments in Gmail, type has:attachment larger:10M in the search bar and press Enter. Gmail lists every email with an attachment over 10 MB. Change 10M to 5M or 25M to widen or narrow the search, then delete the emails and empty Trash to free storage.

Search has:attachment larger:10M in Gmail to list every email with a file over 10 MB. Then delete them, empty Trash, and check your storage.

On this page
  1. 01Find large attachments in Gmail: the search to paste
  2. 02How do you find large files in Gmail?
  3. 03How to find and clear large attachments in Gmail
  4. 04Where each method works
  5. 05When it does not work as expected
  6. 06Where AI Emaily fits

Find large attachments in Gmail: the search to paste#

Gmail cannot sort by size, and it lists results newest first, so you find big files by stepping a size threshold up or down. Paste one of these into the search bar, with no space after the colon.

SearchWhat it findsWhen to use it
has:attachment larger:10MEmails with an attachment over 10 MBFirst sweep: catches the biggest offenders
has:attachment larger:5MEmails with an attachment over 5 MBSecond sweep once the biggest files are gone
has:attachment larger:20MEmails with an attachment over 20 MBWhen you only want to touch the very largest files
has:attachment larger:5M older_than:2yOld emails with attachments over 5 MBSafest deletions: old files are rarely still needed
larger:10MEmails over 10 MB in total size, with or without attachmentsCatches heavy emails that has:attachment misses
has:attachment larger:5M from:[email protected]Big attachments from one senderRecurring senders who forward large files
Search strings to paste into Gmail
Over 10 MBhas:attachment larger:10M
Over 5 MBhas:attachment larger:5M
Over 25 MBhas:attachment larger:25M
Old attachmentshas:attachment larger:5M older_than:2y

Case and format

Google's own example is larger:10M, a number followed by M for megabytes, with no space after the colon. People also type 10MB, 10m or larger: 10m, and a space is the most common reason a search returns nothing useful. If a variant misbehaves, switch to the documented form. The bare has:attachment operator, on its own, just lists every email with a file attached.

How do you find large files in Gmail?#

Use the size search above, and treat it as a loop: search at a high threshold, clear the results, then lower the threshold. A handful of heavy emails, such as a forwarded slide deck, a shared video or a PDF archive, usually accounts for most of the space. Plain-text mail barely registers.

There is a second route if you would rather see storage by service first. Gmail, Google Drive and Google Photos share one Google storage quota, and Google's storage page (one.google.com/storage) shows how it splits. If Photos or Drive holds most of it, cleaning Gmail will not change much. For the Gmail side, the size search is the precise tool. If you also want to clear by date, see Gmail search by date range and bulk delete old emails in Gmail.

How to find and clear large attachments in Gmail#

These steps are for Gmail in a desktop browser, where bulk actions are easiest. The Gmail app accepts the same search operators, but I would do the clean-up itself on the web.

  1. 1

    Run the size search

    Open gmail.com, click the search bar, type has:attachment larger:10M and press Enter. Gmail searches your mailbox but leaves out Spam and Trash by default; add in:anywhere to include them. If the list is short, lower the threshold to 5M. If it is very long, raise it to 25M.

  2. 2

    Work from the largest files downward

    Gmail has no sort-by-size option. Start at a high threshold such as larger:25M, clear those emails, then step down to 10M and then 5M. Each pass removes the heaviest remaining files first, so you recover the most space for the least effort.

  3. 3

    Decide what to keep

    In most cases the email is just the delivery vehicle for the file. If you have already used the attachment, delete the whole email. If you still need the file, download it or save it to Drive first, then delete the email.

  4. 4

    Save to Drive first if you need the file

    Hover over the attachment in an open email and click the Add to Drive icon. This protects the file, but the original attachment stays in Gmail and still counts toward your storage. Only deleting the email frees Gmail space.

  5. 5

    Select and delete the emails

    Tick the checkbox at the top of the results to select the emails on the current page. Gmail then offers a link to select all conversations that match this search; click it only after you have checked the results are ones you want gone. Then click Delete.

  6. 6

    Empty Trash and check storage

    Deleted emails sit in Trash for 30 days and still count toward your quota. Open Trash and click Empty Trash now to remove them straight away. Google says storage figures can take a while to update after large deletions, so recheck later rather than straight away.

Abstract illustration of five bars ranked from longest to shortest, with the longest highlighted in green, standing for clearing the largest attachments first
Clear the biggest files first: each pass at a lower threshold recovers less space than the one before.

Where each method works#

WhereRun the size searchBulk delete resultsNotes
Gmail in a desktop browserYes, all operatorsYes, including the select all matching linkThe best place to do the clean-up
Gmail app on iPhone or AndroidThe same operators are accepted in the search barEasier to do in a browserNo size sorting in any version of Gmail
Google storage pageNoNoShows how your quota splits across Gmail, Drive and Photos

When it does not work as expected#

SymptomLikely causeFix
No results, but you know big files existA space after the colon, a typo, or the mail is in Spam or TrashRetype as has:attachment larger:10M with no space, or add in:anywhere to include Spam and Trash
Deleted emails but storage did not changeDeleted emails stay in Trash for 30 days and still countOpen Trash and click Empty Trash now
Emptied Trash but the storage figure is unchangedGoogle's storage figures can lag behind a large deletionWait and recheck. Google's storage help says the update can take a while
Results include emails you already deletedSearches can include Trash when you use in:anywhereSearch without in:anywhere, or add -in:trash to the query
Saved to Drive but Gmail storage did not dropThe Drive copy is separate; the original attachment is still in GmailDelete the Gmail email after saving, then empty Trash

Saving to Drive does not free Gmail storage

Clicking the Drive icon on an attachment makes a copy. The original stays in the email, so both count toward your shared quota. The save protects the file; deleting the email and emptying Trash is what frees the space.

Where AI Emaily fits#

Clearing Gmail storage is done in Gmail itself, and the steps above are the way to do it. AI Emaily does not delete anything from your Google storage quota for you.

If your bigger problem is keeping several mailboxes under control, AI Emaily is an AI-native email client that connects Gmail, Outlook and IMAP accounts in one inbox, with search over the mail it has synced (about the last 60 days after first sync, not your whole archive) and rules that file recurring senders. That helps with ongoing triage, not with hunting down a years-old attachment. There is a 7-day free trial on Pro or Autopilot; see the pricing page for current plans, or the homepage for an overview.

Frequently asked

Nafiul Hasan

Written by

Nafiul Hasan

Nafiul Hasan is an entrepreneur and AI automation system builder with 10+ years of experience turning messy, manual workflows into reliable automated systems. He designs and ships AI enterprise solutions end-to-end — the agent logic, the data plumbing, and the product people actually use — and founded AI Emaily to give busy professionals their attention back. He writes here from the builder's seat: what works, what breaks, and how to put AI to work without giving up control.

EntrepreneurAI Automation System BuilderAI EnthusiastBuilds AI Enterprise Solutions10+ years experience
More from Nafiul
Ready when you are

Keep several inboxes under control.

AI Emaily brings Gmail, Outlook and IMAP into one inbox, with rules and AI help you approve. 7-day free trial on Pro or Autopilot.

  • 7-day free trial
  • Cancel anytime
  • Every provider