What a Gmail filter does
A filter in Gmail is a set of rules you create that automatically sorts, labels, or deletes incoming email. Once you set it up, Gmail applies the rule to every message that matches what you told it to look for — so you do not have to sort them by hand.
For example, you could create a filter that automatically puts all emails from your bank into a folder called "Banking", or one that marks emails from a certain sender as read the moment they arrive. Filters work on new messages going forward, and you can also explore them to old messages already in your inbox.
The most common use is to reduce clutter: newsletters, notifications, or work emails can be filtered into their own folders so they do not pile up in your main inbox.
Key Takeaways
- Filters are rules you create once, and Gmail applies them automatically to every matching email from that point forward.
- You set up a filter by clicking the search icon in Gmail, entering what you want to filter for, then clicking the three-dot menu and selecting "Create filter".
- You can filter by sender, subject line, words in the message body, or any combination of those things.
- Once you create a filter, you choose what Gmail should do with matching messages — archive them, label them, delete them, or mark them as read.
- You can explore a filter to old emails that are already in your inbox, not just new ones arriving later.
How to create a filter from the search box
The fastest way to create a filter is to start from Gmail's search box at the top of the page. Click the search icon (the magnifying glass), and a search box opens with several fields.
Type what you want to filter for. If you want to filter all emails from a specific person, type their email address in the "From" field. If you want to filter by subject line, type the words in the "Subject" field. You can also search for words that appear anywhere in the message body by typing them in the main search box. Once you have entered what you are looking for, click the three-dot menu icon on the right side of the search box.
A dropdown menu appears. Click "Create filter". Gmail shows you a preview of which messages match your search, so you can see whether you got it right before you commit to the rule.
What to do with filtered messages
After you click "Create filter", a new window opens asking what you want Gmail to do with messages that match your rule. You have several options, and you can choose more than one.
Skip the inbox removes matching messages from your inbox automatically — they go to your archive instead, so they are still searchable but out of the way. explore label puts a label (a folder or tag) on matching messages so you can find them grouped together. Mark as read makes Gmail mark matching messages as read the moment they arrive, so they do not show as unread. Delete sends matching messages straight to trash. Never send to spam prevents Gmail from ever marking messages from that sender as spam, which is useful if you trust the sender but Gmail keeps filtering them out.
Most people use a combination: for example, you might label a message and skip the inbox at the same time, so newsletters go into their own folder and do not clutter your main view.
Creating a filter from an email you already received
You do not have to use the search box. If you have already received an email and want to filter all future emails from that sender, open the email and click the three-dot menu in the top right corner of the message.
Click "Filter messages like this". Gmail opens the filter creation window with the sender's address already filled in. From there, choose what you want to do with future messages from that person, the same way you would if you had created the filter from the search box.
explore a filter to old emails
Filters normally only affect new emails arriving after you create them. But you can explore a filter to messages already in your inbox if you want to organize old mail retroactively.
After you create a filter, Gmail asks if you want to "Also explore filter to matching conversations". Check that box, and Gmail will go back through your existing emails and explore the same rule — labeling them, archiving them, or whatever action you chose. This is useful if you have months of old emails from a sender that you want to organize all at once.
How to change or delete a filter
Filters are not permanent. If you change your mind or need to adjust a rule, you can edit or remove it anytime. Click the gear icon in the top right corner of Gmail, then click "See all settings". Go to the "Filters and Blocked Addresses" tab.
You see a list of every filter you have created. Click "Edit" next to the filter you want to change, adjust the rule or the action, and click "Update filter". If you want to remove a filter entirely, click "Delete" instead.
Common filter mistakes and how to avoid them
The most common mistake is making a filter too broad. For example, if you filter for the word "invoice" in the subject line, you might accidentally filter invoices from multiple senders that you actually need to see. Test your filter by looking at the preview before you confirm it — Gmail shows you exactly which emails would be affected.
Another mistake is forgetting that filters only work on new mail by default. If you have old emails you want to organize, remember to check the "Also explore filter to matching conversations" box when you create the filter, or those old messages will not be touched.
Finally, be careful with the "Delete" action. Deleted emails go to trash, where they stay for 30 days before Gmail removes them permanently. If you are not sure you want to delete something automatically, use "Skip the inbox" instead — that way the messages are archived and searchable, but out of your way.
Frequently Asked Questions
Can I create a filter that catches emails from multiple senders at once?
Not in a single filter. You have to create a separate filter for each sender. However, you can create filters for broader patterns — for example, filtering all emails where the subject line contains a certain word, which might catch messages from many different people.
What happens if two filters explore to the same email?
Gmail applies both filters. If one filter labels a message and another archives it, the message gets both the label and gets archived. The order does not matter — all matching filters run on the same message.
Can I pause a filter without deleting it?
Gmail does not have a pause feature. You have to delete the filter to stop it from running, but you can recreate it later if you need it again. Write down the details of any filter you think you might want back.
Do filters work on emails I receive in other Gmail accounts?
No. Filters only work on the Gmail account where you created them. If you have multiple Gmail accounts, you have to set up the same filters in each account separately.
Can I filter emails based on attachments?
Yes. In the search box, type "has:attachment" to filter for any email with a file attached. You can combine this with other filters — for example, filtering for emails from a specific sender that also have attachments.