Google Advanced Search
Google Advanced Search
Advanced search operators are query words or symbols that perform special actions in Gmail search. These operators allow you to find what you're
looking for quickly and accurately. They can also be used to set up filters so you can organize your inbox automatically. Some of the most useful
operators are listed below. You can also refine your search by clicking the arrow in the search box.
Operator
Definition
Examples
from:
Example: from:amy
Meaning: Messages from Amy
to:
Example: to:david
Meaning: All messages that were sent to David (by you/someone else)
subject:
Example: subject:dinner
Meaning: Messages that have the word "dinner" in the subject
OR
(hyphen)
label:
has:attachment
list:
Example: list:info@example.com
Meaning: Messages with the words info@example.com in the headers,
sent to or from this list
filename:
Example: filename:physicshomework.txt
Meaning: Messages with an attachment named "physicshomework.txt"
()
in:inbox
in:trash; in:spam
is:important
label:important
is:starred
is:unread
is:read
has:yellow-star
has: red-bang
has: green-check
has: blue-info
cc:
Example: cc:david
bcc:
after:
before:
older:
newer:
older_than
newer_than
Example: newer_than:2d
Meaning: Finds messages sent within the last two days.
is:chat
deliveredto:
Example: deliveredto:username@gmail.com
Meaning: Any message with username@gmail.com in the DeliveredTo: field of the message header (which can help you find messages
forwarded from another account or ones sent to an alias).
circle:
Example: circle:friends
Meaning: Any message that was sent by a person in your "Friends"
circle.
Examples: circle:"soccer friends (team blue)" or circle:"my \"fab
four\""
Notes: For circle names that include a space, parentheses, curly
brackets, or vertical bar, add quotes around the name. For names that
include quotes, add a back slash immediately before the quotes.
has:circle
Example: has:circle
Meaning: Any message that was sent by a person in any of your
circles.
category:
Example: category:updates
Meaning: All messages in the Updates category.
Example: category:social Mindy
Meaning: Messages in the Social category that include Mindy.
size:
Example: size:1000000
Meaning: All messages larger than 1MB (1,000,000 bytes) in size.
larger:
smaller:
Example: larger:10M
Meaning: All messages of at least 10M bytes (10,000,000 bytes) in
size.
+
(plus sign)
Example: +unicorn
Meaning: Finds messages containing unicorn but not unicorns or
unciorn
rfc822msgid:
Example:rfc822msgid:200503292@example.com
Meaning: Locates the exact message with the specified SMTP
message-id. Learn more about headers.
has:userlabels
has:nouserlabels
Example: has:nouserlabels
Meaning: Finds all messages without any of your own labels (excludes
automatic labels like inbox, spam, and trash). Since Gmail applies
labels to individual messages, you might see results that appear to
have labels; in this case, another message in the same conversation
thread has had a label applied to it.
Boolean operators
You can use boolean operators such as 'OR' when searching in Gmail.
For example, to look for messages from username@gmail.com and messages that contain the subject line 'Meeting reminder', you can enter
'username@gmail.com OR meeting reminder' in your Gmail search box.
Using these along with Gmail's advanced operators can be a great way of making your search criteria more powerful. The 'or' function in Gmail is
represented by 'OR,' and the 'not' function is represented by a minus (-). You also can use quotes (" ") to specify an exact phrase.