If you’re like most professionals, you’re sending and receiving dozens, if not hundreds of emails a day.
Did you know that you can establish automatic sorting rules and workflows in Gmail (called Gmail filters), so you spend less time managing email and end up with a much better organized inbox?
In this article, I’ll explain what Gmail filters are, how to set them up, and show you some advanced Gmail filters tricks to supercharge your productivity.
Table of Contents
- What Are Gmail Filters?
- How to Create A Filter in Gmail
- How to Delete and Edit Gmail Filters
- Gmail Filters Tips & Tricks
- 1. Automatically send newsletters to certain categories or labels (or the trash).
- 2. Identify spam and junk it.
- 3. Make unimportant app notifications bypass your inbox.
- 4. Stop getting messages from annoying people.
- 5. Delegate tasks automatically.
- 6. Label your Calendar (and other) reminders.
- 7. Automatically mark to-do messages as important.
- 8. Automatically send big attachments to a label so you can find (and delete) them later.
- 9. Filter emails with media.
- 10. Automatically back up important emails.
- 11. Automatically sort emails from certain projects/clients into appropriate labels.
- 12. Take action on all emails from a specific domain.
- Related posts:
What Are Gmail Filters?
What are Gmail filters? A Gmail filter is simply a set of rules applied to incoming email. You can customize these rules as you see fit, making sure that certain types of emails end up somewhere other than your inbox.
Most people use Gmail filters to get rid of or properly categorize emails that are predictable or repetitive, like email marketing newsletters, social media notifications, or automatic notifications from your project management app.
But the only limit to their utility is your creativity—there are plenty of hacks and tricks to make them do pretty much anything you need.
How to Create A Filter in Gmail
Okay, ready to learn how to create Gmail filters?
You can think of setting up Gmail filters as a 3-phase process: in phase 1, you’ll initiate the creation of a filter, in phase 2, you’ll choose filter criteria, and in phase 3, you’ll choose how the filter handles emails matching those criteria.
Phase I
You can create filters in Gmail in 1 of 3 main ways. No matter which way you choose to initiate this process, you’ll be met with the same options in phase 2 and 3.
Option 1
Create a filter from scratch. To do this, head to the Settings menu and click on “Filters and Blocked Addresses.” You can then click “Create a new filter” to begin the process. This will bring you to Phase II.
Option 2
Open the filter criteria options simply by clicking the down arrow on the Search bar at the top of your inbox. This will also bring you to Phase II.
Option 3
Open an email, then click the vertical ellipses in the upper-right corner. Then, click “Filter messages like this.”
When you do this, you’ll be brought to Phase II as well, but some filter criteria will already be filled in. You can modify these to your liking.
Phase II
In Phase II, you’ll be able to select the filter criteria for your new filter. No matter how you got here, you’ll be met with the same options in a screen that looks like this:
Most of these parameters should be obvious, but just in case:
- From allows you to filter emails from a specific email address (or multiple addresses).
- To allows you to filter emails sent to a specific email address. All emails in your inbox include you as a recipient, but you may wish to filter emails also sent to a colleague or someone outside your organization.
- Subject allows you to filter emails with specific keywords in a subject line, or a specific subject line.
- Has the words allows you to filter emails with specific keywords and phrases in the body.
- Doesn’t have allows you to filter emails that are missing specific keywords and phrases in the body.
- Size refers to the total size of the email, including the attachment (see our post on the Gmail attachment size limit). You may want to use this in combination with the “Has attachment” option.
- Date within only appears when you access this option from Search; it bears no relevance on the filter you eventually create.
- Search only appears when you access this option from Search; it bears no relevance on the filter you eventually create.
- Has attachment and Don’t include chats allow you to further specify which types of messages are included.
Note that you can include multiple filter parameters for each filter you create. When you’re done, click “Create filter” in the bottom right corner, and take yourself to Phase III.
One other important note: like with Gmail’s basic search function, filters allow you to apply Boolean operators—search terms like AND, OR, and NOT.
This allows you greatly customize your search parameters, excluding any emails within those parameters you might wish to categorize differently.
Phase III
Phase III is where the magic happens. Now that you’ve specified specific types of emails to filter, you’ll decide what Gmail should do with them.
There are several options available, and you can apply multiple options if they’re compatible with each other:
- Skip the Inbox (Archive it) will automatically archive incoming messages that match your filter criteria.
- Mark as read will automatically mark those messages as read.
- Star it will mark those messages with a star.
- Apply the label will allow you to apply an existing or new label to these incoming messages, helping you easily categorize them.
- Forward it lets you forward it to a specific email address.
- Delete it automatically deletes these emails. Use this one cautiously.
- Never send it to Spam whitelists emails that match these criteria.
- Always mark it as important and Never mark it as important allow you to automatically add or remove an importance marker (the chevron-like symbol) from these messages.
- Categorize as: allows you to choose a category like Primary, Social, Updates, Forums, or Promotions where you can send incoming emails like this. Google does a good job of detecting these types of emails to begin with, but an extra filter can help you out in fringe cases.
- Also apply filter to matching conversations. Ordinarily, filters will only apply to emails moving forward. This option allows you to properly mark or categorize emails in your inbox that currently match your criteria.
At this point, you should have everything you need to create filters at your discretion.
How to Delete and Edit Gmail Filters
At some point, you may want to edit a Gmail filter to reflect your current needs, or remove it. If this is the case, head to the Settings menu once again, and select the Filters and Blocked Addresses tab.
There, you’ll see a full list of all the filters you’ve created. You can click “edit” to bring yourself back to Phase II and Phase III, and customize your filter.
You can also simply click “delete” to get rid of it forever.
Gmail Filters Tips & Tricks
Now that you know how to create a filter in Gmail, let’s take a look at some of the ways you can use Gmail filters to boost your productivity (or simply help you stay sane):
Most of us subscribe to multiple newsletters, staying informed about the latest deals from our favorite stores or just learning more about a specific field like marketing.
Improve your team's email response time by 42.5% With EmailAnalytics
- 35-50% of sales go to the first-responding vendor.
- Following up within an hour increases your chances of success by 7x.
- The average professional spends 50% of their workday on email.
These can be useful, so you may not want to unsubscribe from them altogether, but at the same time, they can take up your time if you’re forced to delete them on a regular basis—or if they get in the way of your more important emails.
Set up a filter based on the email addresses sending you these newsletters, and either archive them automatically, or put them in a specific category.
2. Identify spam and junk it.
Google has a built-in spam filter for Gmail, so you shouldn’t ever have to see some of the most egregious offenders (i.e., Nigerian Prince scams).
However, some spam emails inevitably get through. If they’re consistent enough that you can identify them with a specific marker, you should be able to set up a filter that directs them where they belong—the trash.
For more info, see our post on why emails go to spam.
3. Make unimportant app notifications bypass your inbox.
If you’re like me, you’re constantly getting notifications from the wide range of apps and platforms you use on a daily basis. You have productivity apps, social media profiles, project management platforms, and other miscellaneous accounts all sending you email alerts for events that range from significant to useless.
You can usually control what types of emails you get and when, but if you’d like to keep receiving them, you can manage them better with filters.
Send them to a different category or under a new label, so you can hash them out properly. For example, I don’t need an email in my inbox every time someone follows me on Twitter.
4. Stop getting messages from annoying people.
Some people on your contact list will inevitably annoy you, either because they send you dumb chain letters on a regular basis or because they never seem to have anything important to say.
If they’re cluttering up your inbox consistently enough, you can identify them as a sender in your filter parameters, then escort their messages straight to the archive folder.
5. Delegate tasks automatically.
You can also use filters to delegate certain tasks, assuming they enter your inbox consistently enough. For example, if you get notifications of new leads that need to be followed up with, you could automatically forward those leads to an individual on your sales team.
This is tricky to get right, especially because your incoming emails will likely vary, but if you can identify them with a specific subject line, keyword, or sender, it can be helpful.
6. Label your Calendar (and other) reminders.
Labels are one of the most useful organizational features built into Gmail, assuming you’re using them consistently. They can help you find emails easier with more intuitive searches and make sure important emails don’t get lost.
They’re especially useful for sorting out reminders—like emails about important dates coming up in your Calendar.
Just create a filter that applies a label based on the subject line and/or sender.
7. Automatically mark to-do messages as important.
If you know certain messages are associated with a to-do item, you can automatically mark them as important by applying a certain filter. For example, you can mark important all emails from a specific person, or those that include an attachment or keyword phrase.
Then, you’ll be responsible for marking them not important whenever you’re done with them. Do this consistently, and you’ll be amazed how much more productive you’ll be.
8. Automatically send big attachments to a label so you can find (and delete) them later.
Over time, your attachments can clutter your inbox. They may slow the speed of your inbox, and eventually, you’ll come up against the upper storage limit for your account.
You can manage your attachments by sorting through them manually, but it’s helpful to apply a filter to emails with attachments above a specific size, so you can categorize them for easier organization.
9. Filter emails with media.
By using the “filename:” search parameter, you can set up a filter for all emails with a specific type of file attached. For example, you can identify emails with filename:mov for .mov files or filename:jpg for .jpg files.
From there, you can apply a unique label, or lump them all into a specific category.
10. Automatically back up important emails.
If certain types of emails are more important than others, or if you just want a personal copy of those emails, you can set up a filter to forward them to a personal (or alternate) email address.
For example, you might send emails with sizable attachments to your backup email address for when you work from home, or if you’re worried about the security of your main account.
For a full overview, see our guide to how to backup Gmail.
11. Automatically sort emails from certain projects/clients into appropriate labels.
Use filters to easily distinguish emails associated with different projects or different clients. Depending on the urgency of these clients and projects, you might mark some as important, while sending the others to appropriate labels.
12. Take action on all emails from a specific domain.
For various reasons, you may wish to trash, archive, or specifically label all incoming emails from a specific domain. To do this, you can use an asterisk to fill in for all emails within a specific domain; for example, *@yourdomainhere.com.
If a particular website seems to be spamming you, or if one client is more important than all your others, you can take greater control of their incoming messages and sort them automatically.
These ideas are just the tip of the iceberg. Use these as a template and modify your own custom Gmail filters, or create some entirely from scratch. The more you learn about your own email habits, the more filters you’ll effectively create.
Creating and managing comprehensive Gmail filters is one of the best steps you can take toward mastering your Gmail productivity. But they may not be enough if you still have persistent bad email habits—especially if those bad habits are organization-wide.
If you want to learn more about how you’re using Gmail (and how you can improve), give EmailAnalytics a try. With EmailAnalytics, you’ll learn how often you’re emailing, your average response times, your busiest times and days, and dozens of other metrics, all with in-depth visuals to make your analysis even easier.
Sign up for a free trial today and see what EmailAnalytics can do for you!
Jayson is a long-time columnist for Forbes, Entrepreneur, BusinessInsider, Inc.com, and various other major media publications, where he has authored over 1,000 articles since 2012, covering technology, marketing, and entrepreneurship. He keynoted the 2013 MarketingProfs University, and won the “Entrepreneur Blogger of the Year” award in 2015 from the Oxford Center for Entrepreneurs. In 2010, he founded a marketing agency that appeared on the Inc. 5000 before selling it in January of 2019, and he is now the CEO of EmailAnalytics.
One tip I use, and one request …
Tip: I use a filter to apply a ‘Greylist’ label for emails that probably can be deleted just based on a glance at the subject line, but occasionally might have something interesting or important. Helps to keep the inbox clear, while minimising the risk of deleting something important.
Request: Is there any way to use a filter (or filters) to apply more than one label?
That’s a great question! I don’t know. I will see if I can find out.
Not having a date at the head of the article, I can’t tell whether or not the contents are current; Ergo, I didn’t bother reading it.
Yet you bothered commenting on it. Interesting.
rotfl
Still no date at the top, and still a solid article (I hadn’t considered trying wildcards in the filters until skimming this article. Hope they work.)
And your reply is still LOL…
The only way I know is to create multiple filters on the same email. Each filter (label) is a separate and unique action or entry. So I want to store a purchase confirmation email in folders called ‘Amazon’ and ”credit card used’. That would require two filters (labels), one for each folder the email is stored under. Make sense?
How exactly do I add an * in an email? I want to put on in an email infrom of a certain street address so that all incoming emails about that address with be diverted to a certain label.
Thank You,
Pamela
Just use a partial address instead.
AFAIK, Gmail filters do NOT support the “*” wildcard…
Hello! Thank for your article. When filtering emails from a specific email is there a way to filter emails from similar email addresses? For example
I’m a teacher and I want to filter all emails that begin with or is from
“Stu” followed by the students specific email address. Do I have to list all of the emails in the from filter? I hope this make sense. Thanks!
You could try a wildcard operator, but I’m not actually sure if that’d work. Wildcard is usually an asterisk *
Is there a way to add a “from” address to an existing filter with a single click (like assigning a label)? I have a “junk” filter that skips-inbox, marks-as-read, and applies label=junk. Works great. But, I constantly have new email sources that I want to add to this.
Creating new filters for each one, or constantly editing the existing filter takes too many steps (more attention than these emails deserve!).
Any way to just tell Gmail “add this to existing filter abc”?
Not to my knowledge, John.
Sure, you can edit the existing filter. Once there, in the “From” section you just need to add the new address to the existing ones. If you pay attention you’ll see them separated by the OR operator, so you just need to add the new one (I usually do at the beginning) followed by OR and then the existing ones, for example:
new@mail.com OR existing1@mail.com OR existing2@mail.com…
Isn’t that what John did NOT want to do, re-editing the filter all the time?
Has something changed between Apple and Google wrt GMAIL? I upgraded to Monterey and now some emails that had been filtered and sent to trash on GMAIL, now get sent to trash in my Mac Mail. I have to go into GMAIL and mark those that have gone into my Mac Mail trash as spam.
Make sure that the Trash folder on your Mac is NOT sync’d with the one on the (Gmail) server.
From allows you to filter emails from a specific email address (or multiple addresses).
What to add at the beginning or in between multiple addresses?
i.e
(address1, address2)
address1 OR address2
{address1, address2}
I’ve never seen an email from a .co address that is not spam. I have a .co filter that deletes all of those from my normal email account; can I set up gmail to delete everything from .co? Or maybe use *@*.co?
*@*.co will find all email .co I have friends in UK there email addresses end, .co.uk so this filter find all those emails.
I don’t think this is necessary / I obtain the same exact results by simply listing the partial domain. In other words, specifying:
*@*.uk or @*.uk or .uk seems to be doing the same stuff…
In other words and AFAIK, Gmail seems to completely ignore wildcard characters, but IF it doesn’t, it definitely doesn’t follow the official wildcard characters and their meaning.
suggest you archine and not delete – you may miss an important email.
Is there a way in gmail to create a filter that will first, forward the email to another gmail address, then delete it from my inbox after it’s been forwarded?
Very easy…
1) click Settings -> See all settings -> Filters and… -> create a new filter
2) on first screen, enter in:inbox on the 4th line (the “Has the words” line)
3) click Continue
4) click OK on the warning screen (don’t worry ;o)
5) on the second screen, at the “Forward it to” line, Add forwarding address
6) also “check” the next line “Delete it”
7) click “Update filter”
Done!
Hi, when I use the filter options in gmail, it does not give me the option to filter by date. But this is exactly what I am searching for. Is this a recent screenshot up there in the article? Is there some secret how I can let this option show for me?
Thanks a lot!
To create a “Bacon” label, I’d love to be able to apply a filter to any email that’s sent to any list, not a single specific list.
Using “from: no-reply” and other variations of no-reply certainly helps.
how do you accomplish #11? i see it listed but not how to take multiple actions on the same email. when i make two filters for the same match, it only runs the first one. thanks!
Good article, but i have 1000s of filters. There is a way to type in and find a specific filter: what is it and where is it?
Great article, thanks for sharing.
I use Gmail filters all the time, it’s a great way to organize my business emails, junk etc..
One issue I have is when I want to edit or delete a filter there is no quick way to find the contact. If I go to settings, filters & blocked addresses there is a vast list of contacts with filters set up. The list is not in any particular order, nor is there a search box. Is there a way to search for a contact and then edit or delete the filter? Thanks.
“Good article, but i have 1000s of filters. There is a way to type in and find a specific filter: what is it and where is it?”
This is my question also. Have you found a solution?