Gmail Filters - Step-by-Step Setup, Examples and Limits (2026)

By the Inbox Sorted Editorial Team · Updated December 2026

Gmail filters are rules that act on incoming email automatically. You set the conditions, such as sender, subject or words, and the action, such as apply a label, skip the inbox, mark as read or delete. Once set up, they run on new mail without you lifting a finger.

On This Page
  1. How to Create a Gmail Filter
  2. What Gmail Filters Can Do
  3. Useful Gmail Filter Examples
  4. Managing Your Filters
  5. Troubleshooting Gmail Filters
  6. Limits of Gmail Filters
  7. Filters vs a Learning Filter
  8. Gmail Filters FAQ

How to Create a Gmail Filter

Funnel illustration representing Gmail filters
  1. Open Gmail on a computer. Filters can't be created in the mobile app.

  2. Click the search options icon at the right of the search bar.

  3. Enter your criteria: From, To, Subject, Has the words, Doesn't have, size or attachment.

  4. Click Create filter.

  5. Choose actions, such as Skip the Inbox, Apply the label or Delete it.

  6. Tick "Also apply filter to matching conversations" if you want it to act on existing mail too.

  7. Click Create filter.

From an Existing Email

Tick the checkbox next to an email, click More (three dots) and choose Filter messages like these. Gmail fills in the sender for you.

Filter Criteria Explained

Gmail Filter Criteria Fields
Field What It Matches Tip
From Sender address or domain Use @domain.com to catch every sender at a company
To Recipient address Useful for aliases like [email protected]
Subject Words in the subject line Put phrases in quotes
Has the words Words anywhere in the message Accepts search operators like list: or OR
Doesn't have Words to exclude Prevents a filter catching too much
Size Larger or smaller than a size Good for attachment-heavy mail
Has attachment Any attachment Combine with From for client files

The Has the words field is the most powerful, because it accepts nearly any search operator. That means anything you can search for, you can filter.

What Gmail Filters Can Do

Gmail Filter Actions
Action Useful For
Skip the Inbox (Archive it) Newsletters and notifications you read later
Mark as read FYI mail you don't need to open
Star it Messages from VIPs
Apply the label Sorting into projects, clients or receipts
Forward it Sending copies to another address (new mail only)
Delete it Unwanted senders
Never send it to Spam Trusted senders that get misfiled
Always or never mark as important Tuning Priority Inbox
Categorize as Moving mail into a specific tab

Filters for Existing Mail

When you tick Also apply filter to matching conversations, Gmail runs the filter once over mail you already have, as well as on new arrivals. This is a fast way to tidy up: a filter that labels all mail from a client also organizes years of past conversations in one click. Forwarding actions are the exception: they only apply to new messages.

Useful Gmail Filter Examples

Receipts to a Label

Has the words: receipt OR invoice OR "order confirmation". Apply label "Receipts," Skip the Inbox.

Newsletters Out of the Inbox

Has the words: unsubscribe. Apply label "Reading," Skip the Inbox. Check it catches what you expect.

VIPs Always Important

From: your manager's address. Star it, Always mark as important, Never send to Spam.

Delete a Persistent Sender

From: @spammy-store.com. Delete it.

See Gmail search operators for more powerful criteria, like list: for mailing lists or larger: for size.

More Filter Recipes

Calendar Replies Out of the Inbox

Has the words: filename:ics or "Accepted:" in the subject. Skip the Inbox, apply "Calendar."

Alias-Based Sorting

To: [email protected]. Apply label "Shopping," Skip the Inbox.

Big Attachments Flagged

Size greater than 10 MB. Apply label "Large," so you can clean them up later.

Team Mail Starred

From: @yourcompany.com, Doesn't have: "newsletter". Star it.

Testing a Filter Before You Trust It

  1. Enter your criteria in the search options panel.

  2. Click Search instead of Create filter, and review the results.

  3. Refine with Doesn't have or quotes until only the right mail appears.

  4. Then create the filter, and tick "Also apply filter to matching conversations" if you want it to clean up existing mail.

