Updated: June 9, 2023.
Here is the list of 50+ Gmail 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 Gmail Search Operators
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!

50+ Advanced Gmail Search Operators
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.
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.
from:
Example: from:olga
2. Filter By The Recipient
This Gmail search operator will return emails sent to a specific recipient.
to:
Example: to:olga

3. Filter By The Recipient With A Copy
This Gmail search operator lets you filter by specific recipients who received a copy.
cc:
bcc:
Example: cc:olga

4. Filter By The Words Used In The Subject Line
Use this to look for emails that have specific phrases in the subject line.
subject:
Example: subject:seo

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.
( )
Example: (seo sem)

6. Filter By An Exact Phrase
Use this if you want to find emails that contain the exact phrase.
" "
Example: "seo audit"

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 in:
search operator to search for messages in a specific folder.
in:
Example: in:spam

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 +
.
+
Example:+seosly

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.
label:
Example: label:work

To display only work-related messages, you just need to type label:work
. 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.
10. Find Emails That Have Words Near Each Other
This search operator lets you specify how many words apart the phrases should be.
AROUND
Example: seo AROUND 20 audit

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”.
11. 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 subject(-seo)
.
subject:( )
Example: subject:(seo -audit)

This one seems to be working just fine without ( )
as well, so you might just use subject:-seo
. Don’t put any spacer after or before the colon.
12. 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.
in:anywhere
Example: in:anywhere

If you want to find messages with a specific keyword in any folder, just type seo in:anywhere
. 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.
13. 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.
is:important
label:important
Example: is:important

14. Find Emails In A Specific Category
This Gmail search operator allows you to search for messages in a specific category.
category:primary
category:social
category:promotions
category:updates
category:forums
category:reservations
category:purchases
Example: category:updates

To find messages with the word “seo” in the primary category type seo category:primary
.
15. 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).
is:starred
Example: is:starred

16. Find Unread Emails
Use this operator to find only unread emails. Awesome for checking if you have not missed some emails.
is:unread
Example: is:unread

17. Find Read Emails
This Gmail operator does the contrary. It lets you search for emails that are marked as unread.
is:read
Example: is:read

18. 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.
in:snoozed
Example: in:snoozed

19. 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.
has:userlabels
Example: has:userlabels

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

20. 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.
after:
before:
older:
newer:
Example: before:2020/07/15

Example: after:07/15/2020

21. 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.
older_than:
newer_than:
Example:newer_than:6m

22. 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.
deliveredto:
Example: deliveredto:[email protected]

23. Find Chat Messages
If you’re still using Gmail chat, this operator lets you search chat messages.
in:chats
Example: in:chats seo

25. Find Emails From A Mailing List
This command lets you display messages from a particular mailing list. This is most useful for work emails.
list:
Example: list:[email protected]

26. 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.
has:yellow-star
has:blue-info
has:green-check
Example: has:yellow-star

Note that has:yellow-star
works like in:starred
. It simply displays starred messages.
Gmail Search Operators To Find 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.
27. Find Emails With Attachments
Use this operator to display only the messages that have attachments.
has:attachment
Example: has:attachment

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

This will make finding specific attachments way easier.
28. 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.
has: drive
has: document
has: spreadsheet
has: presentation
Example: has:document

This is very useful as more and more people are switching to online documents instead of sending documents as attachments.
29. 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.
filename:
Example: filename:pdf
Example: filename:robots.txt

30. 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.
has:youtube
Example: has:youtube

31. 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.
size:
Example: size:1000000

32. 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.
larger:
smaller:
Example: larger:10M

How To Combine Gmail 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 AND
, OR
, NOT
, or AND NOT
in your Gmail searches just like in Google search. More about it later.
33. Find Messages Matching Multiple Terms
This search command will display messages from either “olga” or from “tom”. Welcome to Gmail advanced search!
OR
or { }
Example: from:olga OR from:tom
Example: (from:olga from:tom}

34. 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.
( )
Example: subject:(seo help)

35. Find Snoozed, Starred, Unread, Or Read Emails
This operator lets you search for emails from multiple groups.
is:snoozed
is:starred
is:unread
is:read
Example: is:read is:starred

You can combine is:read
with is:starred
but don’t combine mutually-inclusive operators like is:read
and is:unread
.
36. 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.
-
Example: seo -sitemap

How To Use Boolean Operators In Gmail Search
You can use the Boolean operators, such as AND
, OR
, NOT
, or AND NOT
to refine your searches in Gmail in yet another way.
37. 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.
AND
Example: "seosly" AND "backup"

38. Search For Messages That Meet One Or Two Criteria
This search command will display messages that are from WordPress or from Coursera, or both.
OR
Example: from:wordpress OR from:coursera

39. Exclude Messages That Meet Certain Criteria
NOT
Example: NOT from:wordpress

40. 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.
AND NOT
Example: in:important AND NOT in: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.
41. 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.
from:olga subject:("seo audit") filename:pdf

42. 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.
from:olga subject:("seo audit") filename:pdf newer_than:1m

43. Search For All The Messages With Attachments From Olga
With this search command, I can see all the emails from Olga which as “seo” in the subject line and have an attachment.
from:olga subject:(seo) has:attachment

44. 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.
from:olga has:youtube +seo

45. 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.
from:me has:document subject:"seo audit"

46. 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”.
from:olga is:unread has:presentation +seo

47. 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.
from:me has:document AND has:spreadsheet

48. Check What Labels You Have In Your Gmail
label:

Type label:
and you will see all the labels available in your Gmail.
49. 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.
category:

Type category:
to find what categories you have
50. 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 is:unread
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 is:unread "seo audit"
.
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 from:
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 label:
and then label name in the top search bar in your Gmail mailbox. To search for emails labeled as “work”, simply type label:work
. To search for an email with user labels, type has:userlabels
.
How can I view all unread emails in Gmail?
To view all unread emails in Gmail type is:unread
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 from:
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 after:mm/dd/yyyy
in the top search box in your Gmail inbox. To search for emails before a certain date type before:mm/dd/yyyy
.
Check my other tutorials with different types of operators like:
- Google search operators (a list of 50+ operators with multiple examples)
- Bing search operators (a list of 30+ operators with examples)
- Yandex search operators (a list of 25+ operators plus examples)
- Google Drive search operators (a list of 25+ search operators with examples)
- YouTube search operators (a list of 50+ search operators for YouTube)