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 reci­pient
to:
Example: to:luke
Specify a recipient who received a copy
cc:
bcc:
Example: cc:kesha
Words in the subject line
subject:
Example: subje­ct:­beach
Messages that match multiple terms
OR or { }
Example: from:amy OR from:d­avid
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­:fr­iends
Messages that have an atta­chm­ent
has:a­tta­chment
Example: has:a­tta­chment
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 YouT­ube video
has:y­outube
Example: has:y­outube
Messages from a mailing list
list:
Example: list:­inf­o@e­xam­ple.org
Attach­ments with a certain name or file type
filen­ame:
Example: Gmail­-ch­eat­she­et:pdf
Example: filen­ame­:wi­shl­ist.txt
Search for an exact word or phrase
" "
Example: "wine and movie tonigh­t"
Group multiple search terms together
( )
Example: subje­ct:­(wine movie)
Messages in any fold­er, including Spam and Trash
in:an­ywhere
Example: in:an­ywhere movie
Search for messages that are marked as impo­rtant
is:important
label:important
Example: is:im­portant
Starred, snoozed, unread, or read messages
is:st­arred
is:snoozed
is:unread
is:read
Example: is:read is:sta­rred
Messages that include an icon of a certain color
has:yellow-star
has:blue-info
Example: has:p­urp­le-­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­:20­04/­08/28
Example: after­:08­/28­/2004
Example: befor­e:2­004­/28/08
Example: befor­e:0­8/2­8/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­_th­an:2d
Chat messages
is:chat
Example: is:chat wine
Search by email for deli­vered messages
deliveredto:
Example: deliv­ere­dto­:us­ern­ame­@gm­ail.com
Messages in a certain cate­gory
category:primary
category:social
category:promotions
categ­ory­:up­dates
category:forums
category:reservations
category:purchases
Example: categ­ory­:up­dates
Messages larger than a certain size in bytes
size:
Example: size:­100­0000
Messages larger or smaller than a certain size in bytes
larger:
smaller:
Example: large­r:10M
Results that match a word exac­tly
+
Example: +unicorn
Messages with a certain mess­age-id header
Rfc82­2ms­gid:
Example: rfc82­2ms­gid­:20­050­329­2@e­xam­ple.com
Messages that have or don't have a label
has:userlabels
has:n­ous­erl­abels
Example: has:n­ous­erl­abels

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