You can use words or symbols called search operators to filter your Gmail search results. You can also combine operators to filter your results even more.
Use a search operator
- Go to Gmail.
- In the search box, type the search operator.
Tips:
- Once you do a search using search operators, you can use the results to set up a filter for these messages.
- 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.2047-100 is considered 2 numbers: 01.2047 and 100.
What you can search by | Search operator |
---|---|
Specify the sender |
Example: |
Specify a recipient |
Example: |
Words in the subject line |
Example: |
Messages that match multiple terms |
Example: Example:
Example: |
Remove messages from your results |
Example: |
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. |
Example: Example: |
Messages that have a certain label |
Example: |
Messages that have an attachment (including inline images) |
|
Messages that have a Google Drive, Docs, Sheets, or Slides attachment or link |
|
Messages that have a YouTube video |
|
Messages from a mailing list |
Example: |
Attachments with a certain name or file type |
Example: Example: |
Search for an exact word or phrase |
Example: |
Group multiple search terms together |
Example: |
Messages in any folder, including Spam and Trash |
Example: |
Search for messages that are marked as important |
|
Starred, snoozed, unread, or read messages |
Example: |
Messages that include an icon of a certain color |
|
Recipients in the cc or bcc field |
Example: |
Search for messages sent during a certain time period |
Example: Example: Example: Example: |
Search for messages older or newer than a time period using d (day), m (month), and y (year) |
Example: |
Search by email for delivered messages |
Example: |
Messages in a certain category |
|
Messages larger than a certain size in bytes |
Example: |
Messages larger or smaller than a certain size in bytes |
Example: |
Results that match a word exactly |
Example: |
Messages with a certain message-id header |
Example: |
Messages that have or don't have a label |
Important: Labels are only added to a message, and not an entire conversation. |
Search for messages you muted |
|