Free tools · Search and save time
Gmail search builder
Build a Gmail search with from:, has:attachment, older_than: and more.
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 |
Paste the search into Gmail in any browser. In Bloop.email for Windows, search every account at once instead, with words like today, this week or unread.