You’re staring at an inbox with 4,000 messages, and you want to see everything from your landlord. In Outlook you’d click the From column header. In Gmail there’s no column to click. The fastest fix is to type from:
plus the sender’s address into the search bar and press Enter (or Return on a Mac).
That’s how Gmail handles all of this. You can’t sort Gmail by sender like a spreadsheet column, but search narrows your inbox to just the messages that match, such as every message from one person. This guide shows you how to narrow mail by sender, whole company, subject, label, Inbox category, and size. It also shows you how to turn any search into a filter that sorts future mail for you automatically.
Quick Reference: Gmail Search Operators for Sorting
Type any of these into the Gmail search box at the top of the page. You can also combine them in one search.
| What You Want to Group | Type This in the Search Box | What You’ll See |
|---|---|---|
| One sender | from:[email protected] | Email Gmail matches to that address |
| A whole company or domain | from:@example.com | Mail from addresses at that domain |
| A subject word | subject:invoice | Messages with “invoice” in the subject line |
| An exact subject phrase | subject:”monthly invoice” | Subjects where that phrase appears in order |
| A label | label:receipts | Everything tagged with that label |
| An Inbox category | category:promotions | Everything Gmail sorted into Promotions |
| Big emails | larger:10M | Messages over about 10 MB |
| Emails with attachments | has:attachment | Any message with a file attached |
| A file type | filename:pdf | Messages with PDF attachments |
All of these come from Google’s official Refine searches in Gmail page.
What Is Gmail Search (And Why Does It Replace Sorting)?
Gmail search is the bar at the top of your inbox, and it’s the main way Gmail organizes mail. Think of it as a librarian instead of a bookshelf. You don’t rearrange the shelves. You ask for exactly what you want, and the librarian hands it over.
The key pieces you’ll use:
- Search operators: Short words like
from:
andsubject:
that tell Gmail which part of an email to look at. - Labels: Gmail’s version of folders, except one email can carry several labels at once.
- Inbox categories: Automatic tabs (Primary, Social, Promotions, Updates, Forums) that Gmail fills for you.
- Filters: Rules that use search criteria to act on new incoming mail.
If your inbox feels like a junk drawer that’s been filling up since 2012, this is for you.
Before You Begin
Make sure you have:
- A Google account with Gmail
- A desktop web browser such as Chrome, Edge, Firefox, or Safari
- An internet connection
- About 15 minutes to try a few searches
| Requirement | Details |
|---|---|
| Device | Windows PC, Mac, or Chromebook |
| Where | Gmail on the web at mail.google.com |
| Cost | Everything here works on a free personal Gmail account |
If you use a work or school account managed by an admin, some of the steps here may look or behave a bit differently. When in doubt, check with your IT administrator before relying on search or filters for anything important.
Step-by-Step Guide to Sort Gmail by Sender, Subject, Label, or Size
Step 1: Open Gmail in Your Browser
Go to https://mail.google.com and sign in. Gmail needs no installation on Windows or macOS.
You should see your inbox with the search box across the top of the page.
Step 2: Find All Emails From One Sender (No Typing)
This is the quickest way to narrow your inbox to one sender.
- In your inbox list, find any email from the person you want.
- Right-click the message.
- Click Find emails from followed by the sender’s name.
Gmail runs a search for that sender and fills the search box with a from:
query, narrowing your results to messages from that person.
You can also open an email and hover over the sender’s name at the top. A contact card pops up with options for that person. The exact menu wording can shift a bit as Google updates Gmail, so if you don’t spot it, the right-click method is the more dependable route.
Step 3: Search by Sender With the from: Operator
Typing the search yourself gives you more control. Click the search box and type:
from:[email protected]
Press Enter (Windows) or Return (macOS).
You should see the messages Gmail matches to that address. This is a filtered list, not a re-sorted inbox, so treat it as Gmail’s match for that sender rather than a strict exact-string filter. Use the full email address when you can for the most precise match.
Typing just a first name like from:amy
can pull in every Amy you’ve ever heard from, and there’s always more than one Amy.
Step 4: Find All Mail From a Whole Company
Want everything from your bank, your kid’s school, or a store that emails you daily? Search the domain, which is the part of the address after the @ sign:
from:@example.com
Replace example.com with the real domain, like from:@chase.com. Press Enter.
Results can include mail from addresses at that domain, like support@, billing@, and noreply@. You don’t need asterisks or other wildcard symbols for this; just start with the @ sign.
One caveat: Google’s official operator list only shows from:
with a sender’s name or full address. Putting just the domain after the @ sign is a widely shared pattern in Gmail guides rather than a separately documented Google operator, so scan the results once to make sure they caught what you expected. If something is missing, search for the sender’s full address instead.
If you want to include matches that Gmail filtered into Spam or Trash, add in:anywhere
to the search. Use that combination carefully, since it also surfaces mail Gmail set aside on purpose.
Step 5: Sort Gmail by Subject
To group emails by what they’re about, use subject:
:
subject:invoice
That finds subject lines containing “invoice.” For a multi-word phrase, wrap it in double quotes:
subject:”monthly invoice”
Quotes matter here. Without them, Gmail can match subjects that contain those words in any order.
With quotes, Gmail looks for the words together in that exact order in a matching subject, so “Your monthly invoice is ready” shows up. How other messages are treated can depend on the rest of your query, so it’s worth testing a phrase search before relying on it to exclude everything you don’t want.
Step 6: Browse or Search by Label
Labels are where Gmail’s version of folders lives. You have two ways in.
Use the sidebar: Look at the left side of Gmail. Click any label name, like Receipts, to see everything tagged with it. Click More to expand the sidebar if your label isn’t visible there.
If the label still doesn’t show up after that, open Settings > Labels and make sure that label’s visibility is set to Show.
Use the search box: Type the label name after label:
:
label:receipts
Nested labels are labels tucked inside another label, like Taxes inside Finance. In the sidebar, click the small arrow next to the parent label to expand it.
In the search box, Google’s operator list only documents the basic label:name
form, not a special format for nested labels. The dependable way in is clicking the nested label in the sidebar. You can also try typing label:
plus the first few letters of the parent label, like label:fin
, and picking the nested label if Gmail suggests it.
You can stack a label with other operators too:
label:receipts from:@amazon.com
Step 7: Group Mail by Inbox Category
Inbox categories are the tabs Gmail uses to sort mail automatically. Search any of them with category:
:
category:promotions
Other values include category:social, category:updates, category:forums, and category:primary. Google’s operator list also includes category:reservations and category:purchases.
If you don’t see category tabs above your inbox, turn them on:
- Click the gear icon at the top right.
- Click See all settings.
- Open the Inbox tab.
- Set Inbox type to Default.
- Under Categories, check the tabs you want.
- Scroll down and click Save Changes.
After Gmail reloads, the tabs appear above your inbox list. Primary is always on.
Step 8: Find the Biggest Emails and Attachments
When Google warns that your storage is almost full, big attachments are the first place to look. Search for anything over 10 MB:
larger:10M
Try 5M or 20M if you want a different cutoff. To see only emails with files attached:
has:attachment
To narrow that to one file type:
filename:pdf
Pair these with a date operator to target old clutter you probably won’t miss:
has:attachment larger:5M older_than:1y
There’s also a size:
operator, but it works in bytes. That’s precise and clunky. Stick with larger:
and smaller:
for cleanups.
Before you delete anything important, download it first. An external SSD or a USB flash drive works well as a home for old photos and PDFs. If you’d rather keep everything online, a Google One storage plan adds space across Gmail, Drive, and Photos.
Step 9: Switch Between Most Recent and Most Relevant
After you run a search, look just above the results. Gmail can show a Most relevant / Most recent option there, according to Google’s Search in Gmail help page.
- Most recent: Sorts results chronologically, generally newest first. This is the closest thing Gmail has to “sort by date.”
- Most relevant: Gmail’s guess at what you’re hunting for, based on your words and habits.
If you don’t see the toggle at all, it may not yet be available on your account. Pick Most recent for a clean timeline when it’s there, and pick Most relevant when you’re searching for one specific email and can’t remember when it arrived.
Step 10: Open Show Search Options
This panel is a fill-in-the-blanks version of the operators above. Click the Show search options icon at the right end of the search box. It looks like a set of slider lines.
You should see fields for From, To, Subject, Has the words, Doesn’t have, Size, and Date within. Fill in any of them and click Search to test it.
Step 11: Turn Your Search Into a Filter
A filter applies the actions you choose to new incoming mail that matches your search criteria. It’s like hiring someone to sort the mail before you open the door.
- In the Show search options panel, fill in your criteria. For example, type @example.com in From.
- Click Create filter at the bottom of the panel.
- Choose what should happen to matching mail.
Common actions include Skip the Inbox (Archive it), Apply the label, Star it, Delete it, Never send it to Spam, and Categorize as.
- If Gmail offers an option to apply the filter to matching conversations, select it to sort the mail you already have. If you don’t see that option, run the search and apply the label or action to the results by hand afterward.
- Click Create filter.
Gmail shows a confirmation at the bottom of the screen. Future mail that matches now gets sorted the moment it arrives. Google’s Create rules to filter your emails page covers every action.
Warning: Be careful with Delete it. Combined with a broad search, it can quietly trash mail you wanted. Test the search first and check the results before you save.
Configuration: Settings Worth Knowing
- Manage existing filters: Go to gear icon > See all settings > Filters and Blocked Addresses. You can edit or delete any filter there.
- Create and nest labels: Go to gear icon > See all settings > Labels and click Create new label. Check Nest label under to put it inside another label.
- Hide label clutter: In the same Labels tab, choose hide next to labels you rarely use. They stay searchable with
label:
but leave the sidebar. - Category tabs: Covered in Step 7 under gear icon > See all settings > Inbox.
On your phone: The Gmail app for Android and iOS offers tap-friendly search chips under the search bar, such as From, attachment-related chips, and date or time controls. They build the same searches without typing, though the exact chips shown and their wording can vary between Android and iOS and by app version.
The typed operators work in the mobile search box too.
Tips and Troubleshooting
Problem: A from: search shows way too many (or too few) emails
- Swap the name for the full address, like from:[email protected].
- Add a second operator, such as subject:report or older_than:6m, to narrow things down.
Problem: A label: search returns nothing
- Check the label’s exact name in the sidebar.
- Type
label:
and choose from the autocomplete list instead of typing it out.
Problem: My new filter didn’t touch old emails
- Filters act on incoming mail by default, and Google notes that replies to earlier threads are only filtered if they independently match the same criteria.
- Edit the filter and check Also apply filter to matching conversations if that option is available, or run the search and label the results by hand.
Problem: A sender keeps landing in Promotions
- Drag one of their emails into the Primary tab. Gmail asks if you want to do this for future messages, so click Yes.
- Or create a filter for that sender and use Categorize as > Primary.
Problem: Search shows no results, even for mail you know exists
- Check your spelling. A missing colon (from amy instead of from:amy) breaks the operator.
- Reload the page and try again.
- If it’s still broken, our guide on fixing Gmail search not working covers deeper fixes.
Pro tips:
- Combine operators: from:@example.com has:attachment larger:5M finds big files from one company in one shot.
- Exclude stuff: Put a minus sign in front of an operator, like -category:promotions, to hide those results.
- Clean house in bulk: After any search, click the checkbox above the results to select everything, then archive or delete. Our guide to getting to Inbox Zero in Gmail walks through a full cleanup plan.
- Stop the flood at the source: If one sender keeps filling your inbox, our guide to managing and unsubscribing from email subscriptions in Gmail can cut them off for good.
Wrapping Up
Gmail’s lack of a sort-by-sender column is probably its most confusing quirk for anyone coming from Outlook. Once you trade clicking columns for typing from:
, label:
, or larger:
, you can filter your inbox down to just the messages you want in seconds. Search doesn’t change the order of your inbox itself, but the Most recent toggle can reorder those results when it’s available.
Filters then keep that narrowing going on new mail without you lifting a finger. My take: the domain search and the Create filter button do the most good for a messy inbox.
| Step | Action | Applies To |
|---|---|---|
| 2-3 | Right-click > Find emails from, or from:address | One sender |
| 4 | from:@domain.com | A whole company |
| 5 | subject: plus quotes for exact phrases | Subject lines |
| 6 | Sidebar or label:name | Labels and nested labels |
| 7 | category: plus Settings > Inbox | Category tabs |
| 8 | larger:, has:attachment, filename: | Storage cleanup |
| 9 | Most recent / Most relevant | Result order |
| 10-11 | Show search options > Create filter | Automatic sorting |
If your searches start acting strangely, recheck the operator spelling first, then reload Gmail. If results still look wrong, check Google’s official search help below or the Gmail Help Community before rebuilding any filters.
Resources
- Refine searches in Gmail (search operators)
- Search in Gmail
- Create rules to filter your emails
- Tips to optimize your Gmail inbox
- Switch from Microsoft Outlook to Gmail: Organize and archive email
Sources checked November 9, 2026.