Large email attachments fill up your Google storage faster than anything else. A single video, a set of high-resolution photos, or a big PDF can take up a huge amount of space, and when dozens pile up over months, your inbox warns you that you are running out of room. The good news is that Gmail lets you catch these heavy messages the moment they arrive.
By creating a filter for attachments larger than 5MB, you can label them, skip the inbox, or archive them for review. This guide walks you through the exact steps and shows you how to test the filter before you rely on it.
Quick Answer
Open Gmail on a computer, click the search options icon in the search bar, and tick the Has attachment box. In the Size section, choose greater than and enter 5 MB, then click Create filter. On the next screen, choose what Gmail should do with those messages, such as applying a label or skipping the inbox, and click Create filter again to save it.
Why Filter Large Attachments in the First Place?
Every Gmail account shares 15GB of free storage with Google Drive and Google Photos. Large attachments eat into that shared pool, and once the pool is full, you stop receiving new mail. Filtering big messages helps you spot the problem early instead of discovering it when an important email bounces.
A filter also keeps your inbox calmer. Design files, scanned contracts, and presentation decks rarely need your attention the second they land. Moving them to a label means you can review them in batches and delete the rest in one go.
What Counts as a Large Attachment?
Gmail measures the total size of the message, not just the file itself. A 4.8MB file can push a message over 5MB once encoding and headers are added. That is why some messages you did not expect may match the filter.
What You Need Before You Start
You need a computer or a browser in desktop mode, because the full filter settings are not available in the Gmail mobile app. You also need to be signed in to the correct Google account, especially if you manage more than one inbox.
- A desktop browser signed in to Gmail
- About five minutes of uninterrupted time
- A clear idea of what should happen to large messages, such as a label name
- Optional: a test email with a large file you can send to yourself
If you are not sure how full your storage already is, it helps to check first. You can read more about finding what is using your Google storage so you know whether attachments are really your biggest problem or whether Drive files are taking most of the space.
Step-by-Step: Create the Filter Using Search Options
This is the easiest method. It uses the same search tools you already use to find old mail.
- Open Gmail in your desktop browser and sign in.
- At the top of the page, find the search bar and click the Show search options icon on the right side of the bar. It looks like a set of sliders.
- A panel opens with fields such as From, To, Subject, and Has the words.
- Tick the checkbox labelled Has attachment.
- Find the Size row. Choose greater than from the first dropdown, type 5 in the box, and make sure the unit is set to MB.
- Click Create filter at the bottom right of the panel. Do not click Search, because that only shows matching mail and does not save a rule.
- On the actions screen, tick what you want to happen. A safe starting choice is Apply the label and Skip the Inbox (Archive it).
- If you create a new label, name it something clear like Large Attachments or Over 5MB.
- Tick the box that says Also apply filter to matching conversations if you want the rule to clean up mail already in your account.
- Click Create filter to finish.
From now on, every new message over 5MB with an attachment will be handled automatically. You can find it any time by clicking the label in the left sidebar.
Alternative Method: Use a Search Operator Directly
If you prefer typing, Gmail supports search operators that do the same job. This method is also useful for one-off clean-ups.
- Click inside the Gmail search bar.
- Type has:attachment larger:5M and press Enter.
- Gmail shows every message that matches. Check the results to confirm the size limit feels right.
- Click the Show search options icon again. The size fields will already be filled in from your search.
- Click Create filter and choose your actions, just as in the first method.
The operator larger:5M is the key part. You can swap the number to match your needs, for example larger:10M or larger:25M. According to the official Gmail search operator list from Google Support, size operators use M for megabytes and work with both larger: and smaller: searches.
Choosing the Right Size Limit
Five megabytes is a good middle ground. It catches most photos, videos, and large documents without catching every small PDF invoice. If you receive design proofs or video drafts, you may see dozens of matches a week, and a label becomes essential.
What Should the Filter Actually Do?
Creating the filter is only half the job. The action you choose decides whether the rule helps you or causes new problems.
Apply a Label (Safest Option)
Labelling keeps the message in your inbox but also files it under your chosen label. This is the best choice while you are still learning how many large messages you receive. Nothing is hidden, and you can review the label once a week and delete what you no longer need.
Skip the Inbox and Archive
This keeps your main inbox tidy. The message stays in All Mail and under its label, so it is never lost. Many people combine this with the label action. It suits newsletters with big attachments or automated reports you read later.
Delete It Automatically (Use With Care)
Auto-delete is risky for a size-only filter because size says nothing about importance. A signed contract can be just as large as a joke video. Only choose Delete it if you combine the size rule with a specific sender, such as a mailing list you never need to keep. Even then, remember that deleted mail stays in Trash for 30 days before it is gone for good.
How to Test Your New Filter
Never assume a filter works until you have seen it work.
- Send yourself an email from another account with a file larger than 5MB attached, such as a short phone video.
- Wait a minute, then check your inbox and your new label.
- Confirm the message appears where you expected and that the label was applied.
- Send a second test with a small attachment, such as a tiny text file, and confirm it was not filtered.
- If either test fails, open Settings, go to See all settings, then Filters and blocked addresses, and edit the rule.
How to Edit or Remove the Filter Later
Open Settings, choose See all settings, and open the Filters and blocked addresses tab. Find your size filter, then click edit to change the size, label, or action, or click delete to remove it. Changes apply to new mail from that moment on.
For a full overview of managing rules, the Google guide to creating and managing Gmail filters covers every action, including forwarding and marking as important.
Common Mistakes to Avoid
- Clicking Search instead of Create filter. Search only shows results. It does not save any automatic rule.
- Forgetting to tick Has attachment. Without it, the filter catches long plain-text messages too, not just files.
- Setting the unit to KB or bytes. 5 KB is tiny and would catch almost everything. Always confirm the unit says MB.
- Deleting large mail automatically. Size is not a sign that a message is unimportant. Label first, delete manually.
- Not applying the filter to existing mail. If you skip that checkbox, your old large attachments stay unlabelled and your clean-up job stays half done.
- Creating many overlapping filters. Two size filters with different actions can confuse Gmail and you. Keep one clear rule and edit it when needed.
Conclusion
A Gmail filter for attachments larger than 5MB takes about five minutes to set up and pays you back every week. Large files get labelled or archived the moment they arrive, and cleaning up old mail becomes a quick job of opening one label and deleting in bulk. Start with labelling, test the rule with a file you send yourself, and only consider stricter actions once you trust how it behaves.
Frequently Asked Questions
Can I create this filter in the Gmail mobile app?
No. The Gmail app for Android and iPhone does not offer the full filter creation screen. Use a computer, or open Gmail in a mobile browser and request the desktop site. Filters you create on desktop still work on your phone afterwards.
Will the filter work on emails already in my inbox?
Only if you tick Also apply filter to matching conversations when you create it. Without that box, the rule applies only to new messages that arrive after you save the filter.
What is the difference between larger:5M and larger than 5 MB in settings?
They do the same thing. The search operator is the typed shortcut, while the settings panel is the form version. Using the operator first is a handy way to preview which messages will match before you save the rule.
Does deleting large attachments free up storage straight away?
Not instantly. Messages you delete sit in Trash for up to 30 days and still count toward storage until they are permanently removed. Empty the Trash manually if you need the space back right away.
Can I forward large attachments to another account automatically?
Yes. Forward it is one of the filter actions, but the destination address must be verified first in your forwarding settings. Keep in mind that forwarding does not remove the original copy, so it will not save storage on its own.


[…] any of these sound familiar, your filters are the first place to look. People learning about creating Gmail filters often build their first rules around their own address, which is exactly the habit that causes […]