September 29, 2026

How to Automatically Label Emails in Gmail With Filters

0

Create Gmail filters that automatically label incoming email, organize existing messages, and keep recurring mail sorted without manual work.

Gmail inbox open on a laptop screen

Gmail labels are much more useful when they apply themselves. With a filter, Gmail can identify new messages by sender, subject, keywords, attachments, or other criteria and add the right label automatically. That keeps receipts, newsletters, project updates, and other recurring mail organized without daily sorting.

This guide explains how to automatically label emails in Gmail, how to include messages already in your mailbox, and how to correct a filter that is too broad or too narrow.

Before you start: labels and filters do different jobs

A label is a category you attach to a message. Unlike a traditional folder, one Gmail message can have several labels. A filter is a rule that checks messages and performs an action, such as applying a label.

Applying a label does not automatically remove a message from the Inbox. If you want matching mail filed away, choose both Apply the label and Skip the Inbox (Archive it). For a new rule, it is safer to apply only a label first, confirm that it catches the right messages, and add archiving later if needed.

How to automatically label emails in Gmail

The full filter builder is easiest to use in Gmail on a computer.

  1. Open Gmail in a web browser.
  2. In the search box at the top, click Show search options.
  3. Enter the criteria that should identify the messages. For example, put a sender’s address in From, a recurring phrase in Subject, or a keyword in Has the words.
  4. Click Search first. Review the results to make sure the rule is neither too broad nor too narrow.
  5. Open Show search options again with the same criteria, then click Create filter.
  6. Select Apply the label, open the label menu, and choose an existing label. To make one now, choose New label, enter a clear name, and create it.
  7. Optional: select Also apply filter to matching conversations if you want Gmail to label existing matches as well as future messages.
  8. Click Create filter.

New messages that meet the criteria should now receive the label automatically. Open the label from Gmail’s left-hand menu to see the grouped messages.

Choose filter criteria that stay accurate

A useful filter is specific enough to avoid unrelated mail but flexible enough to keep working. Gmail’s search fields can be combined, so a message must satisfy the criteria you enter together.

Filter by sender

Use the From field when messages consistently come from one address. This works well for a regular service, a team address, or a trusted newsletter. Search the address first because some organizations send different types of mail from several addresses.

Filter by subject

Use Subject for a phrase that appears reliably, such as a project code or “monthly statement.” Avoid a generic word such as “update,” which may collect unrelated messages.

Filter by keywords or exclusions

The Has the words field can match text or Gmail search operators. The Doesn’t have field excludes messages containing specified terms. Test the search before saving, especially when you combine several conditions.

Filter messages with attachments

Select Has attachment when the presence of a file is part of the rule. Pair it with a sender, subject, or keyword so ordinary attachments do not all receive the same label.

Three practical filter examples

Collect receipts without hiding them

Create a label called Receipts. Use a reliable sender or a recurring subject phrase, then choose Apply the label: Receipts. Leave Skip the Inbox off initially so purchase confirmations remain visible.

Sort a newsletter out of the Inbox

Use the newsletter’s sender address, apply a Newsletters label, and select Skip the Inbox. The message is archived rather than deleted, so it remains available under the label and in All Mail.

Group project messages

Use a distinctive project name or code in the subject or message text, then apply a matching project label. Test the search results first; a short or common project name may match unrelated conversations.

How to create a filter from an existing email

If you already have an example message, Gmail can use it as the starting point:

  1. Select the checkbox beside the message.
  2. Click More in the toolbar.
  3. Choose Filter messages like these.
  4. Review the suggested sender and add other criteria if necessary.
  5. Click Create filter, choose Apply the label, and finish creating the rule.

This shortcut is convenient, but you should still review the search. A single sender may distribute account alerts, promotions, and receipts from the same address.

How to edit or delete a Gmail filter

  1. In Gmail on a computer, click Settings, then See all settings.
  2. Open Filters and Blocked Addresses.
  3. Find the rule you want to change.
  4. Choose Edit to update its criteria or actions, or Delete to remove it.
  5. When editing, continue through the prompts and click Update filter.

Deleting a filter stops future automatic actions. It does not remove labels already attached to older messages.

Why a Gmail filter may not label the right messages

  • The sender varies: inspect a missed message’s From address and compare it with the rule.
  • The subject changes: replace an exact or temporary phrase with a stable term, or use the sender instead.
  • The criteria are too broad: combine sender and subject, or add an exclusion, then test the search again.
  • Older messages were not included: edit or recreate the filter and select Also apply filter to matching conversations.
  • The wrong label was selected: check the rule under Filters and Blocked Addresses.

When troubleshooting, avoid adding delete, forwarding, or automatic archiving actions until the search results are correct. A label-only filter is easier to inspect and undo.

Can you create automatic labels in the Gmail mobile app?

Gmail’s mobile label controls vary by platform and app version. Google documents automatic labelling options in the iPhone and iPad app, while the computer interface provides the complete filter workflow and is the most consistent choice for creating and managing rules. Once a server-side filter exists, its labels appear in Gmail across your signed-in devices.

If you often write messages for later delivery as well as organize incoming mail, see our guide to scheduling an email in Gmail and editing or cancelling it.

Frequently asked questions

Will a Gmail filter label old emails?

Only if you choose Also apply filter to matching conversations while creating or updating the rule. Otherwise, the filter is intended for new matching mail.

Does applying a label move an email out of the Inbox?

No. A label categorizes the message. To remove matching mail from the Inbox without deleting it, also choose Skip the Inbox (Archive it).

Can one email have more than one Gmail label?

Yes. Gmail labels are not exclusive folders, so a message can appear under multiple labels.

Can I turn off an automatic label later?

Yes. Go to Settings > See all settings > Filters and Blocked Addresses, then edit or delete the filter. Existing labels remain until you remove them from those messages.

Keep the rule simple and test it first

The best Gmail filters solve one clear sorting problem. Start with a reliable sender or distinctive phrase, preview the matching messages, and apply a label before adding more powerful actions. A few well-tested rules usually make an inbox easier to scan than a large collection of overlapping filters.


Instructions verified against Google’s official guide to creating Gmail filters and label documentation. Featured photo by Justin Morgan on Unsplash.

Leave a Reply

Your email address will not be published. Required fields are marked *