Gmail filters sort your mail without you touching it
Gmail's filter feature moves incoming emails to a folder automatically based on rules you set — like sender, subject line, or keywords. Once you create a filter, every email matching that rule goes straight to the folder you choose, keeping your inbox focused on what matters to you.
The filter runs on new mail only, not emails already in your inbox. If you want to organize existing messages, you'll need to move those separately. But from the moment you activate a filter, it works in the background every time mail arrives.
Key Takeaways
- Open an email from the sender or search for the emails you want to filter, then click the three-dot menu and select "Create filter".
- Set your filter criteria — who it's from, what the subject contains, or what words appear in the body — then click "Create filter".
- Choose "Skip the inbox" to send matching emails straight to a folder, or pick a specific folder from the "Apply the label" dropdown.
- Gmail applies new filters only to incoming mail, so use the search box and manual move for emails already in your inbox.
- You can edit or delete filters anytime by going to Settings > Filters and Blocked Addresses, then clicking "Edit" or the trash icon.
Creating a filter from an email you already have
The fastest way to set up a filter is to start with an actual email. Open any message from a sender you want to filter, or search for emails with a word or phrase you want to organize. Click the three-dot menu icon in the top right of the email, then select "Create filter".
Gmail will pre-fill the filter criteria based on what you opened — usually the sender's address. You can add more conditions: click in the "Subject contains" field to filter by subject line, or "Has the words" to filter by content anywhere in the email. Leave fields blank if you don't need them. When your criteria are set, click "Create filter" at the bottom right.
Choosing where filtered emails go
After you click "Create filter", a second screen appears asking what to do with matching emails. Check the box next to "Skip the inbox" if you want them out of your inbox entirely. Then, in the "Apply the label" section, click the dropdown menu to pick a folder.
If the folder doesn't exist yet, type its name and Gmail will create it. You can also check "Archive" to send emails straight to your All Mail folder instead of a labeled folder. Most people use "Skip the inbox" plus a label together — that way the email is both out of sight and organized in a specific place you can find it later.
Setting up filters by subject line or keywords
If you want to filter emails by what they're about rather than who sent them, use the search box at the top of Gmail. Type the subject line or keyword you're looking for — for example, "receipt" or "newsletter" — then press Enter. Click the checkbox at the top to select all matching emails on the current page.
Open the three-dot menu above the email list and select "Create filter". The search terms you used will appear in the "Has the words" field. Review them, add any other conditions you need, then click "Create filter". From that point on, every email containing those words will move to the folder you choose.
Organizing emails from multiple senders into one folder
You can create a single filter that catches emails from several senders at once. Open Settings by clicking the gear icon in the top right, then select "See all settings". Go to the "Filters and Blocked Addresses" tab and click "Create a new filter".
In the "From" field, type the first email address, then add the others using the format: sender1@example.com OR sender2@example.com OR sender3@example.com. Gmail treats the OR operator as "any of these senders". Set the rest of your filter criteria, click "Create filter", then choose your destination folder. This works for any field — you can combine multiple senders, subjects, or keywords in a single filter.
Moving existing emails to a folder before setting up a filter
Filters only affect new mail arriving after you create them. To organize emails already in your inbox, search for them first. Use the search box and type the sender, subject, or keyword. When the results appear, click the checkbox at the top to select all matching emails on the current page.
If you have more than one page of results, click the link that says "Select all conversations that match this search" — this selects every matching email, not just the ones visible on screen. Then open the three-dot menu and click "Move to" or the folder icon, and pick your destination. Once you've moved the old emails, create a filter so future ones go there automatically.
Editing or removing a filter you've already created
To change a filter later, click the gear icon in the top right and select "See all settings". Go to "Filters and Blocked Addresses". You'll see a list of all your active filters with the criteria each one uses. Find the filter you want to change and click "Edit".
Make your changes — add a new condition, remove one, or pick a different folder — then click "Update filter". To delete a filter entirely, click the trash icon next to it. Gmail will stop applying that filter to new mail immediately, but emails already moved by that filter stay in their folder.
Frequently Asked Questions
Can I create a filter that moves emails to a folder only if they're from a certain sender AND contain a specific word?
Yes. When you create a filter, fill in both the "From" field with the sender's address and the "Has the words" field with your keyword. Gmail applies all the conditions you set — the email must match every one to trigger the filter. Leave any fields blank that you don't need.
What's the difference between "Skip the inbox" and "Archive"?
"Skip the inbox" removes the email from your inbox and applies a label (folder) you choose, so you can find it later in that specific folder. "Archive" moves it to All Mail without a label, which is useful if you just want it out of sight but don't need to organize it. You can use both at once — skip the inbox and apply a label.
Do filters work on emails I already received before I created the filter?
No. Filters only apply to new emails arriving after you create them. To move old emails, search for them in the search box, select all results, and manually move them to your folder. Then create the filter so future emails go there automatically.
Can I filter emails based on attachments?
Gmail's standard filter doesn't have an "has attachment" option, but you can search for emails with attachments using the search box. Type "has:attachment" to find all emails with files, then narrow it down by adding the sender or subject. You can then move those results manually or create a filter based on other criteria those emails share.
What happens if an email matches more than one filter?
Gmail applies all matching filters to the same email. If one filter moves it to Folder A and another applies a label from Folder B, the email ends up in both places. If you want only one filter to apply, edit the filters to make their criteria more specific so they don't overlap.