Back to Blog
May 9, 2026
Overdrive Team
Gmail, Google Drive, Organize

Gmail Search Operators: Find Any Email Fast

Gmail's search operators let you filter your inbox precisely — by sender, size, attachment, date, or link. Here's the complete list with practical examples.

Gmail Search Operators: Find Any Email Fast

Most people type a word or name into Gmail's search bar and hope for the best. That works fine for recent, memorable emails. It breaks down completely when you're looking for something specific — a large attachment from two years ago, all emails from a particular domain, or every thread where someone sent you a Google Drive link.

Gmail search operators solve this. They're short commands you type directly into the search bar that filter results precisely, without scrolling through hundreds of emails. Here's what's available and how to use them.

Searching by Sender, Recipient, and Subject

The most basic operators filter by who sent or received an email.

from: limits results to emails from a specific address or domain. from:sarah@company.com finds everything Sarah sent you. from:@notion.so finds all emails from Notion, regardless of which address they came from.

to: finds emails you sent to a particular address. cc: and bcc: work the same way for copied recipients.

subject: searches only within the subject line, which is useful when a keyword appears in hundreds of email bodies but only a few subjects. subject:invoice Q4 finds emails with both words in the subject.

Searching by Attachment and File Type

has:attachment returns every email that includes any attached file. Combine it with a file type for precision: has:attachment filename:pdf finds emails with PDF attachments specifically. You can also search for filename:budget.xlsx to find a specific file name.

has:drive finds emails containing a Google Drive link — useful when someone shared a file with you via email and you need to find that thread. Similarly, has:document, has:spreadsheet, and has:presentation filter for emails containing links to specific Google Workspace file types.

has:youtube finds emails containing YouTube links, and has:link finds any email containing a hyperlink of any kind.

Searching by Size

larger: and smaller: filter by total email size, including attachments. Sizes can be written in bytes, kilobytes (K), or megabytes (M).

larger:10M finds every email over 10 MB — typically emails with large attachments. This is one of the most practical operators for freeing up Gmail storage: running has:attachment larger:5M gives you a list of the heaviest emails in your inbox, which are often the biggest contributors to your storage usage.

larger:25M is worth knowing separately — 25 MB is Gmail's attachment size limit for outgoing email, so anything at that size almost certainly has a large file attached.

Searching by Date

older_than: and newer_than: accept values like 1y (one year), 6m (six months), 3d (three days), or 2w (two weeks).

older_than:2y finds emails more than two years old. Combining date and size operators is particularly useful for storage cleanup: has:attachment larger:5M older_than:1y finds large attachments that have been sitting in your inbox for more than a year — prime candidates for deletion.

before: and after: also accept specific dates in the format YYYY/MM/DD for more precise filtering.

Searching by Status and Label

is:unread shows only unread emails. is:starred, is:important, and is:snoozed work the same way.

label: filters by any label you've created. label:receipts or label:newsletters quickly surfaces everything you've filed under that category.

in:trash and in:spam search those folders specifically, since Gmail's default search excludes them. in:anywhere searches everywhere including trash and spam — useful when you know an email exists but can't find it.

Combining Operators

Operators can be combined in a single search by placing a space between them. from:mike has:attachment larger:2M finds every email from Mike that includes an attachment over 2 MB.

Using OR between terms broadens a search: from:amazon.com OR from:ups.com finds emails from either sender. Using - before an operator excludes results: has:attachment -from:notifications@github.com finds all emails with attachments except GitHub notifications.

Putting a phrase in quotes searches for an exact match: subject:"Q1 report" finds emails where the subject contains that exact phrase.

Practical Searches Worth Saving

A few combinations that come up often:

Finding emails with Drive files shared to you: has:drive is:unread surfaces unread threads where someone shared a Drive file — useful when you've lost track of something a colleague sent.

Clearing storage: has:attachment larger:10M older_than:6m gives you your biggest old attachments. Delete the emails (and empty Trash after) to reclaim meaningful space.

Finding a specific file type from a sender: from:legal@company.com filename:pdf locates all PDFs your legal team has ever sent.

If your Gmail storage is the main thing pushing your Google account toward its limit, the free up Gmail storage guide walks through a systematic approach to getting that space back.


Related Articles

Related Guides