Search Query Generator

Fill in the fields you care about and get a ready-to-use Google search query built from advanced operators.

Start from a template

Shows a sample of the pages Google has indexed on a site. It isn't a full list; Search Console shows real coverage. Finds PDF files Google has indexed on a site, such as reports, manuals and price lists. Finds documentation pages about a topic on one site, using "docs" in the URL. Finds sites about a topic that invite guest articles. Finds pages that mention a brand name, leaving out the brand's own site. Finds pages about a topic that Google dates within the last 12 months. Finds pages on a competitor's site with a word in the title, for example every guide they publish. Finds PDF papers and reports about a topic on US university (.edu) sites.

Each template fills the form for a common SEO or research task, using an example site or topic you can replace. They look for public pages only, never for passwords, admin pages or private data.

Build your query

Words
Every word should appear. You can type operators here too, such as intitle:guide.
One phrase per line, or separate phrases with commas. Each one is wrapped in quotes.
Separate with spaces, or with commas to keep phrases together. Joined with OR.
Each word or phrase is excluded with a minus sign. Use commas to keep phrases together.
Sites
One or more, separated by spaces or commas. Paths and endings like .gov work.
Results from these sites are left out.
Where the words appear
A word or a phrase. Phrases are quoted unless you tick allintitle:.
Filters

Dates as YYYY-MM-DD, or just a year. Google estimates when a page was published or updated, so treat date filters as approximate.

Number range (..)

Matches pages that mention a number in the range, such as a price or a year.

Your query

0 words
  

Localize opens the Google Search URL Generator with this query, so you can pick a country, language and location.

How to use the search query generator

Fill in only the fields you need and leave the rest empty. The preview updates as you type, and the generator handles the syntax for you: it quotes phrases, writes OR in capitals, wraps alternatives in parentheses, strips https:// and trailing slashes from sites, and leaves out any operator you didn't fill in. Below the tool, a table explains what each part of the finished query does.

When the query looks right, copy it, open it on Google, or send it to the Google Search URL Generator to run it as if you were searching from another country or in another language. Results differ by location, so that step matters for local SEO checks.

Not sure where to start? Pick a template such as PDFs on a site or Guest post opportunities, then replace the example site or topic with your own. If part of your query won't work as intended, a note under the preview says why and how to fix it.

Google search operators it supports

Google's web search help documents only a few operators: quotes, the minus sign, site:, filetype:, before: and after:. The rest still change results, but Google doesn't promise how they behave, so test them before you rely on them.

Operator What it does Example How reliable it is
"…" Matches the exact word or phrase "compost bin" Documented by Google
- Leaves out pages that contain a word or phrase jaguar -car Documented by Google
site: Limits results to a domain, subdomain or URL prefix site:example.com/blog Documented; shows a sample, not every page
filetype: Limits results to one file type filetype:pdf Documented by Google
before:, after: Pages last updated before or after a date or a year after:2025-01-01 Documented; Google calls it a beta and page dates are estimates
OR Matches either term; must be in capitals (guide OR tutorial) Works, but loosely applied
intitle: A word or phrase in the page title intitle:"write for us" Works; undocumented
allintitle: Several words in the title, in any order allintitle:compost bin Undocumented; results can be loose
inurl: A word in the page URL inurl:docs Undocumented; results can be loose
intext: A word or phrase in the page text intext:"case study" Works; undocumented
.. A number in a range, such as a price or a year camera $50..$100 Undocumented; results can be loose

How to combine operators

  • Spaces mean AND. Each term or operator you add narrows the search further. Google may still match related forms of unquoted words.
  • No space after the colon. site:example.com works; site: example.com doesn't.
  • OR goes in capitals. A lowercase or is just another word. OR binds more tightly than the spaces around it, so compost bin OR tumbler means compost plus either bin or tumbler.
  • Parentheses keep groups readable. The generator wraps every OR group, as in (site:example.com OR site:example.org). Don't count on them to group AND terms, though: (compost bin) OR (worm farm) isn't reliably read as two alternatives. Use quoted phrases, as in "compost bin" OR "worm farm", or run two searches.
  • Quote anything with spaces. That includes operator values, such as intitle:"write for us", and exclusions, such as -"free trial".
  • Several sites need OR. Two site: operators without OR ask for pages on both sites at once, which returns nothing useful.

