Simpliguides

SimpliguidesEmailGmail

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.

1

Open the search box

Go to mail.google.com and click into the search box at the top of the screen, above your inbox.

2

Search by sender

Type from: followed by an email address or name, with no space after the colon, then press Enter.

This returns every email from that address, regardless of subject or how long ago it arrived.

3

Search by subject

Use subject: to match words in the subject line only, ignoring the body of the email.

subject:invoice
Put quotation marks around a phrase to match it exactly, in that word order: subject:"March invoice" won't match a subject that says "invoice for March".
4

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/01

That finds everything from January and February 2026. Use either operator on its own if you only need a start point or an end point.

5

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:pdf
6

Exclude words and search for exact phrases

Put a minus sign directly before a word, with no space, to exclude anything containing it.

meeting -cancelled

Wrap a phrase in quotation marks to match those words together, in that exact order, rather than anywhere in the email.

"quarterly report"
7

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:receipt

Gmail treats everything you add as narrowing the results further, except either side of an OR.

Variations

Search by read status or star

Use is:unread to see only emails you haven't opened, or is:starred for anything you've starred:

is:unread from:example.com
Search within a specific label

Use label: followed by the label name to search inside one folder rather than everywhere:

label:receipts
Find large emails clogging your storage

Use larger: with a size to find emails above a certain size, useful for tracking down what's using up your Gmail storage:

larger:10M

Troubleshooting

An operator doesn't seem to do anything

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.

I can't find an email I know exists

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.

I want to build a search without memorising operators

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.

Advertisement

Need a calculator rather than a guide? Try Simplicalcs →