To create rules in Gmail, set up a filter: choose the messages it should match, then tell Gmail what to do with them, such as label, archive, star, delete, or forward them. Gmail filters work much like Outlook rules for incoming mail, though Gmail uses labels rather than traditional folders and does not support every Outlook rule feature. You will need a Gmail account and a web browser; the desktop Gmail site has the clearest controls.
What You’ll Need
- A Gmail account, preferably opened at mail.google.com in a desktop browser. Gmail’s mobile apps can handle many mail actions, but the full filter creation and editing controls are easiest to access on the website.
- A clear idea of which messages the rule should catch. For example, decide whether to match a sender, recipient, subject phrase, or a combination of these.
- If the filter should apply a label, create that label first or be ready to create it while setting up the filter. Labels are Gmail’s closest equivalent to Outlook folders.
- If you want Gmail to forward matching messages, the forwarding address must be added and verified in Gmail settings beforehand.
Step-by-Step
- Open Gmail on the web. Sign in to the account where you want the rule. If you manage more than one Google account, check the profile icon at the top right before proceeding. Filters are account-specific, so a rule created in one account will not affect another.
- Open the advanced search options. Click the show search options icon at the right end of the Gmail search box. It looks like adjustment controls or a small set of sliders. A form opens with fields for details such as From, To, Subject, Has the words, Doesn’t have, and Has attachment. You can also start a filter from a message: open it, choose the three-dot More menu, and select Filter messages like this. That fills in a sender condition for you.
- Enter the conditions that identify the messages. Put a sender’s address in From, a recipient in To, or a distinctive phrase in Subject. Use Has the words for terms that can appear elsewhere in the message, and Doesn’t have to exclude messages containing specific words. You can combine fields: for instance, set From to
reports@example.comand Subject toWeekly summaryto match messages from that address whose subject contains that phrase. Avoid overly broad terms such as “update” if you only want one type of email. - Test the search before making a filter. Click Search to see which existing messages match the conditions. Look through the results and check both that the messages you want are included and that unrelated mail is not. If the results are wrong, return to the search options and adjust the conditions. Gmail search supports operators too; for example, a query can use
from:reports@example.com subject:summary. Search operators are useful for precision, but the form fields are often easier to review. - Turn the search into a filter. Once the search criteria are right, open the search options again if needed and click Create filter. Do not click Search a second time expecting it to create the rule: Search only displays matching mail. Gmail will show a separate screen of actions to perform whenever a future message matches your conditions.
- Choose what Gmail should do with matching mail. Select one or more actions. Choose Apply the label to organize mail while keeping it in the inbox, or choose Skip the Inbox (Archive it) to keep it out of the inbox while retaining it in All Mail. Other available actions include marking mail as read, starring it, deleting it, forwarding it, marking it as important, or assigning it to a category. You can combine actions, such as applying a label and starring the message.
- Select whether to handle messages that already match. Check Also apply filter to matching conversations if you want the chosen actions applied to conversations already in your account. Leave it unchecked if the filter should affect only new incoming mail. This option may be useful when organizing an existing backlog, but take a moment to inspect the search results first—an overly broad filter can change many conversations at once.
- Create and verify the filter. Click Create filter at the bottom of the actions screen. Send yourself a test message that meets the conditions, or wait for the next expected message. Then confirm the result: check the label, inbox, star, or other action you selected. If it does not behave as expected, adjust or remove the filter rather than creating several overlapping versions.
For a simple Outlook-style filing rule, a typical setup is: match a known sender, apply a label such as “Invoices,” and select Skip the Inbox if you want the messages archived automatically. If you still want new invoices to appear in the inbox, apply the label without skipping the inbox. That distinction is important: applying a label organizes a message but does not, by itself, remove it from the inbox.
Common Mistakes
- Thinking a label is the same as moving a message to a folder. Gmail labels can be applied to messages that remain in the inbox. To make the result behave more like Outlook’s move-to-folder action, apply a label and select Skip the Inbox. The message will remain searchable and available under All Mail.
- Using a condition that is too general. A filter based only on a common word in the message body can catch newsletters, replies, or unrelated notifications. Search the condition first and inspect the results before creating the filter.
- Forgetting the existing-mail option. A filter normally controls future incoming messages. If you expect it to organize messages already received, select Also apply filter to matching conversations. Conversely, leave that option off when you do not want old conversations changed.
- Assuming the filter will rescue mail already classified as spam. Filters are intended for incoming mail and are not a dependable way to process messages Gmail has already sent to Spam. Check Spam separately, and do not make a broad Never send it to Spam filter unless you trust the sender and understand the risk.
- Creating a forwarding filter before verifying the address. Gmail requires forwarding addresses to be confirmed. Add and verify the address in settings first, then choose it in the filter actions. If the address is not available in the action list, finish the verification process.
- Expecting an exact copy of every Outlook rule option. Gmail’s conditions and actions differ from Outlook’s, and some Outlook-specific features—particularly rules based on client-only actions or complex message states—do not have a direct Gmail equivalent. Recreate the useful outcome with Gmail’s available search criteria and actions instead.
Tips
- Use a consistent label system. Choose short, recognizable names such as “Bills,” “Travel,” or “Team updates.” Gmail lets you nest labels, but a simple set is easier to scan. Color can help distinguish frequently used labels in the sidebar.
- Keep conditions specific and readable. A sender address plus a subject phrase is often safer than a broad keyword alone. If a company sends several kinds of email from the same address, use a subject or message term to narrow the match.
- Separate organizing from prioritizing. One filter can label and star mail together, but consider whether every matching message really deserves a star. A label is useful for grouping; a star is better reserved for messages that need attention.
- Use the preview results as a safety check. Before selecting Delete it or Skip the Inbox, review the matching conversations. For a filter that could hide or discard important mail, start with a label-only action and confirm it catches the right messages before making the action more aggressive.
- Know how to find the rules later. In Gmail, click the gear icon, choose See all settings, then open Filters and Blocked Addresses. This is where you can review, edit, or delete filters. Unlike Outlook, Gmail does not present these as a folder of rules with the same interface or terminology.
- Remember that Gmail filters are account-level. A filter created on the Gmail website applies to incoming messages in that Gmail account, including when you later read the mail in a mobile app. It does not automatically create a rule in a separate Outlook account or in another Gmail account.
Troubleshooting
The message was not filtered. Go to Settings, choose See all settings, then Filters and Blocked Addresses. Find the filter and choose edit to check for typos, extra spaces, or conditions that are more restrictive than intended. Re-run the search criteria to see whether the message matches. Check whether the message arrived in another account, was already in Spam, or came in before the filter was created.
Too many messages were filtered. Edit the filter and narrow its conditions, such as by adding a sender or subject requirement. If messages were archived, search for them or open All Mail; if labeled, click the label in the sidebar. If you selected Delete it, look in Trash promptly, since deleted messages are not retained there forever. Remove or revise the filter so future messages are handled correctly.
The label does not appear in the inbox. A label is not a separate copy of a message. Click the label in Gmail’s sidebar to see conversations carrying it. If you also selected Skip the Inbox, the messages are archived and will not appear in the inbox unless they are later returned there.
Forwarding is unavailable or does not happen. First verify the forwarding address under Settings, See all settings, Forwarding and POP/IMAP. Then edit the filter and confirm that the correct verified address is selected. Check whether the message actually matches the filter and whether a forwarding setting or another mail system is involved.
You cannot find the filter controls on a phone. Open Gmail in a desktop browser for the full settings workflow. On a phone, you can use the browser’s desktop-site option if necessary, but the layout may be cramped. Creating or editing filters in the Gmail app is not as consistently supported as managing them on the website.
Frequently Asked Questions
Are Gmail filters the same as Outlook rules?
They serve a similar purpose: matching email and automatically taking an action. The terminology and available actions differ. Gmail filters commonly apply labels, archive, star, delete, or forward messages; Outlook rules may offer other conditions or actions that Gmail does not reproduce exactly.
Can I make Gmail put messages into a folder automatically?
Use a label to group the messages. To approximate moving them into an Outlook folder, choose both Apply the label and Skip the Inbox (Archive it). You can still find the mail under the label, in All Mail, and through search.
Will a new filter organize messages I already received?
Not automatically. On the filter action screen, select Also apply filter to matching conversations to apply the actions to matching existing conversations as well. Review the search results first, especially if the action archives or deletes mail.
Can I create a filter from an email I have open?
Yes. Open the message, select the three-dot More menu, and choose Filter messages like these. Gmail fills in a condition based on that message, usually its sender. Review and refine the search before creating the filter.
Can a Gmail filter automatically forward certain messages?
Yes, provided the forwarding address has been added and verified in Gmail settings. Create a filter for the messages you want forwarded, select Forward it, and choose the verified address. Test the conditions with care so unrelated or sensitive messages are not forwarded by mistake.
Where do I edit or delete a Gmail rule?
Click the gear icon, choose See all settings, and open Filters and Blocked Addresses. Use edit to change the search criteria or actions, or delete to remove the filter. Gmail filters are managed separately for each account.
Related
- How to Compute a Percentage in Google Sheets
- How to Create an Automatic Email Signature in Outlook
- How to Compress Pictures in PowerPoint 365
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Google Sheets QUERY Formula: Syntax, Examples, and TipsIn Google Sheets, the QUERY formula filters, sorts, selects, and summarizes a table using a query written in…
- How to Identify Duplicate Numbers in ExcelTo find duplicate numbers in Excel, select the cells and choose Home > Conditional Formatting > Highlight Cells…
- Excel Cell Margins: Add Top and Bottom SpaceExcel does not have a separate top or bottom cell-margin setting. To create space inside a cell, adjust…
- Excel Flash Fill Shortcut: How It Works and When to Use ItIn Excel for Microsoft 365 on Windows, the Flash Fill keyboard shortcut is Ctrl+E. Enter one or two…
- XLOOKUP in Google Sheets: How It Works and When to Use ItYes. XLOOKUP is a built-in Google Sheets function that searches a row or column for a value and…
- How to Identify Duplicates in Excel: A Step-by-Step GuideTo identify repeated values in Excel, select the cells you want to check and choose Home > Conditional…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.