Blog/ Gmail how-tos

How to Automatically Label Emails in Gmail (Step by Step)

Nafiul HasanNafiul Hasan· 8 min read
Blog post cover for automatically labelling incoming emails in Gmail, showing email messages sorted into colour-coded label bins by filter rules

The short answer

Yes. Gmail can auto-label incoming emails with a filter. Open the search options, enter a sender, domain or subject, click Create filter, tick Apply the label and choose a label. New matching mail is labelled as it arrives. To label mail you already have, also tick Also apply filter to matching conversations.

Make Gmail label incoming emails automatically: create a filter by sender, domain or subject, tick Apply the label, and label existing mail too.

On this page
  1. 01Can Gmail automatically label incoming emails?
  2. 02How to automatically label incoming emails in Gmail
  3. 03Label emails you already have (not just new ones)
  4. 04Example: put all emails from your bank in one label
  5. 05Choosing filter criteria that hold up over time
  6. 06Where do auto-applied labels show up?
  7. 07If a Gmail filter stops labelling
  8. 08When filters stop scaling

Can Gmail automatically label incoming emails?#

Yes. Gmail calls its rules filters, and a filter can apply a label to every matching message as it arrives. Create one from the search options by entering a sender, domain or subject, then choose Apply the label. You can also route mail to a label by sender, or label emails you already have, using the steps below.

One distinction saves confusion later: a label is a tag, not a folder. A filter that only applies a label leaves the message in your inbox. To file it away as well, add Skip the Inbox (Archive it) in the same filter.

How to automatically label incoming emails in Gmail#

You create filters on a computer. Google's help page for filters describes the steps in Gmail on the web, and the wording on your screen can differ slightly between versions.

  1. 1

    Create the label

    Click Create new label next to Labels in the left sidebar, name it and save. You can also pick New label from the label list while building the filter, but making it first keeps the filter dialog simple.

  2. 2

    Open the search options and enter your criteria

    Click the search options icon (the tune icon) in the search box. Fill in only the fields that apply: From for a sender address or a whole domain, Subject for keywords in the subject line, Has the words for text in the message, Has attachment for messages with files. Empty fields are ignored. Clicking Search is optional and only previews the matching mail.

  3. 3

    Click Create filter

    Click Create filter at the bottom of the search window. This opens the screen where you choose what Gmail does with matching messages.

  4. 4

    Tick Apply the label and choose your label

    Tick Apply the label, then pick the label from the dropdown. If you also want matching mail out of the main view, tick Skip the Inbox (Archive it). Test with the label alone for a few days first if your criteria are broad.

  5. 5

    Decide whether to label existing mail

    Tick Also apply filter to matching conversations to label matching mail already in your mailbox. Leave it unticked and the filter only affects mail that arrives after you save it.

  6. 6

    Click Create filter again

    Click Create filter to save. From now on, every new message that matches is labelled as it arrives.

A faster route: Filter messages like these

Select a message, click More, then choose Filter messages like these. Gmail pre-fills the From field with that sender. Adjust the criteria if you want the whole domain, then click Create filter and continue from step 4.
Abstract illustration showing incoming email messages being sorted into labelled bins, one for clients, one for receipts, one for newsletters, representing Gmail filters automatically categorising arriving mail
A filter puts each matching arrival into its label as it lands, with no manual sorting.

Label emails you already have (not just new ones)#

A filter acts on new mail unless you ask it to reach back. There are two ways to apply a label to existing messages, and which one you want depends on whether you also want the label on future mail.

Method 1, for ongoing and one-off at once: when you build the filter, tick Also apply filter to matching conversations before you save. Gmail labels the mail already in your mailbox and keeps labelling new arrivals.

Method 2, for a one-off cleanup with no filter: search for the mail, for example from:@yourbank.com, tick the select-all box above the list, click the link to select all conversations that match the search, then use the Labels button and choose the label. Gmail shows only one page of results at a time, so without that link you label only the first page. Spot-check a few messages afterwards, since the wording of the link can vary by version.

Example: put all emails from your bank in one label#

