How does allinanchor: differ from inanchor: in Google Search?
The allinanchor: and inanchor: search operators in Google Search both filter results based on the clickable anchor text pointing to a page, but they differ in scope and how they combine with other query terms. While allinanchor: requires every word in the query to appear in a page's incoming anchor text, inanchor: only applies to the single word or quoted phrase immediately following the operator. Understanding this distinction helps SEO professionals and researchers run more accurate backlink and competitor analyses.
How anchor text operators work
When websites link to another page, the clickable words used in the
hyperlink are known as anchor text. Google indexes this anchor text and
associates it with the target page. Both allinanchor: and
inanchor: let you search specifically within that indexed
link text rather than the body content of the page itself.
The allinanchor: operator
The allinanchor: operator tells Google to return only
pages whose incoming links contain all of the query terms specified
after the operator. Because it applies to the entire query, it acts as a
global filter.
For example, searching allinanchor:best running shoes
will return pages that have incoming links containing the words "best",
"running", and "shoes" in their anchor text. Note that these words do
not necessarily have to appear in the exact same single link; they just
need to be present in the anchor text pointing to that page.
Key characteristics of allinanchor::
- It applies to every term that follows it in the search query.
- It cannot be reliably combined with other search operators like
site:orintitle:. - There should be no space between the colon and the first search term.
The inanchor: operator
The inanchor: operator is more granular. It only applies
to the single word or exact quoted phrase immediately following the
colon. Any additional words typed after a space are treated as standard
search terms that Google will look for anywhere on the page, in the URL,
or in the title.
For example, searching inanchor:shoes running tells
Google to find pages that have "shoes" in their incoming anchor text,
while the word "running" can appear anywhere on the page. If you want to
match a multi-word phrase in the anchor text using
inanchor:, you must wrap it in quotation marks, such as
inanchor:"best running shoes".
Key characteristics of inanchor::
- It restricts only the single term or quoted phrase attached to it.
- It can be combined with other operators, such as
site:example.com inanchor:"privacy policy", to narrow down results. - You can use multiple
inanchor:operators in a single query, such asinanchor:best inanchor:shoes.
When to use each operator
Choose allinanchor: when you want a quick, broad view of
which pages Google associates with a specific set of keywords in their
backlink profiles. It is useful for gauging overall keyword competition
based purely on link signals.
Choose inanchor: when you need precision. Because it
pairs well with other operators, inanchor: is ideal for
finding specific types of pages on a domain, auditing internal link text
with site:, or isolating exact-match anchor text phrases
alongside normal on-page keywords.