Gmail labels and filters organize your inbox automatically
Labels are Gmail's version of folders — you can tag messages with one or more labels to sort them by project, person, or topic. Filters automatically apply labels (or delete, archive, or star messages) based on rules you set. Together, they let you sort incoming mail without manually filing each message.
Labels stay in your sidebar for quick access. Filters run on every new message that arrives, so you can set them once and stop thinking about organization. You can create both from Gmail's settings or directly from a message you want to organize.
Key Takeaways
- Labels are tags you create and assign to messages; multiple labels can go on one message, and they appear in your sidebar for quick navigation.
- Filters automatically apply labels, archive, delete, or star messages based on sender, subject line, or words in the body — you set the rule once and it runs on all future mail.
- You can create a label from Settings or by right-clicking a message and choosing "Label as" — the fastest way is usually from a message you already want to organize.
- Filters work on new messages going forward, not on mail already in your inbox, so create them as soon as you identify a pattern you want to automate.
How to create a label in Gmail
Open Gmail and click the Settings gear icon in the top right corner. Select "See all settings," then click the "Labels" tab. Scroll to the bottom where it says "Create new label" and type the name you want. You can nest labels under other labels — for example, "Projects" as a parent label and "Projects/Website Redesign" as a child. Click "Create" when you are done.
Once the label exists, you can assign it to messages. Open a message, click the label icon (it looks like a tag), and check the box next to the label name. You can add multiple labels to one message. Labels appear in your sidebar on the left, and you can click any label to see all messages tagged with it.
The faster route if you are organizing a message right now: open the message, click the three dots menu, and select "Add label." Type the label name — if it does not exist yet, Gmail will offer to create it. This way you never leave the message you are working with.
How to create a filter in Gmail
Open Gmail Settings and click the "Filters and Blocked Addresses" tab. Click "Create a new filter" at the bottom. In the search box that appears, enter the criteria: you can filter by sender (type an email address), subject line (type words that appear in the subject), or words anywhere in the message. You can also filter by whether the message has an attachment or by size. Click "Create filter" when your criteria are set.
Gmail then shows you what the filter will do. Check the box next to "Apply the label" and choose which label to add, or check "Archive" to skip the inbox, or "Delete" to send to trash, or "Star" to mark as important. You can combine actions — for example, apply a label AND archive. At the bottom, check "Also apply filter to matching conversations" if you want the rule to run on messages already in your inbox. Click "Create filter" to save.
The quickest way to create a filter: find a message from someone you want to organize (like a newsletter or a coworker), click the three dots menu, and select "Filter messages like this." Gmail fills in the sender automatically. Then follow the same steps to choose what label to apply or what action to take.
Common filter setups that save time
A filter for a specific sender is the most common: filter all mail from your manager into a "Manager" label, or all mail from a mailing list into "Newsletters." Set the sender field to the email address and choose "Apply the label."
A filter for a subject line works well for project-based mail: filter messages with "Project X" in the subject into a "Projects/Project X" label. This catches emails from different people about the same project.
A filter to archive automatically is useful for mail you want to keep but do not need in your inbox: filter all receipts from your email provider into a label and archive them, or filter all notifications from a tool you use into a label and archive. The messages stay searchable but do not clutter your inbox.
A filter to delete automatically should be used carefully: you can filter obvious spam or notifications you never read into trash, but Gmail's spam filter already catches most spam. Use this only for mail you are certain you do not want.
How to edit or delete a label
To rename a label, go to Settings, click the "Labels" tab, find the label in the list, and click the three dots next to it. Select "Edit" and type the new name. To delete a label, click the three dots and select "Delete." Gmail will ask what to do with messages that have that label — you can delete the label but keep the messages, or delete both.
To edit a filter, go to Settings, click "Filters and Blocked Addresses," find the filter in the list, and click the pencil icon. Change the criteria or the action and click "Update filter." To delete a filter, click the trash icon next to it.
Organizing nested labels for complex projects
If you work on multiple projects or manage different areas of your life, nested labels keep your sidebar readable. Create a parent label like "Work" or "Personal," then create child labels underneath: "Work/Projects," "Work/Team," "Work/Clients." In your sidebar, you can collapse the parent label to hide the children, or click the arrow to expand and see them all.
Filters can apply nested labels just like regular labels. When you create a filter and choose "Apply the label," the nested labels appear in the dropdown with indentation showing the hierarchy. This lets you organize automatically without cluttering your sidebar.
Frequently Asked Questions
Can I apply multiple labels to one message?
Yes. Open the message, click the label icon, and check as many labels as you want. A single message can have 10 or more labels. This is useful when a message relates to multiple projects or people — you can find it from any of those labels.
Do filters work on old messages?
By default, filters only run on new messages arriving after you create the filter. When you create a filter, Gmail offers a checkbox that says "Also apply filter to matching conversations" — check this box if you want the filter to run on messages already in your inbox.
What happens if I delete a label?
When you delete a label, Gmail asks whether to delete the label only or delete the label and all messages with it. If you choose to delete the label only, the messages stay in your inbox and other labels. Most of the time you want to keep the messages and just remove the label.
Can I use filters to move mail to a specific folder?
Gmail does not have folders in the traditional sense — labels work differently. A filter can apply a label and archive the message, which removes it from your inbox but keeps it searchable. This achieves the same result as moving to a folder.
How many labels can I create?
Gmail does not publish a hard limit, but you can create thousands of labels. In practice, most people find 20 to 50 labels enough. Too many labels become hard to navigate, so start with a few and add more only when you notice a pattern you want to organize.