Guides · Inbox
How to Create Filters in Gmail to Sort Your Inbox Automatically

Three tools that work together
If you want Gmail to sort your mail automatically, you’re really dealing with three different mechanisms that people often mix up. Categories are Gmail’s own pre-sorting, which runs without you doing anything. Filters are your rules, which you use to decide what happens to certain emails. And labels are the tags that filters, or you yourself, attach to emails so you can find them again. On top of that comes the question of how your inbox is laid out in the first place, because Gmail offers several inbox types.
Once you understand what each tool can do, your inbox sorts itself with surprisingly little effort. If you don’t, you get what many business owners know all too well: the important customer email has been sitting unread in the “Updates” tab for three days, and nobody noticed.
What Gmail sorts on its own: categories
If you use the “Default” inbox type, Gmail automatically distributes new emails across tabs. Google describes five categories: “Primary” for emails from people you know and anything that doesn’t fit anywhere else; “Social” for messages from social networks; “Promotions” for deals and promotional offers; “Updates” for automated confirmations, notifications, statements and reminders; and “Forums” for mailing lists and discussion groups. You choose which tabs you want to see in Quick settings under “Inbox type” and “Customize.”
For a business, that’s a useful rough sort. Advertising and system messages disappear from view without you having to build a single filter. If an email ends up in the wrong tab, you drag and drop it into the right one. According to Google, Gmail learns from this over time and sorts more accurately.
There are two limitations you should know about. First, you can’t create your own categories; the five are fixed. Second, and this matters more in day-to-day business: by default, Gmail only alerts you about new messages in the “Primary” category, according to Google. So a job inquiry that comes in through a form system and is therefore filed as an “Update” may arrive without an alert. Whether you’re notified about other messages depends on your notification settings; in the Android app, for example, you can set up notifications for individual labels. If many people reach you through portals, online shops or contact forms, check these settings before you rely on the tabs. And if you have more than 250,000 emails in your inbox, Google says you can’t use the Default inbox at all and have to archive or delete first.
Labels instead of folders
Gmail doesn’t have classic folders; it has labels. The difference sounds academic but is practical: one email can carry several labels at once, such as “Customer Smith” and “Quotes 2026.” So it doesn’t sit in one place but can be found in several. If you delete it, it disappears from all labels and from your inbox. Only you can see labels; senders know nothing about them. Google allows up to 5,000 labels, and you can nest labels inside each other to build a structure.
For a small business, a flat, manageable structure is usually enough. A tried-and-tested approach is to organize by the sender’s role, such as customers, suppliers, government agencies and the bank, and only subdivide further where you really search regularly. Twenty labels you know are worth more than two hundred you’ve forgotten. And because Gmail has a powerful search, you don’t have to pre-sort everything. Labels pay off mainly for emails you’ll need together later, such as all of one supplier’s invoices for your bookkeeping.
One detail about conversation view: when it’s turned on, a label is only applied to the existing messages in a conversation, according to Google, not automatically to later replies. If you wonder why the newest email in a thread has no label, that’s often the reason.
How to create a Gmail filter, step by step
Filters are where the real automation happens. According to Google, they can label, archive, delete, star or automatically forward incoming emails. The easiest way to start is through search. At the top of the search box, click “Show search options,” enter your criteria, such as a sender or a word in the subject, and click “Search” to check which emails are found. If the result looks right, click “Create filter” and decide what should happen.
The second way starts from a specific message. Check the box next to the email, open the three-dot menu and choose “Filter messages like these.” Gmail takes the sender as a criterion, and you add the rest. You’ll find existing filters under “Settings,” “See all settings” and “Filters and Blocked Addresses.” That’s where you can edit or delete them.
The most important decision with any filter is whether the email should stay in your inbox. A filter that only applies a label makes the email easier to find but doesn’t clear anything up. A filter that also archives takes it out of your inbox. That’s exactly right for bank statements or shipping confirmations, but rather risky for anything you need to respond to. According to Google, archived emails also no longer appear in the categories. You’ll find them via the label or under “All Mail.”
Forwarding filters come with a peculiarity that Google explicitly points out: they only affect new messages. And when someone replies to a filtered message, the reply is only filtered too if it meets the same criteria. So a thread can end up half forwarded and half not.
One more practical tip about the “Delete” action: use it sparingly. A filter that’s too broad and deletes doesn’t just clear away advertising; sooner or later it also gets the one email that happens to have the same word in its subject line. Label plus archive achieves almost the same goal, namely a calm inbox, but leaves you a way back. By the way, you set up filters in Gmail in a browser on your computer, as the Google help describes it. After that, they apply to incoming emails no matter which device you later read them on.
Search operators: the building blocks for better filters
Gmail’s filters understand the same search operators as search does. If you know a few of them, you can build much more accurate filters. With from: and to: you narrow things down by sender and recipient, with subject: by words in the subject line. OR connects alternatives, such as several suppliers in one filter. A minus sign excludes terms. list: finds emails from mailing lists, has:attachment those with an attachment, filename:pdf those with a PDF attachment. The full list is in the Gmail help article on search operators.
A few examples of what this can look like in a business: a filter “from:(supplier-a.com OR supplier-b.com) filename:pdf” gives all PDF documents from your two main suppliers the label “Receipts.” A filter with list: for the newsletters you like to read, just not right away, applies “Read later” and archives. A filter for your three most important customers marks their emails as important and assigns them to the “Primary” category so they don’t get lost between promotions and updates. According to Google, a filter can mark a sender’s emails as important or assign them to a specific category for exactly this purpose.
The trick is always the same: search first, look at the result, then create the filter. Google points out that excluding operators can still show matches in conversations, because Gmail finds matching individual messages first. So take a close look at the list of results before you switch on a filter that archives or deletes.
Set up your inbox the right way
Besides the tabs, Gmail offers other inbox types, which you choose under “Inbox type”: “Important first,” “Unread first,” “Starred first,” “Priority Inbox” and “Multiple Inboxes.” With “Multiple Inboxes,” Gmail adds extra sections that you define using search operators or labels, such as a section just for customer inquiries. For owners who want to see in five minutes each morning what’s urgent, this can be a good complement to filters. How the importance markers work and whether you can rely on them is covered in a separate guide in this series.
Back up and transfer your filters
Once you have a good set of filters, back it up. Under “Filters and Blocked Addresses,” check the boxes next to the filters you want and choose “Export” at the bottom. You get an XML file that, according to Google, you can even edit in a text editor. With “Import filters,” you load it into the same or a different Gmail account. That’s handy when a new employee is supposed to get an inbox with the same basic rules.
Where automatic sorting in Gmail stops
Categories, filters and labels have one thing in common: they sort by the type of an email, not by what it means to you. Categories recognize that a message looks like advertising or an automated notification. Filters recognize senders, words and attachments. None of these mechanisms answers the question you actually care about in the morning: what do I have to decide today, and what can someone else take care of?
Typical gaps in everyday business: a customer who normally only receives invoices suddenly writes about a complaint. The filter for their domain dutifully gives the email the “Invoices” label and archives it. A rescheduled appointment is tucked into a reply that Gmail files as an update. A supplier writes, in newsletter format, that they can’t deliver an order. With more filters you can close individual gaps, but every new exception makes the system more fragile.
For this part, there’s software that reads emails and sorts them by content. Nupu, the AI agent from webRichtung GmbH in Düsseldorf, Germany, connects to Gmail and sorts your newest emails into three piles: things you have to decide yourself, things Nupu can handle for you after a quick question, and things that are just FYI or can go. Connecting costs no credits, your first inbox connection is free for seven days, and after signing up you get 7.5 starter credits. You don’t have to give up your Gmail filters for clear-cut cases. They keep clearing away the obvious, and the agent takes care of what needs understanding.
A starter plan for half an hour
If you want to start today, half an hour is enough. Turn on the categories you need and watch for a day what goes where. Then create three filters: one that marks your most important customers as important and keeps them in the “Primary” tab, one for receipts with a label and archiving, and one for newsletters you want to read later. Export the filters as a backup. And after two weeks, check which important emails slipped through anyway. Exactly these cases show you where, for you, the line runs between filter and judgment.
Also get into the habit of a quick check while your set of filters is still new. Once a day, it’s worth skimming the “Updates” and “Promotions” tabs as well as the labels that archive. It takes a minute and quickly shows you whether a filter is grabbing too much. If after a few weeks nothing important turns up there anymore, a look once a week is enough. And if something important regularly ends up in there after all, you know that categories and filters aren’t enough here.
Sources
- Google Gmail Help: Create rules to filter your emails (accessed October 28, 2026)
- Google Gmail Help: Create & manage labels in Gmail (accessed October 28, 2026)
- Google Gmail Help: Organize your emails into categories (accessed October 28, 2026)
- Google Gmail Help: Change Gmail notifications (Android) – default “Primary”, notification types, label notifications (accessed October 28, 2026)
- Google Gmail Help: Refine searches in Gmail (search operators) (accessed October 28, 2026)
- Google Gmail Help: Change your Gmail inbox layout (accessed October 28, 2026)
- Google Gmail Help: Importance markers in Gmail (accessed October 28, 2026)
- Nupu – product information on inbox sorting, starter credits and pricing (accessed October 28, 2026)
Frequently asked questions
How do I automatically move emails into folders in Gmail?
Instead of folders, Gmail uses labels. You create a filter, for example via the search options at the top of the search box or via “Filter messages like these” on an existing email, and choose a label as the action. If the email shouldn't show up in your inbox anymore, you also have it archived.
Can I create my own categories in Gmail?
No. According to Google, you can only choose from the existing categories. For your own groupings, use labels and have a filter apply them automatically.
Why don't I get notifications for some emails?
If you use the “Default” inbox type with categories, Gmail by default only notifies you about new messages in the “Primary” category, according to Google. If a customer email lands in “Updates” or “Promotions,” you may not get an alert. Whether you’re notified about other messages depends on your notification settings in Gmail and on your device; in the Android app, for example, you can set up notifications for individual labels.
Can I back up my Gmail filters?
Yes. Under Settings > See all settings > Filters and Blocked Addresses, check the filters you want and choose “Export.” You get an XML file that you can bring back in later via “Import filters.”
Does Gmail learn how I sort?
Partly. When you drag an email into a different category, Gmail learns from it over time, according to Google. The importance markers also adapt to your behavior, such as which emails you open and reply to. Filters, on the other hand, don't learn anything; they do exactly what you set up.



