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
| Operator | Finds | Example |
|---|---|---|
| from: | Sender | from:amy@example.com |
| to: | Recipient | to:me |
| cc: / bcc: | Copied recipient | cc:john@example.com |
| subject: | Words in the subject | subject:dinner |
| "…" | Exact phrase | "dinner and movie" |
| OR or { } | Either term | from:amy OR from:david |
| AND | Both terms | from:amy AND to:david |
| - | Leave out a word | dinner -movie |
| AROUND | Words near each other | holiday AROUND 10 vacation |
| label: | Has a label | label:friends |
| category: | In an inbox category | category:promotions |
| has:attachment | Has an attachment | has:attachment |
| has:drive / has:document / has:spreadsheet / has:presentation | Has a Google Drive file | has:document |
| has:youtube | Has a YouTube video | has:youtube |
| filename: | Attachment name or type | filename:pdf |
| list: | From a mailing list | list:info@example.com |
| after: / before: | Sent after or before a date | after: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:snoozed | By status | is:unread |
| has:yellow-star and other stars | By star | has:purple-star |
| in:anywhere | Everywhere, Spam and Trash too | in:anywhere movie |
| is:muted | Muted conversations | is:muted |
| size: / larger: / smaller: | By size in bytes, or with K and M | larger:10M |
| + | Match a word exactly | +unicorn |
| rfc822msgid: | By Message-ID header | rfc822msgid:200503292@example.com |
| deliveredto: | By Delivered-To address | deliveredto:username@example.com |
| has:userlabels / has:nouserlabels | With or without your labels | has:nouserlabels |
How to use it
- 1Fill in any of the fields: sender, words, dates, size, attachments, labels.
- 2Copy the search, or click Search in Gmail to run it.
- 3Save it as a filter in Gmail by clicking the filter icon at the right of the search box after running it.
Gmail searches worth knowing
Find big emails to free up space: larger:10M. Find old newsletters to clear out: category:promotions older_than:1y. Find every attachment someone sent you: from:name@example.com has:attachment. Find unread mail in your inbox: in:inbox is:unread. Find receipts: subject:(receipt OR invoice) has:attachment.
Combining operators
Gmail joins terms with AND by default, so from:amy has:attachment finds emails that are both. Use OR (in capitals) or curly braces for either: {from:amy from:david}. Put a minus sign before a term to leave it out, and group terms with brackets: subject:(dinner -movie).
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