Free tools

Gmail search operators: build a search, plus the full list

Fill in what you're looking for and get the Gmail search for it, ready to copy or run in Gmail. Every Gmail search operator is listed below with an example.

Updated

Your search

Fill in a field above

Every Gmail search operator

OperatorFindsExample
from:Senderfrom:amy@example.com
to:Recipientto:me
cc: / bcc:Copied recipientcc:john@example.com
subject:Words in the subjectsubject:dinner
"…"Exact phrase"dinner and movie"
OR or { }Either termfrom:amy OR from:david
ANDBoth termsfrom:amy AND to:david
-Leave out a worddinner -movie
AROUNDWords near each otherholiday AROUND 10 vacation
label:Has a labellabel:friends
category:In an inbox categorycategory:promotions
has:attachmentHas an attachmenthas:attachment
has:drive / has:document / has:spreadsheet / has:presentationHas a Google Drive filehas:document
has:youtubeHas a YouTube videohas:youtube
filename:Attachment name or typefilename:pdf
list:From a mailing listlist:info@example.com
after: / before:Sent after or before a dateafter:2026/04/16
older_than: / newer_than:Older or newer than a span (d, m, y)newer_than:2d
is:important / is:starred / is:unread / is:read / is:snoozedBy statusis:unread
has:yellow-star and other starsBy starhas:purple-star
in:anywhereEverywhere, Spam and Trash tooin:anywhere movie
is:mutedMuted conversationsis:muted
size: / larger: / smaller:By size in bytes, or with K and Mlarger:10M
+Match a word exactly+unicorn
rfc822msgid:By Message-ID headerrfc822msgid:200503292@example.com
deliveredto:By Delivered-To addressdeliveredto:username@example.com
has:userlabels / has:nouserlabelsWith or without your labelshas:nouserlabels

How to use it

  1. 1
    Fill in any of the fields: sender, words, dates, size, attachments, labels.
  2. 2
    Copy the search, or click Search in Gmail to run it.
  3. 3
    Save it as a filter in Gmail by clicking the filter icon at the right of the search box after running it.

Questions

Why isn't my Gmail search finding anything?
Gmail doesn't search Spam and Trash unless you add in:anywhere. Dates use the format YYYY/MM/DD, and OR has to be in capitals.
Can I search by email size in Gmail?
Yes: larger:5M or smaller:500K, or size: with a number of bytes.
Do these operators work in the Gmail app on my phone?
Most do. Type them into the search bar in the Gmail app the same way.

In Bloop.email

Bloop.email searches every account at once from ⌘K, Gmail and the rest, so you don't have to search each inbox in turn.

Try Bloop.email free for 7 days