Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Set Up Email Filters in Gmail

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can set up email filters in Gmail to automatically sort, label, archive, delete, or forward incoming messages. Filters work by matching criteria you define (like sender, subject, or keywords) and then applying an action automatically. You can create them from scratch or from an existing email. Here’s exactly how to do it, step by step.

What You'll Need

  • A Gmail account (free or Google Workspace).
  • Access to Gmail on a web browser (desktop instructions below; mobile app steps are limited but you can manage filters from the browser on your phone).

Step-by-Step

  1. Open Gmail in a web browser. Go to mail.google.com and sign in if needed.
  2. Click the gear icon (top right) and select “See all settings.” Note: menu labels can vary slightly by version, but this is the standard path.
  3. Go to the “Filters and Blocked Addresses” tab. This is usually the third tab from the left.
  4. Click “Create a new filter.” A small form will appear.
  5. Define your filter criteria. Fill in any of the fields:
    • From: the sender’s email address or part of it (e.g., newsletter@example.com or @example.com).
    • To: the recipient address (useful if you have multiple aliases).
    • Subject: words that appear in the subject line.
    • Has the words: keywords in the body or subject (use quotes for exact phrases).
    • Doesn’t have: words to exclude.
    • Size: larger or smaller than a certain size (e.g., “larger than 5MB”).
    • Search: you can also use advanced search operators like from: or has:attachment.
  6. Click “Create filter.” This will show you the action options.
  7. Choose what to do with matching emails. You can select one or more actions:
    • Skip the Inbox (Archive it): sends messages straight to All Mail, bypassing the Inbox.
    • Mark as read: automatically marks them as read.
    • Star it: adds a star.
    • Apply a label: choose an existing label or create a new one.
    • Forward it to: send a copy to another email address (requires verification if it’s a new forwarding address).
    • Delete it: sends to Trash (be careful – this is irreversible after 30 days).
    • Never send it to Spam: prevents Gmail from marking it as spam.
    • Send template: applies a canned response (if you have templates enabled).
    • Also apply filter to matching conversations: if you check this, it will apply to existing emails that match, not just new ones.
  8. Click “Create filter” again to save. Your filter is now active.

Alternative method from an email: Open any email, click the three-dot menu (More) at the top right, select “Filter messages like these,” and Gmail will pre-fill the sender. Then follow steps 5–8.

Common Mistakes

  • Too broad criteria: Using just a common word like “news” in “Has the words” may catch unrelated emails. Use specific sender addresses or quoted phrases.
  • Not checking “Also apply filter to matching conversations”: If you want to clean up existing emails, you must check this box during creation. Otherwise, only new emails are affected.
  • Deleting without reviewing: The “Delete it” action is permanent after 30 days. Use “Archive” or “Mark as read” first if you’re unsure.
  • Creating duplicate filters: Multiple filters that overlap can cause emails to get multiple labels or actions. Check existing filters before adding new ones.
  • Forgetting to test: After creating a filter, send yourself a test email that matches the criteria to verify it works as expected.

Tips

  • Use labels for organization: Instead of just archiving, create a label like “Newsletters” and apply it. Then you can find those emails easily later.
  • Combine filters with stars: For important senders, you can star and label them so they stand out.
  • Use “Never send it to Spam” for trusted senders whose emails sometimes land in spam.
  • Manage filters easily: In Settings > Filters, you can edit, delete, or export filters. You can also reorder them (the order matters if multiple filters match).
  • Create a filter from a search: Use the search bar at the top to test your criteria first (e.g., from:newsletter@example.com has:attachment). If the results look right, click “Create filter” in the search dropdown.

Troubleshooting

Filter not working? First, check that you’re looking at the right inbox. If you chose “Skip the Inbox,” the emails won’t appear there – check “All Mail” (left sidebar). Also confirm that the filter is enabled (it should be by default) and that the criteria are correct. Try creating a test email with the exact sender and subject to see if it triggers.

Emails still going to Spam? If you set “Never send it to Spam,” but emails still land in Spam, the filter may not be applied because Gmail’s spam detection runs before filters. In that case, open the email, click “Report not spam” to train Gmail, and consider adding the sender to your contacts.

Filter applied to old emails but not new ones? This can happen if you edited the filter after creation. When you edit a filter, the “Also apply filter to matching conversations” option is unchecked by default. You’ll need to re-check it and save again to apply to existing emails.

Forwarding not working? If you set up forwarding, Gmail will send a verification email to the destination address. You must click the link in that email to activate forwarding. Also, check that you haven’t exceeded the forwarding limit (Gmail allows up to 20 forwarding addresses, but each email can only be forwarded once).

Filter not showing in the list? Make sure you’re in the “Filters and Blocked Addresses” tab, not “General.” If you just created it, it should appear at the top. If not, refresh the page.

Multiple filters conflicting? If you have overlapping filters, Gmail applies all of them. For example, one filter archives and another deletes – the email will be deleted because delete takes precedence. Review your filters and remove or adjust any that conflict.

Frequently Asked Questions

Can I set up email filters on the Gmail mobile app?

No, the Gmail app for Android and iOS does not allow you to create filters directly. You must use a web browser (desktop or mobile) to create filters. However, filters you create on the web will work on the app.

Can I filter emails from multiple senders at once?

Yes, you can use the “From” field with multiple addresses separated by OR (e.g., sender1@example.com OR sender2@example.com). You can also use a domain like @example.com to match all senders from that domain.

How do I stop a filter from applying?

Go to Settings > Filters and Blocked Addresses, find the filter, and click “Disable” (or “Delete” to remove it entirely). Disabling keeps the filter but stops it from acting on new emails.

Can I use filters to automatically reply to emails?

Yes, you can use the “Send template” action to automatically reply with a canned response. You’ll need to enable templates in Settings > Advanced, and create a template first. Note that this only works for emails that match the filter criteria.

Will filters work for emails sent to my Google Workspace account?

Yes, filters work the same way for personal Gmail and Google Workspace accounts. However, some administrators may restrict certain actions like forwarding to external addresses. If forwarding isn’t working, check with your admin.

Can I export or import filters?

Yes, in Settings > Filters, you can click “Export” to download a .xml file of your filters. To import, click “Import” and upload that file. This is useful for backing up or transferring filters to another account.