Gmail search parameters

Gmail search parameters DEFAULT

How to Use Search Operators to Find Emails in Gmail

Gmail's advanced search capabilities help you find precisely what you're looking for fast using search operators. Search operators are special characters and parameters that fine-tune a search. Gmail's robust search features are handy, given the vast amount of storage Gmail offers. A manual search through your archived emails would be nearly impossible otherwise.

When a simple text entry in the search field at the top of the Gmail screen returns too many emails, use these operators to search by subject line, date range, sender, and more.

The instructions in this article are designed to be used with the desktop version of Gmail, accessed through any web browser.

Simple Searches

To find messages in Gmail, a good first approach is to type search terms in the Search mail field.

Gmail offers lots of keyboard shortcuts. Type /(the forward slash on the keyboard)to get to the Gmail search bar in an instant.

Gmail Search Options

When a simple search yields too many results or not those you need, specify criteria to narrow the results. Click the Show search options drop-down arrow in the Gmail search field to open an advanced search window.

Here, you can:

  • Search senders' email addresses and names using the From field.
  • Search recipients' names and addresses using the To field.
  • Search email subjects with the Subject field.
  • Search body text using the Has the words field.
  • Search for emails that do not contain certain words in the text using the Doesn't have field.
  • Check Has attachment to find only emails that include attached files.
  • Specify a sent date (or range thereof) using the Date within fields.

Click Search at the bottom of this panel to perform the search using the criteria you chose.

Combine multiple search options to find, for example, emails from a certain sender that contain attachments and that were sent during the past year.

Gmail Search Operators