Operators that no longer work

Old cheat sheets still list these. Google has removed them or never properly supported them, and the generator shows a note if you type one:

  • cache: stopped working when Google retired cached pages in 2024. The Internet Archive's Wayback Machine is the usual substitute.
  • related: was removed in 2023; Google said it hadn't worked well for some time.
  • link: has not worked since 2017, when Google said so publicly. The Links report in Search Console shows links to your own site.
  • info: no longer returns page details. Use URL Inspection in Search Console for your own pages.
  • +word was removed in 2011. Put the word in quotes to match it exactly.
  • ~word, the synonym operator, was dropped in 2013.
  • daterange: was never officially supported. Use before: and after:.
  • inanchor: and allinanchor: are undocumented and match anchor text incompletely. A backlink tool gives better data.

Google dorking and responsible use

"Google dorking", also called Google hacking, means using advanced operators to find pages a normal search wouldn't surface. The term comes from security work, where researchers use it to spot files and pages published by mistake. SEOs and researchers use exactly the same technique every day, and a Google dork generator like this one is simply a faster way to write the syntax.

The templates here stick to SEO and research tasks on purpose. Queries that hunt for passwords, admin logins, vulnerable software or personal data mostly expose other people's mistakes, and acting on the results harms the people whose data leaked. We don't want to make that easier.

Where dorking really pays off is your own site. Search site:yourdomain.com filetype:pdf or site:yourdomain.com inurl:staging to find documents and test pages you didn't mean to publish. If something shouldn't be public, remove it or put it behind a login, then use the Removals tool in Search Console to hide it from results in the meantime. If you come across someone else's exposed data, don't download it; tell the site owner. Many sites list a security contact in a /.well-known/security.txt file.

Limits of site: searches and result counts

A site: search is a quick check, not an index audit. Google's own documentation says it doesn't necessarily return every indexed URL, that large sites shouldn't expect to see all of theirs, and that a bare site: query isn't ranked. site:example.com includes subdomains such as blog.example.com, while site:example.com/blog only matches URLs that start with that path.

The results count, where Google shows it, is a rough estimate, so don't treat it as a page count or compare it between queries. For real coverage of your own site, use the Page indexing report in Google Search Console, which shows how many pages are indexed and why others aren't, and URL Inspection to check a single page.

Operators also change without notice. If a query that used to work starts returning odd results, simplify it and add operators back one at a time to find the one that changed.

Frequently asked questions

What are Google search operators?

They are special words and symbols, such as site:, filetype:, quotes and the minus sign, that you type into Google to narrow a search. You can combine several in one query, and each one narrows the results further.

Is Google dorking legal?

Typing operators into Google is ordinary searching and only shows pages Google has already indexed. The legal risk comes from what you do next: using the results to get into accounts, systems or data you are not authorised to access can break computer misuse laws in many countries.

Why does my search query return no results?

Usually two parts of the query contradict each other or the syntax is off, for example an after: date later than the before: date, a site that is both included and excluded, or a space after an operator's colon. If none of those apply, remove operators one at a time to find the one that empties the results.

What is the difference between intitle: and allintitle:?

intitle: applies only to the word or quoted phrase right after it, so it mixes well with other terms. allintitle: asks for several words to appear in the title in any order, and it works best on its own or at the end of a query, which is where this generator puts it.

How long can a Google search query be?

Google ignores words after roughly the first 32, and operators and OR count toward that limit. The generator counts the words in your query and warns you when it goes over, so you can drop terms or split it into two searches.