Searching in Gmail is much faster once you know the "secret" shorthand. Here is a quick-reference list of the most useful search operators to help you find exactly what you need.
from:name β Emails from a specific person (e.g., from:sarah@gmail.com).
to:name β Emails sent to a specific person.
cc:name or bcc:name β Search for recipients in those specific fields.
from:me or to:me β Quickly find stuff you sent or received.
subject:word β Search only the subject line.
"exact phrase" β Use quotes to find a specific string of words (e.g., "project update 2026").
-word β Exclude emails containing a specific word (e.g., dinner -pizza).
OR β Find emails matching either term (e.g., from:amy OR from:david). Note: "OR" must be capitalized.
has:attachment β Only show emails with files attached.
filename:pdf β Find a specific file type (works for .doc, .jpg, etc.).
has:drive or has:document β Find emails with Google Drive links or Docs.
larger:10M β Find emails larger than 10 MB (great for clearing space!).
after:2026/01/01 β Emails sent after a specific date (Format: YYYY/MM/DD).
older_than:2m β Emails older than 2 months (d for days, y for years).
newer_than:7d β Emails from the last week.
is:unread β Find all those pesky unopened messages.
is:starred β Show only your flagged/starred emails.
in:trash or in:spam β Search folders that are usually excluded from regular results.
in:anywhere β Searches everything, including Trash and Spam.
label:work β Search within a specific custom label.