In the Search mail field (in both the main Gmail window and in the advanced search window), you can use the following operators:

  • subject: searches the Subject line. For example, subject:bahamas finds all messages with bahamas in the subject line.
  • from:searches for sender name and email address. Partial addresses are OK. For example, from:heinz finds all messages from [email protected], along with those from [email protected] For example, from:me finds all messages you sent using any Gmail address you set up.
  • to: searches the To line for names and addresses. For example, to:[email protected] finds all messages sent directly (not via Cc or Bcc) to [email protected]
  • cc: searches for recipients in the Cc field. For example, cc:[email protected] finds all messages that were sent to [email protected] as a carbon copy.
  • bcc:searches for addresses and names in the Bcc field. For example, bcc:heinz finds all messages that you sent with [email protected] in the Bcc field.
  • label: searches for messages assigned a label. When using this, replace whitespace characters in label names with hyphens. For example, label:toodoo-doll finds all messages labeled toodoo doll.
  • has:userlabels searches for emails that have any labels except those used by default (those that don't include labels such as inbox, trash, and spam but including smart labels).
  • has:nouserlabels searches for messages that have no labels except those that Gmail uses by default.
  • is:starred searches for starred messages. You can specify the color of a star or other mark using has:. For example, has:yellow-starreturns messages with a yellow star, has:yellow-bang finds messages with a yellow exclamation mark, has:purple-question searches for messages with a purple question mark, has:orange-guillemet finds messages with two orange forward arrows, and has:blue-info returns messages with a blue i.
  • is:unread, is:read, and is:important find messages marked as such for Priority Inbox.
  • has:attachment searches for messages that have files attached to them.
  • filename: searches within file names of attachments. You can include file name extensions to restrict your search to certain file types. For example, filename:.doc finds all messages with .doc attachments.
  • is:chat searches for chat logs.
  • in: searches in the folder you specify, such as Drafts, Inbox, Chats, Sent, Spam, and Trash. Anywhere includes the Spam and Trash folders. For example, in:drafts finds all messages in your Drafts folder.
  • after: finds messages sent on or after a date, which is typed as YYYY/MM/DD. For example, after/05/05 finds all messages sent or received on or after May 5,
  • before: searches for messages sent before a date. For example, before/05/05 finds all messages sent or received on or before May 4,
  • larger:(or larger_than:) finds emails exceeding a size you specify. Bytes is the default measurement; use k for kilobytes and m for megabytes. For example, larger_thank finds all messages that exceed , bytes.
  • size: searches for messages exceeding the given size in bytes. For example, size finds emails bigger than , bytes or half a megabyte.
  • smaller: (or smaller_than:) searches for messages smaller than the specified size. Specify the size in bytes (no suffix) or use k or m as above.
  • deliveredto: searches for emails with the specified email address in a Delivered-To header line.

How to Combine Operators and Search Terms

Operators and search terms can be combined with the following modifiers:

  • By default, Gmail combines terms with an invisible AND. For example, shepherd macaroni finds all messages that contain both shepherd and macaroni; before/05/05 AND after/05/04 finds all messages sent or received on May 4,
  • "" searches for a phrase (not case-sensitive). For example. "shepherd's macaroni" finds all messages containing the phrase shepherd's macaroni; subject:"shepherd's macaroni"finds all messages that have shepherd's macaroni in the Subject field.
  • + searches for a term exactly as typed. For example, +shepherds finds all emails that contain shepherds but not those containing only shepherd.
  • OR finds messages containing at least one of two terms or expressions. For example, shepherd OR macaroni finds messages that contain shepherd, macaroni, or both; from:heinz OR label:toodoo-doll finds messages that come from a sender's address that contains heinz or are labeled toodoo doll.
  • - (minus sign/dash) returns messages that do not contain a specified term or expression. For example, -macaronifinds all messages that do not contain the word macaroni, shepherd -macaroni finds all messages that contain shepherd but not macaroni, and subject:"shepherd's macaroni" -from:heinz finds all messages with shepherd's macaroni in the subject that were not sent from an email address or name containing heinz.
  • () (parentheses) searches for terms or expressions as a group. For example, subject:(shepherd macaroni) finds messages that have both shepherd and macaroni somewhere in the Subject line (but not necessarily as a phrase), and from:heinz (subject:(shepherd OR macaroni) OR label:toodoo-doll finds all messages with heinz in the address and shepherd or macaroni (or both) in the Subject line, or that appear under the label toodoo doll.

Thanks for letting us know!


Last updated on July 31,

Here is the list of 50+ Gmail advanced search operators with specific examples and some extra search tips for Gmail. 

Gmail search operators are special commands that let you refine and filter your Gmail search results. Thanks to them, you can easily find a specific email or group of emails you are looking for. 

Knowing how Gmail search works and how to use its search operators is indeed a very useful skill to have. That&#;s why I compiled this list! Gmail search operators work similarly to Google search operators.

How To Use Search Operators In Gmail 

To put any Gmail search operator into action, you need to do:

  • Go to your Gmail account (in the web browser).
  • Type the search operator or operators in the Gmail search box. 
  • Hit enter. 
  • That&#;s it!

Gmail Advanced Search Operators In Action

Below is the list of 50+ Gmail search operators together with the explanation of their function, example use, and the screenshot from my Gmail inbox.  

The chances are you are also an active user of other Google services, so will probably also be interested in learning about YouTube search operators and Google Drive search operators.


SEO Newsletter

1. Filter By The Sender

This search operator lets you search for emails from a specific sender. Make sure not to put any spaces after or before the colon.


2. Filter By The Recipient

This Gmail search operator will return emails sent to a specific recipient. 


3. Filter By The Recipient With A Copy 

This Gmail search operator lets you filter by specific recipients who received a copy.  


4. Filter By The Words Used In The Subject Line 

Use this to look for emails that have specific phrases in the subject line. 


5. Filter By Multiple Keywords 

This search operator will return results with references to either one or another keyword. Make sure not to use square brackets.


6. Filter By An Exact Phrase

Use this if you want to find emails that contain the exact phrase. 


This is very useful if you remember a certain phrase but want to find the message that contains it. To find this message, you simply need to put the phrase in quotes. It works the same in Google search.

7. Filter Emails By The Folder

Instead of manually switching between folders in your Gmail inbox, you can just use the search operator to search for messages in a specific folder. 


It may come useful if you want to look for a specific email in a specific folder. Just type your query and add in: to search only this specific folder. 

8. Find Emails With An Exact Word Match

This will return emails with an exact word match to what you typed after . Remember not to put any spacer after .


9. Find Emails With A Certain Label

This search operator lets you filter emails by their label. It may be very useful if you’re using the same email address both for work and personal use.


To display only work-related messages, you just need to type . This, of course, will work only if you label your work emails. Type any label name you have to find the emails with that label.

Find Emails That Have Words Near Each Other

This search operator lets you specify how many words apart the phrases should be. 


In the example above my search will return the messages which contain word “seo” and word “audit” that is not more than 20 words apart from “seo”. 

Find Emails Without A Specific Phrase In The Subject Line 

This Gmail operator allows for searching for messages with a certain keyword but with the exclusion of another keyword. You can also simply use the exclusion rule a type .


This one seems to be working just fine without as well, so you might just use . Don&#;t put any spacer after or before the colon.

Find Emails In Any Folder 

This search operator also applies to messages in the Spam and Thrash folders. Use this to search all of your Gmail. 


If you want to find messages with a specific keyword in any folder, just type . If you just type a keyword without specifying the folder the effect will be the same as if you used this operator. This one is more for educational purposes.

Find Emails Marked As Important 

This Gmail operator lets you find messages that are marked as important. Note that Gmail may mark some emails as important even if you don&#;t really think they are. In most cases, however, Gmail correctly recognizes important emails.


Find Emails In A Specific Category 

This Gmail search operator allows you to search for messages in a specific category. 


To find messages with the word &#;seo&#; in the primary category type .

Find Starred Emails

Use this operator to search for starred emails. This will look for the important emails that were marked as important by you (i.e. starred).


Find Unread Emails

Use this operator to find only unread emails. Awesome for checking if you have not missed some emails.


Find Read Emails 

This Gmail operator does the contrary. It lets you search for emails that are marked as unread. 


Find Snoozed Emails 

This operator is for finding snoozed messages. This is again a very useful way to check if you have not snoozed some important email and forgotten about it.


Search For Emails With Or Without A Label

This Gmail parameter will display only the messages that have labels. These are only the labels created by you, not automatic system labels like Starred, Snoozed, etc.


And this operator does the exact opposite. Remember that labels are only added to a specific message (not the entire conversation).


Find Emails Sent In A Certain Time Frame

If you have tons of messages, this Gmail search operator will help you narrow down the results to a specific time frame.  If you receive a lot of emails, this can be a huge time saver.



Find Emails That Are Newer/Older Than A Certain Time Frame 

This Gmail operator works similarly except that here you can define a time period instead of a time frame. You can specify a day (d), month (m), and year (y). Sometimes simply defining a time period is quicker and easier.


Find Emails Delivered To A Specific Address

The recipient e-mail address you type in the recipient field isn’t always the actual or the only e-mail address that the e-mail will be delivered to. 

That’s where this search operator comes in very handy. It helps you find messages that were delivered to a specific email address. 


Find Chat Messages

If you’re still using Gmail chat, this operator lets you search chat messages. 


Find Emails From A Mailing List

This command lets you display messages from a particular mailing list. This is most useful for work emails. 


Find Emails That Have A Certain Icon

If these certain icons have been used in some of your emails, then this operator will help you find these messages.


Note that works like . It simply displays starred messages.

How To Search For Mails With Attachments 

Any message that has an attachment has this clip icon on the right side (like on the screenshot below).

Sometimes, however, that’s not enough to find the email you are looking for. Here are a few ways to refine Gmail search results that contain attachments. 

Find Emails With Attachments

Use this operator to display only the messages that have attachments. 


Note that if you have mails with various attachments in your Gmail inbox you will see some suggested attachment types once you type .

This will make finding specific attachments way easier.

Find Emails With Attachments From Drive/Docs/Sheets/Slides

This Gmail operator will search for emails that include a Google Drive, Google Doc, Google Sheet, or Google Slide attachment. 


This is very useful as more and more people are switching to online documents instead of sending documents as attachments. 

Find Emails With A Certain File Name Or Type Attached

This Gmail search operator will display the messages with a specific file or file type attached. 


Find Emails With A YouTube Video Attached

Use this to display emails that have links to YouTube videos. So useful if your friends or collegues like to share videos with you through email.


Find Emails That Are Above A Certain Size 

This command will help you specify the message size in bytes. In most cases, you will use it to search for emails with specific attachments. 


Find Emails That Are Above Or Below A Certain Size

This one is quite similar as it lets you specify a maximum or minimum size of the message.  


How To Combine Search Operators 

You can combine search operators to perform advanced searches in Gmail and refine your searches even more. 

You can also use Boolean operators like , , , or in your Gmail searches just like in Google search. More about it later.

Find Messages Matching Multiple Terms

This search command will display messages from either “olga” or from “tom”. Welcome to Gmail advanced search!


Find Messages By Grouping Multiple Words/Terms Together

With the help of this Gmail search operator, you can look for messages by grouping multiple words together.


Find Snoozed, Starred, Unread, Or Read Emails

This operator lets you search for emails from multiple groups.


You can combine with but don&#;t combine mutually-inclusive operators like and .

How To Remove Mails From Gmail Search Results

This search operator will exclude the messages that contain a specific term. It works the same way in Google the search engine.


How To Use Boolean Operators In Gmail Search

You can use the Boolean operators, such as , , , or to refine your searches in Gmail in yet another way.

Search For Messages That Meet Multiple Criteria

This Gmail command will display emails that contain words &#;seosly&#; and &#;backup&#;. Obviously, these are going to be emails with information about the backup of my site.


Search For Messages That Meet One Or Two Criteria

This search command will display messages that are from WordPress or from Coursera, or both.


Exclude Messages That Meet Certain Criteria


Search For Messages That Meet One Criterium And Exclude Messages Meeting Other Criterium

This search command will display messages that are marked as important and have not been read.


Gmail Search Operator Real-Life Examples

Here are some of my favorite advanced uses and combinations of Gmail search operators to refine the Gmail search even further.  

It&#;s very easy to combine different Gmail search operators. You simply use them one after another in any order you want just making sure not to make any typos or extra spaces.

Search For A PDF SEO Audit That Olga Sent Me

This one will search for emails from Olga that have the phrase &#;seo audit&#; in the subject line and contain a PDF file attached. This is a way to look for SEO audit PDF files Olga sent.

Search For A PDF SEO Audit That Olga Sent Within A Month

Here I refined the search even further so that I can only see the SEO PDF audits sent by Olga within the last month.

Search For All The Messages With Attachments From Olga

With this search I can see all the emails from Olga which as &#;seo&#; in the subject line and have an attachment.

Search For Messages From Olga That Contain A YouTube Video And Word &#;seo&#;

This will let me display all the messages with YouTube videos about SEO that Olga sent me.

Search For Messages I Sent With A Google Doc Attached & Phrase &#;seo audit&#; In Subject Line

This command will display all the messages I sent which contain &#;seo audit&#; in the subject line and have a Google Document attached.

Search For Unread Messages From Olga With A Google Slide Attached & Containing Word &#;SEO&#;

This command will display all the messages from Olga with a Google Spreadsheet attached and containing word &#;seo&#;.

Search For The Emails I Sent And Which Have A Google Doc And A Google Spreadsheet Attached

Here I can see the messages I sent which have both a Google Doc and a Google Spreadsheet.

Check What Labels You Have In Your Gmail

Type and you will see all the labels available in your Gmail.

Check What Categories You Have In Your Gmail

If you are not sure what categories you have in your Gmail inbox, here is a quick way to check that.

Type to find what categories you have

Create Your Own Gmail Search Filters 

If you tend to do similar Gmail searches over and over, it may be a good idea to create your own Gmail search filter. To create a custom Gmail search filter: 

  • Click on the arrow down in the Gmail search box.
  • Specify what you want/don’t want to include in your searches.
  • Click on Create filter and OK and you are all set up. 

Now in the Gmail search box, I can see how my filter looks like when &#;translated&#; into Gmail search operators.

There is also an article about search operators in the Gmail Help.

FAQs On Gmail Search Operators

Some of the below content may be overlapping because this is the complete list of Gmail search operators. However, as so many people as these questions about Gmail search, I am answering them all there in this section.

How can I search for unread emails in Gmail?

Just type in the top search box in Gmail. This will return the list of unread emails in your Gmail inbox. If you want to narrow down your searches, you can combine this Gmail search operator with keywords or keywords in quotes (to force an exact match) like .

How do I search for an email in Gmail?

To search for an email in Gmail you simply need to use the search box on top of your Gmail inbox. Click on the drop-down arrow to the right side of the search box to unfold advanced Gmail search options like searching by the sender, subject, keywords, and more.

How do I search Gmail by sender?

In the search box on the top of your Gmail inbox, type and then the e-mail address of the sender or their name. Gmail will be suggesting senders once you start typing. You can also click on the arrow down on the right to unfold Gmail advanced features and type the sender name there.

How do I search for labels in Gmail?

To search for labels in Gmail simply type and then label name in the top search bar in your Gmail mailbox. To search for emails labeled as &#;work&#;, simply type . To search for an email with user labels, type .

How can I view all unread emails in Gmail?

To view all unread emails in Gmail type in the Gmail search box at the top and hit enter.

How do I see all emails from one person in Gmail?

To see all emails from one person in Gmail, simply type and then type their e-mail address or name. Gmail will start autocompleting senders once you start typing based on your emails and contact list.

Can you search Gmail by date?

Yes, you can search Gmail by date. To search for emails after a certain date, simply type in the top search box in your Gmail inbox. To search for emails before a certain date type .


Members of SEOSLY Pro get access to Olga&#;s SEO audit video guide where she documents her + step SEO audit process, Olga&#;s mini video SEO audits, SEO audit templates, pro SEO auditing tips, and much more!

Join SEOSLY Pro to become a technical SEO expert in no time.

Olga Zarzeczna

Olga Zarzecznais a senior SEO specialist with 8+ years of experience. She has been doing SEO for both the biggest brands in the world and small businesses. She has done more than + SEO audits so far. Olga has completed SEO courses and degrees at universities, such as UC Davis, University of Michigan, and Johns Hopkins University. She also completed Moz Academy! And, of course, has Google certifications. She keeps learning SEO and loves it. Olga is also a Google Product Expert specializing in areas, such as Google Search and Google Webmasters.

Post navigation

  1. Bronze towel warmer
  2. Beagle coloring pages
  3. Duel links skyscraper

20 Gmail Search Operators to Conquer Your Inbox in

If you want to master your inbox, you need to be using Gmail search operators.

These are search commands for when you need to find that email or attachment you’ve lost inside Gmail, quickly filter emails by a specific phrase or keyword, and lot’s more helpful functions (you’ll see in a minute).

In this article, you’ll learn what Gmail search operators are, why they are useful for finding things in a cluttered inbox as well a collection of useful search operators you can use to up your email management game.

Prefer to watch the video version?

What Are Gmail Search Operators?

Gmail search operators (also known as Gmail search commands) are text strings made up of words and symbols that you can use in the Gmail search box to help filter your inbox/Gmail search results.

You can also combine operators to filter your results even more. Through the use of these commands to modify your search, you can get much more satisfying Gmail search results, and generally just find things faster.

Here’s what Gmail operators look in action looks like:

Examples of some useful Gmail Search Operators

Examples of some useful Gmail Search Operators

You can see the official documentation from Google here (it also lists out all the search operators you can use).

So Why Use Gmail Search Operators?

If you only have a few emails inside your Gmail inbox, it may not be too difficult to keep track of everything.

However, for most people, this isn’t the case (especially if you are working remotely). Chances are you have a lot of emails and even the best Google Workspace setup and all the useful Gmail add-ons in the world can’t save you sometimes.

Gmail is the most popular email platform with over billion users worldwide, with 26% of emails being opened within Gmail. That’s a lot of emails.

Email client usage statistics

Email client usage statistics

Gmail search operators save you time. Instead of browsing through all your messages just to find the one that one thing you’re looking for, just use an operator.

Using these Gmail search commands you can quickly:

  • Search for messages from a specific sender
  • Find emails sent to a certain person
  • Search for specific keywords
  • And more.

You can also string together multiple search operators to get even more specific results (more on that later).

string together multiple search operators to get even more specific results

How to string together multiple search operators to get even more specific results

The One Disadvantage of Gmail Search Operators

Gmail search operators can and will save you time. There’s just one thing that can prevent them from working as well and it has to do with SMTP ports.

Let me explain:

If you access your email through a Gmail account, you’ll be okay to freely use these operators to find emails.

However, if you have an IMAP account that is configured using the Gmail app, results may not be as accurate when it comes to Gmail search operators.

Just bear that in mind when searching your inbox for that important email you’ve lost.

Click to Tweet

How to Use Gmail Search Operators

Using a Gmail search operator is pretty easy. Just click in the search box (that sits above your inbox) and type in your operator:

Using search commands in Gmail

Using search commands in Gmail

Entering your search operators or keywords for searching your inbox messages –works just like Google Search.

From here, just use whatever operator you need to filter your Gmail search results. You can also combine multiple Gmail search operators to filter your results even more.

Gmail Search Features Explained

Any information you remember about that email can be added to one of the suggested parameters:

  • From (who sent the email to you)
  • To (who actually received the email)
  • Subject (name of the email subject)
  • Has the words (any words that you remember being in the email content)
  • Doesn’t have (anything you know the email doesn’t contain)
  • Has an attachment (if the email had attached documents or images)
  • Don’t include chats (exclude any chat conversations)
  • Size (the size of the email)
  • Date within (the time range from one day to one year)
  • Search (the folder which you want to include)

Useful Gmail Search Operators

Here are the shortcuts to the above-mentioned parameters you can type in the search bar:

  • -(term) – exclude emails with that specific term
  • (term or phrase) – search for a specific word or phrase
  • +(word) – searching for email messages containing the exact word
  • After:(date) – search for emails sent on or after a specific date
  • Before:(date) – search for emails sent before a specific date
  • Bcc:(name) – search for emails sent that blind copied a specific person
  • CC:(name) – search for email sent that carbon copied a specific name
  • Category:(category name) – search for email messages in category
  • Filename:(name of file) or (type of file) – search for a specific file or type of file attachment
  • In:(folder) or (label) – search for emails in that folder or label
  • Subject:(word) or (phrase) – search for emails with that word or phrase in
  • In:anywhere – search for emails in any of your Gmail folders

So these are the parameters for writing your Gmail search operators, but let’s actually check out some practical uses:

20 Advanced Gmail Search Operators (You’ll Want to Use)

Think of Gmail search operators as shortcuts for quickly finding things in your inbox.

Want a head start?

Check out this list of useful Gmail search operators to help you find exactly what you need:

1. View a List of All Emails Sent by a Specific Person

View A List Of All Emails Sent By A Specific Person

How To View A List Of All Emails Sent By A Specific Person

If you want to view a list of all emails that were sent to you by a specific person, use this search operator. When you start typing in a name after from: suggested contacts from your company and from your Google Contacts will appear below the search bar. Click a contact to fill in their email address.


2. View a List of All Emails Sent to a Specific Person

View A List Of All Emails Sent To A Specific Person

How To View A List Of All Emails Sent To A Specific Person

If you want to return emails that were sent to a specific email address, use this Gmail search operator. You can use the operator with a specific email address or you can type the name of the person.

In the latter version, you will see a list of emails that were sent to anyone with this name.


3. Find Emails You Sent to Recipients in a Particular Field

Find Emails That You Sent To Recipients In A Particular Field

How to Find Emails You Sent To Recipients In A Particular Field

Sender and recipient searches won’t apply to the CC (carbon copied) or BCC (blind carbon copied) field. To search these areas, there are separate search operators. Use the cc: or bcc: operators to see a list of emails that were sent in these particular fields.


4. Find Messages from Specific Mailing Lists

Reach Messages From Specific Mailing Lists

How to Reach Messages From Specific Mailing Lists

To list the messages from specific mailing lists, use the list command followed by the address of the mailing list.


5. Access the Emails According to the Keywords in Them

Access The Emails According To The Keywords In Them

How To Access The Emails According To The Keywords In Them

The most basic search in Gmail is when you don’t use any operator, just type a keyword in the search bar.

For example, if you know you have an email with a specific word somewhere in it, or if there’s a topic you’re interested in searching, simply type that word or phrase into the search bar and hit the Enter.


6. List the Emails Containing Exact Keywords

List The Emails Containing Exact Keywords

How To List The Emails Containing Exact Keywords

If the phrase you would like to search for contains more than one word, use the “…” quotation marks to start an exact search. This will only return emails that contain the quoted phrase exactly.


7. Access Emails According to the Words in the Subject Line

Access The Emails According To The Words In The Subject Line

How To Access The Emails According To The Words In The Subject Line

You can search for emails by the contents of their subject lines. By using the subject: operator followed by a word or phrase you would like to find, you can specifically search only within the subject lines.


8. View a List of All Emails That Contained a File Attachment

View A List Of All Emails That Contained A File Attachment

How To View A List Of All Emails That Contained A File Attachment

Want to know how we increased our traffic over %?

Join 20,+ others who get our weekly newsletter with insider WordPress tips!

Subscribe Now

You can search only for messages that have an attachment with the has:attachment Gmail search operator. Gmail filters your emails and only shows the messages that contain a file attachment of any kind, regardless of file type or format.

This Gmail search operator will cause the advanced search filters to appear:

Pre-load search filters in Gmail

Pre-load search filters in Gmail

Just select the type of attachment you want to see, and Gmail will automatically filter your inbox accordingly.


9. Find Emails That Contained a Specific Type of File Attachment

Find Emails That Contained A Specific Type Of File Attachment

How To Find Emails That Contained A Specific Type Of File Attachment

If you use Google Drive and frequently send such files, you can use several search operators for specific Google Drive attachments. “has: drive” will show you any emails with any Drive attachment.

But you can also use specifically “has: spreadsheet” for Google Spreadsheet attachments, “has: document” for Google Docs documents, and “has: presentation” for Google Slides slideshow presentations.


List Emails That Contain YouTube Videos

List Emails That Contain YouTube Videos

How to List Emails That Contain YouTube Videos

To search for messages that contain YouTube videos, use the searach operator has:youtube. This will show only the emails that contain an embedded YouTube link.

YouTube links in emails

YouTube links showing in emails


Search Emails Labels by Filename or File Type

Search Emails Labels By Filename Or File Type

How To Search Emails Labels By Filename Or File Type

The filename: Gmail search operator can be used to search for emails that have an attachment with a specific title or a specific extension that appears in its name.

For example, if you remember that an email had an attachment with a specific name, you can easily find it with this operator. You can also return any emails with a certain extension.

You can also focus your search to a specific email label by combining with the label operator like this label:important filename:pdf

Specific files showing in Gmail

How to see specific files in your Gmail inbox


Return Emails from a Specific Location

Return Emails Stored In A Specific Location

How To Return Emails Stored In A Specific Location

Use the in: search operator to find emails in a specific folder, for example, the Spam folder or any custom folder you created. You can also use the in: Gmail search operator followed by “anywhere” to search throughout your entire Gmail history.


Return Emails in a Specific Category

Return Emails In A Specific Category

How To Return Emails In A Specific Category

You can return the messages from a certain category in your Gmail account with the category: search operator followed by the name of the category.


Find Marked Messages

Find Marked Messages

How To Find Marked Messages

You can search for emails with a specific status in your Gmail account. Just put the condition after the is: search operator to return these marked messages.


Find Messages from a Certain Time Period

Find Messages From A Certain Time Period

How To Find Messages From A Certain Time Period

If you are looking for messages from a certain time period, you can use the commands before: and after: for emails sent before or after a specific date.

Alternatively, you can use older: instead of before: and newer: instead of after: as they are practically the same. The date must be given in the date format yyyy-mm-dd.


Find Messages by a Specific Label

Find Messages By A Specific Label

How To Find Messages By A Specific Label

You can filter emails that have a specific label. To do this, use the label: Gmail operator followed by the name of the label you’re searching for.


Remove Some Messages from the Search Results

Remove Some Messages From The Search Results

How To Remove Some Messages From The Search Results

You can use a minus before the word to remove some unwanted messages from your search. This operator will exclude any emails that have a specific keyword you type after the minus sign.


Find Messages That Exceed a Certain Size

Reach Messages That Exceed A Certain Size

How to Find Find Messages That Exceed A Certain Size

If you want to list the messages that exceed a certain size in bytes, use the size: operator followed by the number of bytes. This way Gmail will return all messages with attachments or content that make them larger than the size you searched for.

You can also use abbreviations, for example, 15M for


List Emails That Include Multiple Conditions

List Emails That Include Multiple Conditions

How To List Emails That Include Multiple Conditions

You can combine multiple conditions and create more specific and accurate searches. The AND Gmail operator ensures that both of the operator:value pairs apply to your search.

Using two conditions separated with space and without the AND operator gives the same result.


List Emails That Comply with One of the Conditions

List Emails That Comply With One Of The Conditions

How To List Emails That Comply With One Of The Conditions

Putting OR between two operator:value pairs will return a list of emails that meet either of the two conditions.


Click to Tweet


Now you know how to use Gmail search operators. Hopefully, your days of getting lost in your inbox are over.

With these features, Gmail allows you to become super efficient with both managing your inbox and sending emails. Combine these Gmail search operators with some solid methods of finding email addresses, and you’ll be an email pro in no time.

Further reading: Google Search Operators: 40 Commands to Know in

Save time, costs and maximize site performance with:

  • Instant help from WordPress hosting experts, 24/7.
  • Cloudflare Enterprise integration.
  • Global audience reach with 28 data centers worldwide.
  • Optimization with our built-in Application Performance Monitoring.

All of that and much more, in one plan with no long-term contracts, assisted migrations, and a day-money-back-guarantee. Check out our plans or talk to sales to find the plan that’s right for you.


Gmail’s a Google product, so of course it has powerful search features. But some of Gmail’s search features are hidden and don’t appear in the Search Options pane. Learn Gmail’s search tricks to master your massive inbox.

You can also create filters from any search you can perform. Filters automatically perform actions on incoming emails, such as deleting them, applying a label, or forwarding them to another email address.

Basic Search Features

Instead of just typing a search query in the search box, click the down arrow to reveal more search options.

The search options dialog exposes many of Gmail&#;s basic search operators. But there are some search options that don’t appear in this dialog.

You can skip this dialog for basic searches. Perform a search with the search options dialog and you&#;ll see the search operator you&#;ll need in the future. For example, if you type into the search box, you’ll see the following search appear in the search box:


Useful search operators you can access from the basic dialog include:

  • to: &#; Search for messages sent to a specific address.
  • from: &#; Search for messages sent from a specific address
  • subject: &#; Search the subject field.
  • label: &#; Search within a specific label.
  • has:attachment &#; Search only for messages that have attachments
  • is:chat &#; Search only chats.
  • in:anywhere &#; Also search for messages in the spam and trash. By default, Gmail’s search ignores messages in the spam and trash.

Constructing Searches

To put together more complicated searches, you&#;ll need to know the basics.

  • ( ) &#; Brackets allow you to group search terms. For example, searching for subject:(how geek) would only return messages with the words “how” and “geek” in their subject field. If you search for subject:how geek, you’d get messages with “how” in their subject and “geek” anywhere in the message.
  • OR &#; OR, which must be in capital letters, allows you to search for one term or another. For example, subject:(how OR geek) would return messages with the word “how” or the word “geek” in their titles. You can also combine other terms with the OR. For example, OR has:attachment would search for messages that are either from or have attachments.
  • “ “ &#; Quotes allow you to search for an exact phrase, just like in Google. Searching for “exact phrase” only returns messages that contain the exact phrase. You can combine this with other operators. For example, subject:”exact phrase” only returns messages that have “exact phrase” in their subject field.
  • &#; &#; The hyphen, or minus sign, allows to search for messages that don’t contain a specific term. For example, search for and you’ll only see messages that aren’t from

Hidden Search Tricks

You can access many search operators from the search options dialog, but some are hidden. Here’s a list of the hidden ones:

  • list: &#; The list: operator allows you to search for messages on a mailing list. For example, list:[email protected] would return all messages on the [email protected] mailing list.
  • filename: &#; The filename: operator lets you search for a specific file attachment. For example, file:example.pdf would return emails with a file named example.pdf attached.
  • is:important, label:important &#; If you use Gmail’s priority inbox, you can use the is:important or label:important operators to search only important or unimportant emails.
  • has:yellow-star, has:red-star, has:green-check, etc. &#; If you use different types of stars (see the Stars section on Gmail’s general settings pane), you can search for messages with a specific type of star.

  • cc:, bcc: &#; The cc: and bcc: features let you search for messages where a specific address was carbon copied or blind carbon copied. For example, cc:[email protected] returns messages where [email protected] was carbon copied. You can’t use the bcc: operator to search for messages where you were blind carbon copied, only messages where you bcc’d other people.
  • deliveredto: &#; The deliveredto: operator looks for messages delivered to a specific address. For example, if you have multiple accounts in the same Gmail inbox, you can use this operator to find the messages sent to a specific address. Use deliveredto:[email protected] to find messages delivered to [email protected]

Saving a Filter

Create a filter to automatically perform actions when a message matches a specific search.

To create a filter, click the down arrow again, then click the “Create filter with this search” option.

Select an action and click the “Create filter” button.

You can manage your filters from the Filters pane on Gmail’s settings page.

Filters can also be used to block email addresses. We’ve covered using filters to block your crazy ex in the past.


Search parameters gmail

Emails that are either starred or unreadis:unread OR is:starredEmails with specific recipients in the To or Cc fieldsto:amit OR cc:aryamanEmails received during a specific time periodafter/01/01 before/06/15Search for messages older or newer than a time periodolder_than:7d (for 7 days) newer_than:2m (for 2 months) older_than: 2y (for 2 years)Search Gmail by sizelargerM (for emails larger than 10 MB) smaller:1M (for emails small than 1Email messages that are in a particular email folder (or label).in:label_name label:label_name label:personal-emails in:anywhere (message anywhere in Gmail)Find emails that have particular words in the subject linesubject:invoice subject:(invoice OR receipt) subject:“payment received”Find messages that contain particular wordsdinner OR movie (either words) dinner AND movie (contain both words) (dinner movie) (contain both words) “dinner movie” (exact phrase)Find emails that have an attachmentshas:attachments filename:pdf (search attachments by type) filename:emails.csv (search by file name)Search for messages delivered to a particular email addressdeliveredto:[email protected]Emails where my email is either in CC or BCCcc:me OR bcc:meEmails that do not contain a specific word-catsFind emails messages in trash or spamlabel:spam OR label:trashFind emails anywhere but in spam or trashin:anywhereFind emails that contain links to Google Drive or Google Slides or YouTubehas:youtube OR has:drive OR has:presentation
How to perform advanced search in gmail

Another slap in the face burned her cheek. Remembering that she couldn't just turn around and leave, Julia knelt down in front of the hostess and kissed her hand, said, thank. You, Lyubov Viktorovna. After that, I quietly slipped out of the apartment, grabbing my jacket. The woman got to the office normally.

Now discussing:

AaaA, super, squeeze Lenkin's breasts and finish. Fast, something I, threesome I have violent, but short-lived. My husband pulls his penis out of me and switches to Lenka, putting her cancer now.

2498 2499 2500 2501 2502