Why Does a Space After a Colon Break Google Search Operators?
Typing a space after the colon in a Google Search operator, such as writing site: example.com instead of site:example.com, breaks the operator because Google's query parser relies on whitespace to separate individual search terms. When a space is present, the search engine no longer recognizes the prefix as a command attached to a target value and instead treats both parts as ordinary keywords.
How Google Tokenizes Search Queries
When you type a query into Google Search, the first step the search engine takes is tokenization. Tokenization splits your input string into individual units, called tokens, primarily using spaces as delimiters.
When you write site:example.com, there is no space
between the operator and the domain. The parser sees a single token:
site:example.com. It then inspects this token, recognizes
the site: prefix, and knows to apply the domain filter to
example.com.
When you write site: example.com, the space splits the
input into two completely separate tokens:
site:example.com
Because site: has no value attached to it, the parser
cannot bind it to example.com as a filter.
What Happens to the Broken Operator
Once site: is separated from its target term, Google's
parser falls back to standard text-matching behavior:
- Punctuation stripping: Google generally ignores
standalone punctuation like colons. As a result,
site:is often stripped down to the plain wordsite. - Keyword matching: Instead of restricting results to a specific domain, Google searches for pages that contain the word "site" and the text "example.com".
- Irrelevant results: You will see pages that happen
to mention both terms anywhere in the text, title, or URL, rather than
pages hosted on
example.com.
Other Operators Affected by Spaces
This syntax rule applies to almost all advanced Google Search operators. Any operator that uses a colon requires the value to immediately follow the colon with no spaces:
filetype:pdfworks, whereasfiletype: pdfsearches for the words "filetype" and "pdf".intitle:marketingworks, whereasintitle: marketingsearches for both words anywhere on the page.inurl:blogworks, whereasinurl: blogtreats both as standard keywords.
Exceptions with Quotation Marks
You can still use spaces inside the target value if you wrap
the value in quotation marks, provided there is no space immediately
after the colon. For example, intitle:"content marketing"
works as expected because the opening quotation mark immediately follows
the colon, keeping the operator bound to the phrase.
To ensure your search operators work reliably, always attach the target term or opening quotation mark directly to the colon.