How to Sort Gmail by Sender, Subject, Label, or Size

Online Tech Tips Staff · Edited by Aseem Kishore
13 min read

Online Tech Tips is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

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 GroupType This in the Search BoxWhat You’ll See
One senderfrom:[email protected]Email Gmail matches to that address
A whole company or domainfrom:@example.comMail from addresses at that domain
A subject wordsubject:invoiceMessages with “invoice” in the subject line
An exact subject phrasesubject:”monthly invoice”Subjects where that phrase appears in order
A labellabel:receiptsEverything tagged with that label
An Inbox categorycategory:promotionsEverything Gmail sorted into Promotions
Big emailslarger:10MMessages over about 10 MB
Emails with attachmentshas:attachmentAny message with a file attached
A file typefilename:pdfMessages 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: and subject: 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
RequirementDetails
DeviceWindows PC, Mac, or Chromebook
WhereGmail on the web at mail.google.com
CostEverything 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 inbox list with the right-click menu open on a message, showing the "Find emails from" option highlighted

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.

Gmail search box containing a from:@example.com style query with matching search results listed below, search box highlighted

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.

Gmail left sidebar showing system labels plus custom labels, including one label nested under a parent label with an expand arrow, Labels section highlighted

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.
Gmail Settings Inbox tab showing the Inbox type dropdown and the Categories checkboxes for Primary, Social, Promotions, Updates, and Forums, with checkboxes and dropdown highlighted

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.

Gmail search results page for has:attachment with the Most relevant / Most recent toggle visible above the message list, toggle highlighted
  • 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.

Gmail Show search options panel expanded under the search box with From, To, Subject, Has the words, Size, and Date within fields, plus the Create filter button at the bottom, fields and Create filter button highlighted

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.
Gmail Create filter dialog showing action checkboxes such as Skip the Inbox (Archive it), Mark as read, Star it, Apply the label, Never send it to Spam, Delete it, and Categorize as, with checkboxes and the final Create filter button highlighted

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.

StepActionApplies To
2-3Right-click > Find emails from, or from:addressOne sender
4from:@domain.comA whole company
5subject: plus quotes for exact phrasesSubject lines
6Sidebar or label:nameLabels and nested labels
7category: plus Settings > InboxCategory tabs
8larger:, has:attachment, filename:Storage cleanup
9Most recent / Most relevantResult order
10-11Show search options > Create filterAutomatic 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

Sources checked November 9, 2026.