Search operators you can use with Gmail
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.
How to use a search operator
- Open Gmail.
- In the search box, type the search operator.
Search operators you can use
Tip: Once you do a search using search operators, you can use the results to set up a filter for these messages.
What you can search by | Search operator & example |
---|---|
Specify the sender |
Example:Â |
Specify a recipient |
Example:Â |
Words in the subject line |
Subject: Example:Â |
Messages that match multiple terms |
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 |
Example:Â |
Messages that have a certain label |
Example:Â |
Messages that have an attachment |
Example:Â |
Messages that have a Google Drive, Docs, Sheets, or Slides attachment or link |
Example:Â |
Messages that have a YouTube video |
Example:Â |
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 |
Example:Â Â |
Starred, unread, or read messages |
Example:Â |
Messages that include an icon of a certain color |
Example:Â |
Recipients in the cc or bcc field |
Example:Â Note:Â You can't find messages that you received on bcc. |
Search for messages sent during a certain time period |
Example:Â Example: |
Search for messages older or newer than a time period using d (day), m (month), and y (year) |
Example:Â |
Chat messages |
Example:Â |
Messages delivered to a certain email address |
Example:Â |
Messages in a certain category |
Example:Â |
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 |
Example:Â Note:Â Labels are only added to a message, and not an entire conversation. |
Credits to https://support.google.com/mail/answer/7190?hl=en