Say you want every message from your bank under one label called Bank. Create the label, open the search options, and type @yourbank.com in the From field. Using the domain, not one address, catches statements, alerts and security notices that come from different addresses at the same bank.

Click Create filter, tick Apply the label and choose Bank. Add Skip the Inbox only if you are happy not seeing these in your inbox, and tick Also apply filter to matching conversations to pull in the old mail. The same pattern works for any sender: swap in the vendor or client domain.

Choosing filter criteria that hold up over time#

Exact sender addresses break when a company changes the address it sends from. A domain stays put across billing, support and notification addresses, so it is the most stable choice for services and clients. Subject keywords break when a vendor changes its subject template, so use them for alerts with a fixed pattern.

Gmail combines the fields you fill in with AND, so a message must match every one of them. A filter on From: [email protected] plus Subject: invoice misses that sender's other mail. For an either-or match, make two filters pointing at the same label. A message can carry several labels, so overlapping filters each add their own.

CriteriaStabilityBest used for
From: exact addressLow, breaks if the sender changes addressKnown individuals at a fixed address
From: @domain.comHigh, survives address changesServices, vendors and clients with several addresses
Subject: keywordMedium, breaks if the subject template changesAlerts and notifications with predictable subjects
Has the words:Medium, depends on the text staying the sameProject names, ticket IDs, account numbers
Has attachmentHigh, not text-dependentInvoice and file-receipt filing

Where do auto-applied labels show up?#

Filters run on Google's servers, so the label is on the message by the time any app syncs it. Google's help describes filter creation on a computer, so plan on setting filters up in a desktop browser.

Other mail apps connected to Gmail over IMAP handle labels differently: Gmail labels usually surface there as folders, not as tags. See how Gmail labels show up in Apple Mail and Gmail label and IMAP folder mapping for the details.

WhereCreate filtersSee auto-applied labels
Gmail on the web (desktop browser)YesYes
Gmail mobile appNot in the app, use a computerYes, labels sync from your account
Google Workspace work accountYes, unless your admin restricts itYes
Other mail apps over IMAPNo, filters are a Gmail settingUsually as folders, see the linked posts

If a Gmail filter stops labelling#

Most failures come from a short list of causes. Check these before rebuilding the filter:

  • The sender changed address. Switch From to the domain, for example @service.com.
  • Two conditions must both be true. Remove the narrower one or add a second filter.
  • The mail arrived before you saved the filter. Edit the filter and tick Also apply filter to matching conversations.
  • The subject template changed. Match on the sender domain instead of subject text.

When filters stop scaling#

Static filters cover the senders and subjects you thought of when you wrote them. For the full diagnosis, see the checklist for why a Gmail filter stops working, and the guide to creating a filter in Gmail covers the basics again. If you are maintaining a long list by hand, there is another approach.

We build AI Emaily. Its inbox rules run on arrival and can match on sender, subject, keywords, attachments, or an AI-understood idea such as "investor update". You can describe a rule in plain English and review it before saving. One limit to know: AI Emaily labels live inside AI Emaily and do not create Gmail labels, so if you need labels visible inside Gmail itself, keep the filters above. Pro and Autopilot include a 7-day free trial.

Frequently asked

Nafiul Hasan

Written by

Nafiul Hasan

Nafiul Hasan is an entrepreneur and AI automation system builder with 10+ years of experience turning messy, manual workflows into reliable automated systems. He designs and ships AI enterprise solutions end-to-end — the agent logic, the data plumbing, and the product people actually use — and founded AI Emaily to give busy professionals their attention back. He writes here from the builder's seat: what works, what breaks, and how to put AI to work without giving up control.

EntrepreneurAI Automation System BuilderAI EnthusiastBuilds AI Enterprise Solutions10+ years experience
More from Nafiul
Ready when you are

Tired of maintaining Gmail filters by hand?

AI Emaily inbox rules run on arrival and can be written in plain English. Start a 7-day free trial on Pro or Autopilot.

  • 7-day free trial
  • Cancel anytime
  • Every provider