New guide: how to warm up a dedicated IP without hurting your reputation. Read now →
Log in
MigoSMTP
Getting startedUpdated 4 Nov 2026

Gmail Filters and Labels: How to Organise Your Inbox Automatically

Learn how Gmail labels differ from folders, how to create filters that label, archive or star incoming mail, example filter recipes, how to export them, and how to avoid filters that hide important messages.

SM
Written by Sofia Marino
Technical Support Lead
Reviewed by Tomasz Kowalski
  • Published24 Jan 2024
  • Read time6 min
  • Length1,303 words
Share this guide

A Gmail filter is a saved rule that checks each incoming message against conditions such as sender, subject or words, and then applies actions such as adding a label, skipping the inbox, starring the message or marking it read. A label is a tag you attach to messages. Together they let Gmail sort mail the moment it arrives, so the inbox holds only what needs your attention.

The fastest way to build a filter is to search first, confirm the results, then choose Create filter from the search options. This guide explains labels, walks through creating filters, gives recipes you can adapt, and covers the mistakes that cause important mail to disappear.

LabelA tag, not a folder: one message can carry several labels
FilterConditions plus actions, applied to new mail and optionally to existing conversations
Safe defaultLabel and skip the inbox before you consider delete
BackupFilters can be exported to and imported from an XML file in settings

Labels are not folders

In folder-based mail, a message lives in exactly one place. In Gmail, a message can have many labels at once, and a label is simply a searchable tag. Removing a label does not delete the message. Archiving removes the Inbox label only, so the message remains in All Mail and under any other label it carries.

Labels can be nested using the label dialog, which gives a folder-like tree in the sidebar, and each label can have a colour. Nesting is cosmetic. Searching label:clients includes messages in nested child labels, but a message in a child does not automatically carry the parent label in other views, so apply the label you plan to search on.

ConceptGmail behaviour
Move to folderApply label and archive
Copy to second folderApply a second label
Delete from folderRemove the label; message stays in All Mail
Delete permanentlyMove to Trash, then empty Trash or wait for automatic deletion
Folder treeNested labels

Create a label

  1. In the left sidebar, scroll to the labels section and choose Create new label, or open Settings, See all settings, Labels.
  2. Name it. Choose a short, consistent scheme such as Clients/Acme for nesting.
  3. Optionally pick a colour from the label menu in the sidebar.
  4. Decide whether the label shows in the label list and message list. Hiding labels you only use for filtering keeps the sidebar tidy.

Create a filter step by step

  1. Open the search box options at the right edge of the search field.
  2. Fill in the conditions: From, To, Subject, Has the words, Doesn't have, Size and Has attachment. You can also type search operators into the Has the words field. See Gmail search operators.
  3. Choose Create filter at the bottom. Gmail then shows the actions page.
  4. Tick the actions you want. Typical combinations are listed below.
  5. Tick Also apply filter to matching conversations if you want to clean up mail already in the mailbox.
  6. Select Create filter to save.
ActionEffectUse it for
Skip the Inbox (Archive it)Removes the Inbox label, mail stays searchableNewsletters and notifications you read later
Mark as readMessage arrives already marked as readLow-value automated mail
Star itAdds a starVIP senders
Apply the labelAdds your chosen labelEverything sorted by topic
Forward it toSends a copy to a verified addressRouting to a team mailbox
Delete itMoves to TrashMail you are certain you never need
Never send it to SpamOverrides the spam classifierTrusted senders caught by mistake
Always mark it as importantSets the importance markerKey contacts
Categorize asPlaces in a tab such as UpdatesRe-sorting tabs

Filter recipes that work

GoalConditionsActions
Receipts and invoicesHas the words {receipt invoice "order confirmation"}Apply label Receipts, skip the inbox
NewslettersHas the words unsubscribe and From a known sender listApply label Newsletters, skip the inbox
Manager and VIPsFrom [email protected]Star it, always mark as important, never send to Spam
Server alertsFrom [email protected]Apply label Alerts, mark as read when low priority
Team listTo [email protected]Apply label Team, skip the inbox
AliasesUse deliveredto:[email protected]Apply label Shopping

