Show Menu
Cheatography

Gmail Search Operators Cheat Sheet by

Search operators you can use with Gmail. Words or symbols called search operators to filter your Gmail search results. You can also combine operators to filter your results even more.

Gmail Search operators

Specify the sender
from
:
Example:
from:ricky
Specify a recipient
to:

Example:
 to:luke
Specify a recipient who received a copy
cc:

bcc:

Example:
cc:kesha
Words in the subject line
subject:

Example:
subjec­t:beach
Messages that match multiple terms
OR
or
{ }

Example:
from:amy OR from:david

Example:
{from:luke from:k­esha}
Remove messages from your results
-

Example:
beach -rock
Find messages with words near each other. Use the number to say how many words apart the words can be

Add quotes to find messages in which the word you put first stays first.
AROUND 

Example:
flight AROUND 10 airport

Example:
"­secret AROUND 25 birthd­ay"
Messages that have a certain label
label:

Example:
label:­friends
Messages that have an attachment
has:at­tac­hment

Example:
has:at­tac­hment
Messages that have a Google Drive, Docs, Sheets, or Slides attachment or link
has:drive 
has:document
has:sp­rea­dsheet
has:pr­ese­ntation

Example:
has:drive 
Messages that have a YouTube video
has:yo­utube

Example:
has:yo­utube
Messages from a mailing list
list:

Example:
list:i­nfo­@ex­amp­le.org
Attach­ments with a certain name or file type
filename:

Example:
Gmail-­che­ats­hee­t:pdf

Example:
filena­me:­wis­hli­st.txt
Search for an exact word or phrase
" "

Example:
"wine and movie tonigh­t"
Group multiple search terms together
( )

Example:
subjec­t:(wine movie)
Messages in any folder, including Spam and Trash
in:any­where

Example:
in:any­where movie
Search for messages that are marked as important
is:imp­ortant

 label:­imp­ortant

Example:
is:imp­ortant 
Starred, snoozed, unread, or read messages
is:starred 

 is:snoozed 

 is:unread

is:read

Example:
is:read is:starred
Messages that include an icon of a certain color
has:ye­llo­w-star

  has:bl­ue-info

Example:
has:pu­rpl­e-star
 

Gmail Search operators (Cont.)

Recipients in the cc or bcc field
cc:

 bcc:

Example:
 cc:kesha

Note: You can't find messages that you received on bcc.
Search for messages sent during a certain time period
after:

before:

older:

newer:

Example:
after:­200­4/08/28

Example:
after:­08/­28/2004

Example:
before­:20­04/­28/08

Example:
before­:08­/28­/2004
Search for messages older or newer than a time period using d (day), m (month), and y (year)
older_­than:

 newer_­than:

Example:
newer_­than:2d
Chat messages
is:chat

Example:
is:chat wine
Search by email for delivered messages
delive­redto:

Example:
delive­red­to:­use­rna­me@­gma­il.com
Messages in a certain category
catego­ry:­primary

catego­ry:­social

catego­ry:­pro­motions

catego­ry:­updates

catego­ry:­forums

 catego­ry:­res­erv­ations

catego­ry:­pur­chases

Example:
catego­ry:­updates
Messages larger than a certain size in bytes
size:

Example:
size:1­000000
Messages larger or smaller than a certain size in bytes
larger:

 smaller:

Example:
larger:10M
Results that match a word exactly
+

Example:
+unicorn
Messages with a certain message-id header
Rfc822­msgid:

Example:
rfc822­msg­id:­200­503­292­@ex­amp­le.com
Messages that have or don't have a label
has:us­erl­abels

has:no­use­rlabels

Example:
has:no­use­rlabels


Note: Labels are only added to a message, and not an entire conver­sation.
When using numbers as part of your query, a space or a dash (-) will separate a number while a dot (.) will be a decimal. For example, 01.204­7-100 is considered 2 numbers: 01.2047 and 100.
               
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          More Cheat Sheets by Cheatography101