Simpliguides › Email › Gmail
How to search Gmail like a pro (search operators)
Typing a name or word into Gmail's search box works, but it returns everything that vaguely matches. Search operators narrow that down to exactly what you're after — a specific sender, a date range, an attachment type — in one line. This guide covers the desktop browser version.
What you'll need: A Gmail account. A desktop or laptop browser — Chrome, Firefox, Safari, or Edge. The same operators work in the Gmail mobile app's search box.
Open the search box
Go to mail.google.com and click into the search box at the top of the screen, above your inbox.
Search by sender
Type from: followed by an email address or name, with no space after the colon, then press Enter.
from:[email protected]This returns every email from that address, regardless of subject or how long ago it arrived.
Search by subject
Use subject: to match words in the subject line only, ignoring the body of the email.
subject:invoicesubject:"March invoice" won't match a subject that says "invoice for March".Search within a date range
Use after: and before: with a date in YYYY/MM/DD format to limit results to a specific window.
after:2026/01/01 before:2026/03/01That finds everything from January and February 2026. Use either operator on its own if you only need a start point or an end point.
Find emails with attachments
Use has:attachment to show only emails that came with a file attached.
has:attachment from:[email protected]To narrow it down to a specific file type, add filename: with the extension:
filename:pdfExclude words and search for exact phrases
Put a minus sign directly before a word, with no space, to exclude anything containing it.
meeting -cancelledWrap a phrase in quotation marks to match those words together, in that exact order, rather than anywhere in the email.
"quarterly report"Combine operators for a precise search
Chain operators together with spaces to combine conditions. Use OR in capitals to match either one thing or another.
from:[email protected] has:attachment subject:invoice OR subject:receiptGmail treats everything you add as narrowing the results further, except either side of an OR.
Variations
Use is:unread to see only emails you haven't opened, or is:starred for anything you've starred:
is:unread from:example.comUse label: followed by the label name to search inside one folder rather than everywhere:
label:receiptsUse larger: with a size to find emails above a certain size, useful for tracking down what's using up your Gmail storage:
larger:10MTroubleshooting
Check there's no space between the operator, the colon, and the value — from: example.com with a space after the colon won't work the same way as from:example.com. Also check the operator itself is spelled correctly; Gmail silently treats an unrecognised operator as plain text to search for.
A plain search covers every folder except Spam and Trash. If the email might have landed in one of those, add in:spam or in:trash to your search, or use in:anywhere to include everything.
Click the small dropdown arrow at the right-hand end of the search box to open Gmail's advanced search panel — it offers the same operators as fields you fill in, and builds the search query for you.
Need a calculator rather than a guide? Try Simplicalcs →