How to Create Filters and Auto-Labels in Gmail (2026 Tutorial)

Gmail filters automate the boring 20% of email work, sorting, labeling, archiving, forwarding so you can focus on the 80% that needs your judgment.

This 2026 guide covers the full filter system: how to create them, the most useful templates to copy, how to chain filters together, and the rare cases where filters cause problems.

Gmail filter creation dialog with sender, subject, and action options

What Gmail filters can do

For every incoming email matching your conditions, a filter can:

  • Skip the inbox (archive immediately)
  • Mark as read
  • Star
  • Apply one or more labels
  • Forward to another address
  • Delete (send to Trash)
  • Never send to Spam (whitelist sender)
  • Always mark as important
  • Categorize (Promotions, Social, Updates, Forums)

Method 1: Create a filter from an existing email (easiest)

  1. Open any email that matches what you want to filter (for example, a newsletter from a specific sender).
  2. Click the three-dot menu in the email toolbar (next to the time stamp).
  3. Click “Filter messages like this.”
  4. Gmail opens the filter creator with the sender already filled in.
  5. Adjust conditions (add subject keywords, has attachment, size, etc.) if needed.
  6. Click “Create filter” (bottom of the dialog).
  7. Choose actions: Skip inbox, Apply label, Mark as read, etc. Check multiple if needed.
  8. Optionally check “Also apply filter to N matching conversations” to retroactively sort old emails.
  9. Click “Create filter.”

Method 2: Create a filter from scratch (more control)

  1. Open Gmail > gear icon > See all settings > “Filters and Blocked Addresses” tab.
  2. Click “Create a new filter.”
  3. Fill in conditions (any combination):
    • From: specific sender or domain (use @domain.com for whole domain)
    • To: specific recipient (useful if you have aliases)
    • Subject: keywords in subject line
    • Has the words: body content keywords (supports operators like OR, AND, parentheses)
    • Doesn’t have: exclude emails containing these words
    • Size: greater than X MB
    • Has attachment: checkbox
    • Don’t include chats: checkbox
  4. Click “Search” to preview matching emails before saving.
  5. Click “Create filter” to set actions.
  6. Pick actions and save.

10 most useful filter templates to copy

#ConditionsActions
1From: receipts@*, *invoice* in subjectApply label “Receipts”, skip inbox
2From: noreply@*, no-reply@*, donotreply@*Apply label “Automated”, skip inbox, mark as read
3From: @linkedin.com OR @facebook.com OR @x.comApply label “Social”, skip inbox
4From: @[your-boss-domain].comStar, mark important, never spam
5Subject contains “unsubscribe” OR “newsletter”Apply label “Newsletters”, skip inbox
6Has attachment, size > 10 MBApply label “Large Attachments” (helps with Drive cleanup)
7To: [email protected]Apply label “Project X”, skip inbox
8From: @capstone-team-member.comApply label “Capstone Team”, star
9Subject contains “URGENT” OR “ASAP”Apply label “Priority”, mark important, star
10From: @amazon.com OR @shopee.com OR @lazada.com.phApply label “Shopping”, skip inbox

Create a label first (or use a nested label)

Filters can apply existing labels or create new ones on the fly. To prepare labels in advance:

  1. Open Settings > Labels tab.
  2. Scroll to “Labels” section > click “Create new label.”
  3. Type label name. Use a forward slash for nesting: Work/Capstone creates Work as parent, Capstone as child.
  4. Optionally pick a color: hover over the label in the sidebar > click the 3-dot menu > Label color.

Color-coded labels make the inbox scannable: green for personal, red for urgent client, yellow for capstone team, blue for newsletters.

Chain filters: multi-step automation

Gmail processes filters in the order they were created. To chain logic (e.g., “label as Newsletter, then if also from boss, mark important”):

  1. Create filter A: From boss domain, Mark important.
  2. Create filter B: Subject contains “newsletter,” Apply label Newsletters, Skip inbox.
  3. When boss sends a newsletter, both filters match. Boss-domain filter runs first because created first, so the email IS marked important AND labeled Newsletters AND skips inbox.

