Show Menu
Cheatography

Gmail Search Operators (Single Column) 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
Note: You can't find messages that you received on bcc.
Words in the subject line
subject:
Example: subje­ct:­beach
Messages that match multiple terms
OR or { }
Example: {from­:luke from:kesha}
Example: from:luke OR from:k­esha
Remove messages from your results
-
Example: bed -hotel
Results that match a word exac­tly
+
Example: +airp­lane
Messages that have a certain label
label:
Example: label­:me­dical
Messages that have an atta­chm­ent
has:a­tta­chment
Example: has:a­tta­chment
Messages that include an icon of a certain color
has:yellow-star
has:bl­ue-­info
Example: has:p­urp­le-­star
Search for messages that are marked as impo­rtant
is:important
label:­imp­ortant
Example: is:im­portant
Recipients in the cc or bcc field
cc:
bcc:
Example: cc:kesha
Note: You can't find messages that you received on bcc.
Chat messages
is:chat
Example: is:chat wine
Search by email for deli­vered messages
deliv­ere­dto:
Example: deliv­ere­dto­:us­ern­ame­@gm­ail.com
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.com
Attach­ments with a certain name or file type
filen­ame:
Example: filename:pdf
Example: filen­ame­:wi­shl­ist.txt
Messages in any fold­er, including Spam and Trash
in:an­ywhere
Example: in:an­ywhere movie
Search for an exact word or phrase
" "
Example: "wine and movie tonigh­t"
Group multiple search terms together
( )
Example: subje­ct:­(wine movie)
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
Starred, snoozed, unread, or read messages
is:st­arred
is:snoozed
is:unread
is:read
Example: is:read is:sta­rred
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 49 birthd­ay"
Messages in a certain cate­gory
categ­ory­:pr­imary
categ­ory­:so­cial
category:promotions
categ​ory​:up​dates
category:forums
category:reservations
category:purchases
Example: categ­​or­y​:­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
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 with a certain mess­age-id header
Rfc82­2ms­gid:
Example:
rfc822msgid:200592@example.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.
                       

Help Us Go Positive!

We offset our carbon usage with Ecologi. Click the link below to help us!

We offset our carbon footprint via Ecologi
 

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

          Gmail Keyboard Shortcuts

          More Cheat Sheets by Cheatography101