The curly-brace syntax means any of the words. If you use a separate address for each service, plus addressing makes filters easy, see plus addressing and email aliases.

Use filters to protect important mail

Filters are more often used to hide mail than to protect it, but the protective use matters. If invoices, password resets or messages from your own application's mail system keep landing in Spam, a Never send it to Spam filter on the sender corrects it. Do this sparingly. For a sender that fails authentication, the right fix is on the sender's side, as explained in how to allow an email address.

Likewise, avoid filtering on a very broad condition such as the word account with a delete action. That sort of rule will eventually remove a security alert.

Manage, edit, export and import filters

  • Open Settings, See all settings, Filters and Blocked Addresses to list every filter.
  • Choose edit to change conditions or actions. Gmail saves a new version of the rule.
  • Select filters and choose Export to download an XML file. Keep it as a backup before big changes.
  • Choose Import filters to restore from a file or copy rules to another account.
  • Review the list twice a year and remove rules for senders that no longer exist.

Menu names change with interface updates, so if you cannot find a setting, search the Gmail Help centre for the current path. Google also limits how many filters an account can hold, which most people never reach.

Labels and filters for shared inboxes and business mail

If several people triage the same mailbox, agree on a labelling scheme before building rules. A short list is easier to maintain: one label per customer or function, one for each status such as Waiting and Done, and one for automated notifications. For mailboxes that receive system mail, such as bounces from a sending service, a dedicated label plus skip-inbox keeps the signal available without noise. Detailed bounce handling belongs in your sending platform, see suppression list management.

A simple structure to start from

Many people over-engineer labels. A workable structure has three layers. First, a handful of topic or client labels that you search on. Second, a few status labels such as Follow-up and Waiting that you apply by hand. Third, one or two automation labels such as Notifications that filters apply and that you check on a schedule instead of continuously.

Keep the inbox for mail that needs a decision. Everything else should be labelled and archived on arrival. If you open the inbox and see more than a screen of items, one of your filters is too narrow or missing. Add the sender to an existing rule rather than creating another, because a long list of near-duplicate filters is hard to audit.

Troubleshooting

ProblemLikely causeFix
Filter does not run on old mailApply to matching conversations was not tickedEdit the filter or run the search and apply the label manually
Filter does not run on new mailConditions too narrow, or the sender uses different addressesFilter on the domain, for example from:@example.com
Message vanishedSkip the Inbox or Delete actionSearch in:anywhere and check All Mail and Trash
Two filters conflictBoth match and apply different labelsBoth apply; to avoid contradictory actions make conditions distinct
Forwarding action unavailableForward address not verifiedAdd and verify the address in Settings, Forwarding and POP/IMAP
Label count wrongLabels count conversations, not messagesOpen the label to see the conversations

Next steps

Start small. Build three filters for the three noisiest senders, label them, skip the inbox and watch the result for a week. Then add rules for receipts and team mail. When your volume of automated mail grows beyond what filters can sort, consider whether those messages should arrive in a separate mailbox at all. If you send mail from applications, the guide to separating transactional and marketing streams shows how to keep the two apart at the source.

Sending mail from your own application? Route it through a relay that reports every delivery and bounce.

See the SMTP relay

References and further reading

Frequently asked questions

What is the difference between a Gmail label and a folder?

A message can carry many labels at once, while a folder holds a message in only one place. Removing a label does not delete the message.

How do I create a Gmail filter?

Open the search options, enter conditions, choose Create filter, tick the actions you want and save.

Can I apply a filter to mail I already have?

Yes. Tick Also apply filter to matching conversations when you create or edit the filter.

Why did a message disappear after I made a filter?

A Skip the Inbox or Delete action probably matched it. Search in:anywhere to find it in All Mail or Trash.

Can I back up my filters?

Yes. In the Filters and Blocked Addresses settings you can export selected filters to an XML file and import them later.

Topics#gmail#filters#labels#inbox management#automation
Was this guide helpful?Your answer helps us improve our documentation.

Start sending in minutes.

Create an account, add your domain and send your first email.

Get started Talk to sales