To re-order filters: open Settings > Filters tab, you cannot drag-reorder, but you can delete and re-create in the order you want.

Filter exports and imports (backup or migration)

Export all your filters to share with team or back up before testing changes:

  1. Settings > Filters and Blocked Addresses.
  2. Scroll to bottom > “Export” all filters or “Select all” then “Export.”
  3. A .xml file downloads.
  4. To import on another account: same page > “Import filters” > choose the .xml file > “Open file” > review and “Create filters.”

This is the fastest way to set up filters on a new Gmail account or to share a filter set with team members.

Common filter mistakes

  • “Skip the Inbox” + no label = lost emails: always pair Skip Inbox with at least one label, otherwise emails go to All Mail and you may never find them.
  • Overly broad From: filters: filtering on @gmail.com will hit personal friends, not just spam. Always test with “Search” before saving.
  • Forwarding rules created by attackers: if a hacker briefly had access, they may have set up a forwarding rule. Check Settings > Forwarding and POP/IMAP regularly for any forwarding address you do not recognize.
  • Conflicting actions: if filter A says Star and filter B says Delete, the email ends up in Trash (delete wins). Test edge cases.
Quick step-by-step summary (click to expand)
  1. Open Gmail Settings. Click the gear icon in the top-right of Gmail, then click “See all settings”.
  2. Go to the Filters and Blocked Addresses tab. Click the “Filters and Blocked Addresses” tab at the top of the settings page.
  3. Click Create a new filter. Scroll to the bottom and click “Create a new filter” to open the criteria form.
  4. Enter your filter criteria. Fill in sender, subject, keywords, or attachment rules. Then click “Create filter” to move to the action step.
  5. Choose actions and save. Pick actions: apply a label, archive, mark as read, forward, or delete. Click “Create filter” to save.

Frequently Asked Questions

What is the difference between a Gmail filter and a label?

A label is a tag you put on emails to organize them (like a folder, but emails can have multiple labels). A filter is an automated rule that does things (apply labels, skip inbox, mark read) when incoming emails match conditions. Filters create the automation; labels are the buckets.

How many Gmail filters can I have?

Gmail does not publish a hard limit. Practical experience: 200-500 filters work fine. Past 500, the Filters page becomes slow to load, and very complex filters with many OR conditions can occasionally miss matches under heavy account load.

Do Gmail filters apply to existing emails or only new ones?

By default, only new incoming emails. When you create a filter, Gmail offers a checkbox “Also apply filter to N matching conversations” to retroactively sort existing emails. Check this to clean up old inboxes; uncheck if you only want forward-looking automation.

Can a Gmail filter forward emails to another address?

Yes, but the destination address must first be verified. Add it under Settings > Forwarding and POP/IMAP > “Add a forwarding address.” Google sends a confirmation code to that address; once confirmed, it appears in the filter action dropdown as “Forward to.” For security, audit the Forwarding tab regularly for addresses you did not add.

How do I find filters that are no longer matching anything?

Open Settings > Filters tab. Each filter shows the conditions (From, Subject, etc.). Click the matching search query in Gmail search bar to see which emails it currently catches. Filters that return zero results are usually safe to delete, especially old ones tied to senders who no longer email you.

Do Gmail filters sync to mobile?

Yes. Filters run on Google’s servers, so they apply equally whether you check Gmail on desktop, iPhone, Android, or even POP/IMAP clients. There is no separate mobile filter set; what you configure on desktop affects every device that uses the account.

Caren Bautista

Technical Writer at PIES IT Solution

Responsible for crafting clear, well-structured, and beginner-friendly content across the platform. Handles the writing, proofreading, and editorial review of tutorials, guides, and documentation to ensure every article is accurate, readable, and easy to follow.

Expertise: Technical Writing · Content Creation · Documentation · Editorial Writing · JavaScript · TypeScript · Python · Python Errors · HTTP Errors · MS Excel  · View all posts by Caren Bautista →

Leave a Comment