Testing takes a minute and prevents the classic mistake of a filter that quietly archives mail you needed.

Managing Your Filters

  • Edit or delete: Settings > See all settings > Filters and Blocked Addresses.
  • Export and import: select filters and click Export to save them as a file, or Import filters to load them into another account.
  • Review yearly: old filters can quietly hide mail you now care about.

Troubleshooting Gmail Filters

Common Filter Problems
Problem Likely Cause Fix
Filter does nothing Criteria don't match the real sender address Open a message, check the exact From address and edit the filter
Filter catches too much Criteria too broad Add words to Doesn't have or use quotes
Old mail not affected Filter applies to new mail only Edit it and tick "Also apply filter to matching conversations"
Mail still lands in Spam Gmail's spam filter acted first Add "Never send it to Spam" to the filter
Two filters conflict Several filters match the same mail Simplify; Gmail applies all matching filters

If a filter misbehaves badly, delete it and recreate it from a fresh search. It's often quicker than debugging.

How Many Filters Is Too Many?

There's no hard rule, but if you have dozens, you'll eventually forget what each does. A practical ceiling is the number you can review in five minutes. Group similar senders into one filter using OR or curly braces, and delete filters for senders that no longer email you.

Filters That Protect Important Mail

Filters aren't only for clearing clutter. Some of the most useful ones keep important mail visible:

  • Never send it to Spam for clients, schools, banks and anyone whose mail has been misfiled before.
  • Always mark it as important for your manager or top customers, so Priority Inbox and notifications catch them.
  • Categorize as Primary for senders that keep landing in Promotions or Updates.

These take seconds to set up and prevent the classic problem of important mail sitting unseen in spam.

Limits of Gmail Filters

Filters are powerful but have real limits:

  • They act on arrival. A filter won't re-check mail as it ages, so "delete after 30 days" isn't possible natively.
  • They only know what you tell them. New senders aren't handled until you add a rule.
  • They grow complicated. Dozens of filters become hard to maintain and debug.
  • They're Gmail-only. If you use other accounts too, you maintain separate rules elsewhere.
  • Desktop setup only. You can't create filters in the Gmail app.

Filters and Gmail Tabs

Filters can override Gmail's tab sorting with Categorize as. If newsletters you love keep landing in Promotions, a filter that categorizes them as Primary (or Updates) fixes it for good. Filters run before mail appears, so the category you set is the one you'll see. See Gmail categories and tabs.

Filters vs a Learning Filter

Comparison illustration representing Gmail filters versus SaneBox

For specific, predictable routing, Gmail filters are excellent and free. For the general problem of keeping unimportant mail out of your inbox, a learning filter is far less work. SaneBox decides importance from your behavior, handles new senders automatically and works alongside your existing filters. Many people keep a few precise Gmail filters and let SaneBox handle the rest. See SaneBox vs Gmail filters.

Sort Gmail Without Writing Rules

SaneBox learns which emails matter and sorts the rest automatically. Try it free.

Try SaneBox Free

Gmail Filters FAQ

How do I create a filter in Gmail?

On a computer, click the search options icon, enter your criteria, click Create filter, choose actions and click Create filter again.

Can I create Gmail filters on my phone?

No. Filters must be created in Gmail on a computer, though they apply to mail you see on your phone.

Do Gmail filters work on existing emails?

Only if you tick "Also apply filter to matching conversations" when creating it. Forwarding filters only apply to new mail.

How many filters can I have in Gmail?

Gmail allows many filters, but large numbers get hard to maintain. Keep them focused on specific needs.

Why isn't my Gmail filter working?

Usually the criteria don't match the real sender address or subject. Check an example message, edit the filter and test it with Search before saving.

Can I export Gmail filters to another account?

Yes. In Filters and Blocked Addresses, select filters, click Export to save a file and use Import filters in the other account.

Do Gmail filters work on the mobile app?

Yes. Filters run on Google's servers, so they act on mail no matter which device or app you use, even though you create them on a computer.