Google Search Operators
Google Search Operators
Advanced search operators can be entered directly into the Google search box to refine your search. Search
parameters can be used to construct your own search strings by typing them into the address bar, also
called the Chrome omnibar.
https://www.google.com/search?q="nikola+tesla"
You can enter search operators directly into the Google search box, just as you would a text search:
1/10
Except in special cases (such as the “in” operator), Google will return standard organic results.
Advanced search operators are special commands that modify searches and may require additional
parameters (such as a domain name). Advanced operators are typically used to narrow searches and drill
deeper into results.
2/10
II. Advanced search operators
tesla announcements inurl:2016
inurl: Look for a word or phrase (in quotes) in the document URL. Can combine with other
terms.
allinurl: amazon field-keywords nikon
allinurl:
Search the URL for every individual term following "allinurl:". Same as multiple inurl:'s.
intext:"orbi vs eero vs google wifi"
intext:
Search for a word or phrase (in quotes), but only in the body/document text.
allintext: orbi eero google wifi
allintext: Search the body text for every individual term following "allintext:". Same as multiple
intexts:'s.
"tesla announcements" filetype:pdf
filetype:
Match only a specific file type. Some examples include PDF, DOC, XLS, PPT, and TXT.
related:nytimes.com
related:
Return sites that are related to a target domain. Only works for larger domains.
tesla AROUND(3) edison
AROUND(X)
Returns results where the two terms/phrases are within (X) words of each other.
Unreliable operators have either been found to produce inconsistent results or have been deprecated
altogether. The "link:" operator was officially deprecated in early 2017. It appears that "inanchor:" operators
are still in use, but return very narrow and sometimes unreliable results. Use link-based operators only for
initial research.
Note that, for all of the "allin...:" operators, Google will try to apply the operator to every term following it.
Combining "allin...:" operators with any other operators will almost never produce the desired results.
3/10
1. Chain together operator combos
You can chain together almost any combination of text searches, basic operators, and advanced operators:
This search returns any pages that mention "Nikola Tesla" (exact-match), have the phrase "Top (X) facts" in
the title, where X ranges from 5 to 10, are not on YouTube.com, and have "2015" somewhere in the URL.
Trying to find out if your content is unique or if someone is plagiarizing you? Use a unique phrase from your
text, put it in quotes (exact-match) after an "intext:" operator, and exclude your own site with "-site:"...
Similarly, you can use "intitle:" with a long, exact-match phrase to find duplicate copies of your content.
Switching a site from HTTP to HTTPS can be challenging. Double-check your progress by seeing how many
of each type of page Google has indexed. Use the "site:" operator on your root domain and then exclude
HTTPS pages with "-inurl:"...
site:moz.com -inurl:https
This will help you track down any stragglers or find pages that might not have been re-crawled by Google.
These are just a few examples of a nearly infinite set of combinations. Looking for more examples? You're in
luck! We've created a mega-list of 67 examples to catapult you toward site operator mastery.
http://www.google.com/search?
Google's URL. You'll see it if you look at the address bar, or Chrome omnibar.
q=query+goes+here
4/10
Everything from here on in is preceded by an & sign, as it's tagged on to the end. Here's where things get
interesting...
as_epq=query+goes+here
as_oq="query+string"+goes+here
Basically, it's like a more advanced version of the one above, using an "or" filter. Thus, every result must
have the main initial query, and one or more of the sets of terms in these strings.
3. Negative Keywords
as_eq=don't+include+these+words
num=xx
Must be a numeric value, and can be anything up to 100. Doesn't work with fractions.
5. Filetype match
as_filetype=extension
Only returns results that end in .extension. Currently supports any input. Try it - make a file with a random
extension, get it indexed and do a search. Also shows that as long as it validates to something.
Shows as filetype:extension
5/10
6. Limit results to one site
as_sitesearch=example.com
Shows as site:example.com
as_qdr=x
Swap out x for the following to limit the search to only files first indexed in:
as_rights=xxx
Limits the search to files/pages that have certain rights. The options are:
If you want to make up your own, put the bits you want in brackets, separated by pipe characters (|), and
exclude the bits you don't by putting them in brackets, preceded by .- and again pipe-separated.
allintitle%3Asearch+terms
This is actually appended to the q= parameter, hence a search for fishing with the allintitle term "sea bass"
would require the following query:
q=fishing+allintitle%3Asea+bass
6/10
Shows as allintitle:search terms
N.B. This also works with allintext to search page body text, allinurl for searching the URL, and allinanchor
for finding sites that are linked to with certain anchor text.
nnn..yyyy
Like the allin parameters, this is actually appended to the q= parameter. What this does though is let you
search for results between numeric ranges. For example, if you wanted to find documents with numbers
between 15 and 100, you'd put in 15..100. Very useful for finding products in a price range, when combined
with the site limiter. Works with $, £, and other such things.
%2Bterm
Again, this is appended to the q= parameter. The %2B is actually the + sign encoded, and will return results
featuring only the term used, with no pluralisations, alternate tenses, or synonyms.
Shows as +term
~term
Another one that's appended to the q= parameter. Returns results for the term used and synonyms.
Shows as ~term
define%3Aword
Yet another q= parameter add-on. Returns definitions for the word you put in.
Shows as define:word
14. Find results for two words that can have other words in between
7/10
And another q= parameter add-on. Returns results with listings that contain both words, with other words
between them.
Google's calculator functions. They are, in order, add, subtract, divide, multiply, raise to the power of, and
return x percentage of.
safe=active
as_rq=example.com
Finds sites Google thinks are related to the URL you put in.
as_lq=example.com
newwindow=n
Opens clicked listings in a new window. Very useful for opening lots of documents at a time, for competitor
research. Set to 1 to activate, and 0 to turn it off.
pws
Controls whether personalised search is on or not. Set to 1 to activate, and 0 to turn it off.
adtest=on
8/10
Turns off AdWords database connection, so your browsing won't show up as an impression, and will disable
the URLs. Set to on to activate, and off to turn it off.
btnG=Search
Simulates a click on the normal Google results buttom. Change to btnI to get the I'm Feeling Lucky button
result.
ie=
Controls the input encoding settings. This defaults to UTF-8, and is worked out server-side, hence changing
it doesn't do anything.
oe=
Controls the output encoding settings. Works in the same way as ie, so you can tinker away, but it won't do
anything.
&hl=value
Changes the interface language. I won't list them all here, but you can find them all here.
lr=value
Limits the languages used to return results. Not hugely effective. That said, here's the list of all of them:
lang_nl - Dutch
lang_en - English
cr=countryXX
Limits the search results to pages/sites from certain locations. Change XX to any of the following, to limit the
results:
AF - Afghanistan
AL - Albania
9/10
DZ - Algeria
10/10