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

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
- 01Can Gmail automatically label incoming emails?
- 02How to automatically label incoming emails in Gmail
- 03Label emails you already have (not just new ones)
- 04Example: put all emails from your bank in one label
- 05Choosing filter criteria that hold up over time
- 06Where do auto-applied labels show up?
- 07If a Gmail filter stops labelling
- 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
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
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
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
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
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
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

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.
| Criteria | Stability | Best used for |
|---|---|---|
| From: exact address | Low, breaks if the sender changes address | Known individuals at a fixed address |
| From: @domain.com | High, survives address changes | Services, vendors and clients with several addresses |
| Subject: keyword | Medium, breaks if the subject template changes | Alerts and notifications with predictable subjects |
| Has the words: | Medium, depends on the text staying the same | Project names, ticket IDs, account numbers |
| Has attachment | High, not text-dependent | Invoice 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.
| Where | Create filters | See auto-applied labels |
|---|---|---|
| Gmail on the web (desktop browser) | Yes | Yes |
| Gmail mobile app | Not in the app, use a computer | Yes, labels sync from your account |
| Google Workspace work account | Yes, unless your admin restricts it | Yes |
| Other mail apps over IMAP | No, filters are a Gmail setting | Usually 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
See it in AI Emaily
Keep reading

Written by
Nafiul HasanNafiul 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.