Gmail filters automatically sort, label, and organize your incoming mail based on rules you create

A Gmail filter is a set of instructions that tells Gmail what to do with emails matching certain criteria — like emails from a specific sender, with certain words in the subject line, or from a particular domain. Once you create a filter, Gmail applies it automatically to all new incoming mail that matches those conditions. You can have Gmail skip the inbox, add a label, star the message, mark it as read, or send it to trash.

The most common use is routing emails into labeled folders so your inbox stays focused on what matters. For example, you might filter all emails from your bank into a "Finance" label, or send promotional emails directly to a "Promotions" label without cluttering your main view.

Key Takeaways

  • Filters are created from the search box at the top of Gmail by searching for the criteria you want, then clicking "Create filter" from the search results menu.
  • You can filter by sender address, recipient, subject line keywords, words in the message body, size, date, and whether the email has an attachment.
  • One filter can apply multiple actions at once — for example, add a label AND skip the inbox AND mark as read in a single rule.
  • Filters only affect new emails going forward; to organize existing mail, you must search for matching messages and apply the filter retroactively.

How to create a filter using the search box

Open Gmail and click the search box at the top. Type the criteria you want to filter by — this might be a sender's email address (like sender@example.com), a word in the subject line, or any other detail. For example, if you want to filter emails from your manager, type their email address in the search box.

Press Enter or click the search icon. Gmail shows you all emails matching that search. Now look for the small downward arrow or three-dot menu icon next to the search box results. Click it and select Create filter. A dialog box opens showing the criteria you searched for — you can refine it here if needed, then click Create filter again to proceed to the action step.

Choosing what Gmail does with filtered emails

After you click Create filter, a second dialog appears with checkboxes for actions. You can choose one or more of these: Skip the Inbox (the email bypasses your inbox and goes straight to the label you choose), Apply label (assigns a label to the email), Mark as read (the email arrives marked as already read), Star it (adds a star to flag the message), Auto-reply (sends an automatic response), or Delete it (sends the email to trash).

Most people combine "Skip the Inbox" with "Apply label" — this way, emails matching your filter go directly to a specific label folder instead of cluttering your main inbox. For instance, you might filter all emails from a mailing list to skip the inbox and apply a "Mailing Lists" label at the same time.

Check the box for each action you want, then click Create filter at the bottom. Gmail saves the filter and begins applying it to all new incoming mail that matches your criteria.

Filtering by sender, subject, or other specific details

The search box accepts several types of criteria. Type from:email@example.com to filter all emails from a specific sender. Use subject:keywords to filter emails with certain words in the subject line — for example, subject:invoice catches all emails with "invoice" in the subject. You can also search by to:your.email@gmail.com if you want to filter emails sent to a specific address you own.

Other useful search operators include has:attachment (emails with files attached), size:larger_than:5M (emails bigger than 5 megabytes), and before:2024/01/01 or after:2024/01/01 (emails from a specific date range). You can combine multiple criteria in one search — for example, from:sender@example.com subject:urgent filters emails from that sender that also have "urgent" in the subject line.

Applying filters to emails you already have

Filters only work on new emails arriving after you create them. If you want to organize emails that are already in your inbox, search for them first using the same criteria, then apply the filter retroactively. Search for the emails (for example, type the sender's address or subject keywords), and Gmail displays all matching messages. Click the checkbox at the top left to select all results, then look for the three-dot menu icon and choose Apply label or another action.

This manual step catches up your existing mail. After that, the filter you created continues to organize all new incoming emails automatically.

Managing and editing your filters

To see all your filters, click the gear icon in the top right corner of Gmail, select See all settings, then click the Filters and Blocked Addresses tab. Here you can view every filter you have created, edit them, or delete them. Click Edit next to any filter to change the criteria or actions — for example, if you want to add a second label or change which label the filter uses.

If a filter is not working the way you expected, check that the criteria match what you intended. A common mistake is filtering by a partial email address when you meant to filter by the full address, or vice versa. You can also create multiple filters for the same sender with different actions — Gmail applies all matching filters to each email.

Common filter setups that save time

Many people filter promotional emails from retailers, newsletters, and social media notifications into a single "Promotions" label so they do not clutter the main inbox. Another popular setup is filtering all emails from a specific project or client into a labeled folder — this keeps work organized by context rather than by sender.

Some users filter emails with certain keywords (like "receipt" or "confirmation") into an "Receipts" label, or filter emails from their bank and credit card companies into a "Finance" label. You can also filter emails you send to yourself (using to:your.email@gmail.com) into a separate label if you use email as a task or note-taking system.

Frequently Asked Questions

Can I filter emails based on multiple senders at once?

Yes. In the search box, use the format from:(sender1@example.com OR sender2@example.com) to filter emails from multiple addresses with a single filter. Gmail applies the same actions to all emails matching any of those senders.

What happens if two filters match the same email?

Gmail applies all matching filters to the email. If one filter adds a label and another marks it as read, both actions happen. If two filters try to apply different labels, both labels are added to the email.

Can I undo a filter I created by mistake?

Yes. Go to Settings > Filters and Blocked Addresses, find the filter in the list, and click the delete icon (trash can) next to it. The filter stops applying to new emails immediately. Emails that were already sorted by that filter keep their labels or actions — deleting the filter does not undo past actions.

Do filters work on emails in other Gmail folders like Sent or Drafts?

No. Filters only apply to incoming emails in your inbox and other received mail. They do not affect emails you have sent or saved as drafts.

Can I filter emails by how old they are?

Yes, using the date operators before: and after: in the search box. For example, before:2024/01/01 finds all emails received before January 1, 2024. You can use this to filter and organize old emails, though the filter itself applies to new mail going forward based on the date it arrives.