Gmail Search Operator Builder

Every Gmail search operator, as a form. Fill in what you are looking for and the search string builds as you type — copy it into the Gmail search box, or open it in Gmail directly.

People

Words

Attachments and files

When

Where

State

Rarely needed
in:inbox
Open in Gmail

The operators, if you would rather learn them

Gmail's search box takes the same operators the builder writes. These are the ones worth memorising:

OperatorDoesExample
from:Senderfrom:maya@example.com
to:Recipientto:me
subject:Words in the subjectsubject:invoice
has:attachmentOnly mail with fileshas:attachment
larger:Size, for clearing spacelarger:10M
older_than:Age — d, m, yolder_than:1y
newer_than:Recent onlynewer_than:7d
label:A label you madelabel:clients
is:unreadUnread onlyis:unread
in:anywhereIncludes spam and trashin:anywhere
cc: bcc:Copied recipientscc:finance@example.com
deliveredto:The address it actually reacheddeliveredto:you+r@example.com
list:A mailing listlist:team@example.com
filename:Attachment name or extensionfilename:pdf
has:driveAlso document, spreadsheet, presentation, youtubehas:spreadsheet
smaller:The other end of sizesmaller:1M
after: before:Fixed dates, YYYY/MM/DDafter:2026/01/15
category:An inbox tabcategory:promotions
is:read, important, snoozed, muted, starredis:important
has:userlabelsLabelled, or has:nouserlabelshas:nouserlabels
has:red-bangA specific star or markerhas:blue-star
rfc822msgid:One exact messagerfc822msgid:200503@example.com
header:A custom headerheader:X-Mailer:MyApp
-Excludes the next term-unsubscribe
+Exact word, no synonyms+invoiced

The four the form cannot build for you

Everything above is a dropdown in the builder. These four are not, because they combine terms rather than describe one:

OR matches either side and must be capitalsfrom:maya OR from:sam. Braces do the same thing: {from:maya from:sam}. AND is the default, so you rarely type it.

( ) groups terms, which is what makes OR useful: subject:invoice (from:maya OR from:sam).

AROUND finds words near each other — invoice AROUND 5 overdue matches the two within five words.

" " is an exact phrase. The builder adds these automatically whenever a field you fill in contains a space.

Build the bones in the form, copy it out, then add an OR group by hand if you need one.

Three searches worth saving

Reclaim storage: has:attachment larger:10M older_than:1y — big old files, the fastest way back under quota.

Find a thread you half-remember: from:someone@example.com has:attachment newer_than:6m — narrowing by sender and recency beats scrolling.

What did I never answer: is:unread -in:spam older_than:7d — imperfect, but it surfaces the pile faster than the inbox does.

That last one is a workaround rather than an answer. Gmail can tell you what is unread; it cannot tell you which conversations are waiting on you, or that someone you speak to every week has gone quiet for a month.

That is the job Simple CRM for Gmail does — notes, follow-ups and tasks attached to the person who emailed you, in the sidebar, without another tab. Free for fourteen days, no card.