Practical understanding of every Google search operator that still works, along with some advice on how to use them.
How Google Interprets Queries
Before diving into operators, you need to know how Google reads your searches.
Parentheses
Parentheses don’t work the way most people think. If you search for [ (A B) OR (C D) ] to get results containing either “A B” or “C D”. Google doesn’t support it. The parentheses are ignored, which means you’re actually searching for [ A B OR C D ], returning results with just A and either B or C and D. If you need to search multiple phrase combinations, you have to run separate searches and combine results yourself. Most people get this wrong.
Word Order
Word order matters. The query [ to be or not to be ] returns very different results than [ be to not or be to ]. Google uses word order as a ranking signal, so always consider phrasing when conducting research.
Google Search Operators Reference
| Operator | Syntax Example | Description | Status |
|---|---|---|---|
| site: | penguins site:aq |
||
accidents site:bls.gov |
Restricts results to specific domain or subdomain. Works with or without periods (.gov or gov). Essential for competitive analysis. | Active | |
| -site: | site:nyc.gov -site:www.nyc.gov |
Excludes specific domain from results. Useful for finding subdomains or excluding sites like Wikipedia. | Active |
| – (minus) | jaguar -cars -football -os |
||
anti-virus -software |
Excludes terms from results. Must immediately precede word with space before it. Can exclude multiple terms or entire sites. | Active | |
| “phrase” | "Alexander Bell" |
Forces exact phrase matching. Use sparingly as it may exclude good results with slight variations. | Active |
| “word” | "ca" history |
Forces exact word match without synonym expansion. Use when Google is being too helpful with synonyms. | Active |
| OR | mesothelioma OR "lung disease" treatment |
Specifies alternatives. Must be uppercase. Returns results matching either term. | Active |
| ***** (wildcard in URL) | site:www.*creative.com |
Matches any token in URL. Token = complete term without spaces. Matches prefix strings before tokens except TLDs. | Active |
| ***** (wildcard in phrase) | "whenever * says * whenever" |
Fill-in-the-blank search within quotes. Google finds best matches for that position (up to 5 terms). Dramatically more effective than searching without. | Active |
| .. (number range) | Willie Mays 1950..1960 |
||
DVD player $50..$100 |
Searches for results containing numbers in specified range. Can include units of measurement. | Active | |
| filetype: | search engine guidelines filetype:pdf |
||
filetype:pptx superconductor lesson plan |
Limits results to specific file extensions. Works with any extension. Note: MP3 files removed due to copyright, CSV removed in 2023. | Active | |
| define | define peruse |
||
define Hobson's choice |
Returns definitions from web pages. Works for words and phrases. | Active | |
| allanchor: | allanchor: best restaurant Sunnyvale |
Returns only pages where ALL query terms appear in anchor text of links pointing to page. Don’t combine with other operators. | Active |
| inanchor: | inanchor:sales offer 2011 |
Searches for next term only in anchor text. Other terms can appear anywhere on page. | Active |
| alltext: | alltext: camping tent stove |
Returns pages containing all specified terms in page text. | Active |
| intext: | intext: Victorian artists |
Searches for next term only in page text. Same as alltext when applied to all terms. | Active |
| alltitle: | alltitle: university relations |
Returns pages containing all query terms in the title. | Active |
| intitle: | flu shot intitle:help |
Searches for next term only in title. Other terms can appear anywhere on page. Useful for competitive title research. | Active |
| allinurl: | allinurl: google faq |
Returns pages containing all query terms in the URL. | Active |
| inurl: | inurl:mp3 |
Searches for next term only in URL. Other terms can appear anywhere on page. | Active |
| AROUND | search AROUND 3 engine |
||
"Politician Surname" AROUND 5 "Major Donor" |
Finds documents where term1 appears within specified number of words from term2. Doesn’t preserve order. Useful for proximity research. | Active | |
| before: | avengers endgame before:2018-1-1 |
Finds results published before specified date. Format: YYYY-MM-DD. If only year specified, defaults to first day of that year. | Active |
| after: | avengers endgame after:2020 |
Finds results published after specified date. Format: YYYY-MM-DD. If only year specified, defaults to last day of that year. | Active |
| link: | link:example.com |
Showed pages linking to specific URL. Heavily abused, removed mid-2016. | Deprecated |
| + (plus) | +term |
Forced exact match without synonyms. Removed during Google+ era. Use verbatim mode or double quotes instead. | Deprecated |
| ~ (tilde) | ~mesothelioma |
Searched term and all synonyms. Removed because Google handles synonyms automatically now. | Deprecated |
| related: | related:wikipedia.org |
Listed pages similar to specified URL. Removed June 2023. | Deprecated |
Google Mail / Gmail Search Operators
Gmail’s search box supports its own set of operators, separate from web search. They work in the Gmail web app, the mobile apps, and in filter criteria, and they can be combined freely.
| Operator | Syntax Example | Description |
|---|---|---|
| from: | from:me |
|
from:amy@example.com |
Finds emails sent from a specific person or address. | |
| to: | to:me |
|
to:john@example.com |
Finds emails sent to a specific person or address. | |
| cc: / bcc: | cc:john@example.com |
|
bcc:david@example.com |
Finds emails with specific people in the “Cc” or “Bcc” fields. | |
| subject: | subject:dinner |
|
subject:anniversary party |
Matches a word or phrase in the subject line. | |
| after: / before: / older: / newer: | after:2024/04/16 |
|
before:04/18/2024 |
Finds emails received during a certain time period. Dates work as YYYY/MM/DD or MM/DD/YYYY. | |
| older_than: / newer_than: | older_than:1y |
|
newer_than:2d |
Relative time periods using d (day), m (month), or y (year). |
|
| OR / { } | from:amy OR from:david |
|
{from:amy from:david} |
Matches any of the search criteria. Curly braces are shorthand for OR. | |
| AND | from:amy AND to:david |
Matches all of the search criteria. A space between terms behaves the same way. |
| – (minus) | dinner -movie |
Excludes emails matching the term that follows. |
| AROUND | holiday AROUND 10 vacation |
|
"secret AROUND 25 birthday" |
Finds words near each other; the number sets the maximum words apart. Quote the expression to lock the first word’s position. | |
| label: | label:friends |
|
label:important |
Finds emails under one of your labels. | |
| category: | category:primary |
|
category:promotions |
Searches within an inbox category: primary, social, promotions, updates, forums, reservations, or purchases. | |
| has: | has:attachment |
has:drive
has:youtube | Finds emails that include attachments, inline images, YouTube videos, Drive files, or Google Docs/Sheets/Slides (has:document, has:spreadsheet, has:presentation). |
| list: | list:info@example.com | Finds emails sent through a mailing list. |
| filename: | filename:pdf
filename:homework.txt | Finds attachments by file name or file type. |
| ” “ (quotes) | "dinner and movie tonight" | Matches an exact word or phrase. |
| ( ) | subject:(dinner movie) | Groups multiple terms together — unlike web search, parentheses actually work in Gmail. |
| in:anywhere | in:anywhere movie | Searches all of Gmail, including Spam and Trash, which normal searches skip. |
| in:archive | in:archive payment reminder | Searches archived messages. |
| in:snoozed | in:snoozed birthday reminder | Finds emails you snoozed. |
| is:muted | is:muted subject:team celebration | Finds conversations you muted. |
| is: | is:important
is:starred
is:unread | Filters by message status: important, starred, unread, or read. |
| has: (star types) | has:yellow-star
has:red-bang
has:green-check | If you use multiple star options, finds emails marked with a specific one: yellow/orange/red/purple/blue/green-star, red-bang, orange-guillemet, yellow-bang, green-check, blue-info, or purple-question. |
| deliveredto: | deliveredto:username@example.com | Finds emails delivered to a specific address — useful with aliases and forwarding. |
| size: / larger: / smaller: | size:1000000
larger:10M | Finds emails by size, in bytes or with M suffix. |
| + (plus) | +unicorn | Matches a word exactly, disabling Gmail’s spelling and synonym expansion. |
| rfc822msgid: | rfc822msgid:200503292@example.com | Finds an email by its Message-ID header — handy for deliverability debugging. |
| has:userlabels / has:nouserlabels | has:userlabels
has:nouserlabels | Finds emails that have (or don’t have) any of your own labels. Labels apply to individual messages, not whole conversations. |
| label:encryptedmail | label:encryptedmail | Finds emails sent with Gmail client-side encryption. |
| header: | header:X-Google-Calendar-Notification:rsvpWithNote | Finds emails with a specific custom header or header value. |
Advanced Search Page Options
Google’s Advanced Search page (http://www.google.com/advanced\_search) provides additional filtering not available as operators:
| Filter Type | Options | Use Case |
|---|---|---|
| Language | Filter by specific language (Spanish, Chinese, German, etc.) | Finding content in specific languages |
| Date | Filter by time period | Finding fresh content or historical coverage |
| Usage Rights | Creative Commons license filtering | Finding legally reusable content |
| Reading Level | Basic, Intermediate, Advanced | Understanding content complexity |
Special Characters
Most special characters now work in Google searches:
| Character Type | Examples | Notes |
|---|---|---|
| Basic Symbols |
$, %, #
|
Now searchable as part of terms |
| Colon | 10:27 |
Useful for Bible verses |
| Extended Characters |
❤️, 🍺, ½
|
Most Unicode characters work. Note: ½ synonymized with 0.5 |
| Plus in Terms |
G+, C++, Coke+
|
Search using * wildcard for terms ending in + |
Common Uses
Understanding how to use advanced Google search operators and queries may seem old school, but it can be very powerful. For example, you can adjust drastically improve the quality of output in Gemini or Claude research tasks.
That said, there are definitely some common uses I typically repeat myself and I suspect many others do too. Here are just a few real-world use cases:
-
site:for competitive domain research and content gap analysis -
-site:for excluding domains, useful when researching things and excluding specific sources -
filetype:pdffor finding research papers and technical documentation -
intitle:for understanding what competitors prioritize in titles -
"exact phrase"for understanding true phrase competition -
AROUNDfor proximity research when analyzing how competitors discuss related concepts -
before:/after:for understanding content freshness and historical coverage
Top comments (0)