Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

Gmail Search Operators: Find Emails by Sender, Date, and Attachment

Use copyable Gmail searches for PDFs, unread messages, exact phrases, and date ranges. Learn how to combine filters and widen an empty search.

Table of Contents

Start with the detail you remember best. Use from: for a sender, subject: for a subject word, or filename: for an attachment. Combine filters to narrow the results. For example, from:boss@example.com after:2025/06/01 before:2025/07/01 filename:pdf looks for PDF attachments from that sender during the date window.

How to Take Advantage of Gmail's Incredibly Powerful Search Bar Picture 1

Copy a search that matches the job

To find…Try this search
Unread messages with a subject wordis:unread subject:update
Excel files from one senderfrom:amos@example.com filename:xlsx
Messages containing an exact phrase"meeting agenda"
Messages with attachments from the past weekhas:attachment newer_than:7d
Contract references under the Work labellabel:work contract

How to Take Advantage of Gmail's Incredibly Powerful Search Bar Picture 2

Combine conditions without losing useful matches

Spaces generally combine conditions. To accept either of two senders and also require an attachment, use {from:alex@example.com from:rachel@example.com} has:attachment. You can also use uppercase OR to express alternatives, or put a minus sign before a condition to exclude it, such as -from:news@example.com.

How to Take Advantage of Gmail's Incredibly Powerful Search Bar Picture 3

If there are no results, remove one condition at a time

First widen the date range or remove the extension. A shared Drive link may not be an ordinary PDF attachment. If you think the message was deleted or marked as spam, try adding in:anywhere. Check Google’s search operator reference for more options, or see attachment-specific Gmail searches.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.