Gmail search like a pro: the search operators that really help
Search is Gmail's underrated tool. With a few commands you find any invoice, any attachment and any forgotten reply in seconds. The same commands also make filters more precise.

Sender, recipient, subject
from:miller@example.com: emails from this senderfrom:@example.com: all senders of this domainto:info@yourcompany.com: to a specific address, useful with forwardingsubject:quote: «quote» in the subjectsubject:"quote renovation": exactly this phrase in the subject
Attachments
has:attachment: emails with an attachmentfilename:pdf: PDF attachmentsfilename:invoice: attachments whose name contains «invoice»larger:10M: emails over 10 MB, good for freeing up spacehas:drivehas:documenthas:spreadsheet: links to Google Drive files
Time
newer_than:7d: newer than seven days (ddays,mmonths,yyears)older_than:2y: older than two yearsafter:2026/01/01 before:2026/04/01: first quarter of 2026
Folders and state
label:invoices: with this label; for sublabels use a hyphen:label:clients-quotes-label:invoices: without this labelhas:nouserlabels: emails without a label of your own, so not yet filedin:inbox,in:sent,in:spam,in:trash,in:anywhere(including spam and trash)is:unread,is:starred,is:importantcategory:promotions: in the Promotions tab
Combining
invoice OR receipt: one of the two (OR in capitals)invoice -advertising: with «invoice», without «advertising»from:@shop.com (invoice OR order): brackets group"final notice": exact phrase{invoice receipt voucher}: curly brackets are a shorthand for OR
Saving searches and using them as filters
Gmail has no saved searches, but two ways lead there: save the address of the results page as a browser bookmark. Or turn the search into a filter: open search options, put the command into Has the words, then Create filter. That way «find receipts» becomes a label that fills itself. More in Create Gmail filters.

