Home › Developer Tools › Google Search Query Builder

Google Search Query Builder

Fill in the fields you need and get a correctly formatted advanced search query, from exact phrases and excluded words to site:, filetype:, intitle:, inurl: and before:/after: dates. Copy the query or open it straight in Google, Bing or DuckDuckGo.

Last updated:

Words
Where to look
Date and type
Enter your values to see the result.
Advertisement
Advertisement

How to use the Google Search Query Builder

  1. Type your main words in All these words, and add an exact phrase, alternatives or words to exclude if needed.
  2. Narrow where to look with a site or domain, a site to exclude, words that must be in the title, URL or text, or a file type.
  3. Set dates and type: before/after dates, a quick time filter, verbatim mode or a result type such as News.
  4. Click Build query (it also updates as you type) and read the explanation of each operator.
  5. Click Search on Google to open the results in a new tab, or Copy results to paste the query anywhere.

Google search operator cheat sheet

OperatorExampleWhat you get
"…""brown butter cookies"Pages with that exact phrase
OR or |(vegan OR dairy-free) cookiesPages with either word
-cookies -videoPages without the word video
site:site:.gov tax creditResults from one site, folder or domain ending
-site:hiking -site:pinterest.comEverything except that site
filetype:budget template filetype:xlsxFiles of one type (pdf, docx, xlsx, pptx…)
intitle:intitle:"write for us" gardeningThe word or phrase in the page title
allintitle:allintitle: vegan cookie recipeAll following words in the title
inurl:inurl:recipe cookiesThe text in the page address
intext:intext:"sea salt" cookiesThe text in the body of the page
before: / after:election after:2026-01-01Pages dated before or after a day
*"the best * for beginners"Any word in that place in a phrase
AROUND(n)coffee AROUND(3) healthWords within about n words of each other (unofficial)

Useful query recipes

  • Research a topic on trusted sites: site:.edu OR site:.gov "sleep hygiene"
  • Find templates and documents: "project plan" template filetype:docx
  • Find guest post or partner pages: gardening intitle:"write for us"
  • Check what a site has on a subject: site:yourdomain.com keyword shows which of your pages Google has indexed for it.
  • Find mentions without your own site: "your brand" -site:yourdomain.com
  • Get only fresh material: add after: with a recent date, or use the Past week time filter.

Operators can be combined freely, but each additional filter shrinks the results. If nothing comes back, remove filters one at a time to see which one is too strict.

Frequently asked questions

What are Google search operators?

Search operators are special words and symbols you add to a query to filter the results, such as quotes for an exact phrase, a minus sign to exclude a word, site: to search a single website and filetype: to find a particular document type. They work in the normal Google search box.

How do I search only one website?

Add site: followed by the domain, with no space, for example site:nasa.gov moon landing. You can also use a top-level domain (site:.edu) or a section of a site (site:example.com/blog). Use -site:example.com to remove a site from the results instead.

How do I find PDF files with Google?

Add filetype:pdf to your search, for example climate report filetype:pdf. The same works for other formats Google indexes, including docx, xlsx, pptx, txt and csv. Combine it with site: to find documents on a particular website.

Do before: and after: work in Google?

Yes. Google supports before:YYYY-MM-DD and after:YYYY-MM-DD to filter results by date, for example electric cars after:2025-01-01. Dates are based on what Google knows about the page, so results are not always exact. The Tools menu time filter (past week, past year) is an alternative.

Why does Google ignore part of my query?

Google only processes the first 32 words of a query and may still show pages that match synonyms or related terms. Remove unnecessary words, put must-have phrases in quotes, and try verbatim mode, which turns off synonyms and automatic spelling corrections.

Does OR have to be in capitals?

Yes. Google treats OR as an operator only in capital letters (a vertical bar | also works). Lowercase or is treated as an ordinary word. This builder always writes OR in capitals and wraps alternatives in brackets.

Which operators no longer work?

Google has retired several operators over the years, including the plus sign for required words (use quotes instead), the tilde ~ for synonyms, link: and info:. The cache: operator was also removed in 2024. This builder only uses operators that currently work.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

SERP Snippet PreviewPreview your title tag and meta description with pixel-accurate truncation on desktop and mobile.Keyword Suggestion ToolTurn one seed keyword into hundreds of Google and YouTube autocomplete keyword ideas.UTM Campaign URL BuilderAdd UTM tracking parameters to links and make a QR code.URL Encoder DecoderPercent-encode or decode URLs, query strings and form data.QR Code GeneratorMake QR codes for links, Wi-Fi, email and more.Barcode GeneratorCreate Code 128, EAN-13, UPC-A, EAN-8, Code 39 and ITF-14 barcodes as PNG or SVG.UUID GeneratorGenerate UUID v4 and v7 / GUIDs in bulk and copy or download them.Schema Markup Generator (JSON-LD)Create JSON-LD structured data for FAQ, Product, Article and more.Htaccess & Nginx Redirect GeneratorBuild 301 redirects for .htaccess, Nginx and Netlify or Cloudflare _redirects.Fake Data GeneratorGenerate mock data as JSON, CSV or SQL.Random String GeneratorGenerate secure random strings and tokens in bulk with any length and character set.API Key GeneratorCreate secure API keys and secrets with prefixes, checksums and SHA-256 hashes for storage.MIME Type LookupFind the MIME type for any file extension, or the extensions for a MIME type, in 400+ entries.Cron Expression GeneratorBuild crontab schedules visually, read them in plain English and see the next run times.URL Slug GeneratorTurn titles into clean, SEO-friendly URL slugs: accents, stop words, separators and bulk lines.JSON Schema GeneratorTurn sample JSON into a draft 2020-12 JSON Schema with types, required fields and formats.Gitignore GeneratorBuild a .gitignore from 50+ templates for languages, frameworks, IDEs and OS, merged and deduped.License GeneratorCreate a LICENSE file for MIT, Apache, GPL, BSD, ISC, MPL or Unlicense with your name and year.ULID GeneratorGenerate sortable ULIDs and UUID v7 in bulk, monotonic option, and decode their timestamps.Htpasswd GeneratorCreate .htpasswd entries with bcrypt, APR1-MD5 or SHA-1 for Apache and Nginx basic auth.Placeholder Image GeneratorCreate placeholder images in any size, color and text as PNG, JPG, WebP, SVG or data URI.Ads.txt GeneratorCreate or validate ads.txt and app-ads.txt files: seller lines, cert IDs and variables.Docker Run to Compose ConverterConvert docker run commands to docker-compose.yml, or a compose file back to docker run.Dockerfile GeneratorGenerate a production Dockerfile and .dockerignore for Node, Python, Go or a static nginx site.HTML Boilerplate GeneratorTick the options you need and get a clean HTML5 starter template with meta, OG tags and CSS reset.JSON to Zod SchemaInfer a Zod (or Yup) schema from sample JSON with optional, nullable and z.infer types.Linux Commands Cheat SheetSearchable Linux and bash command reference with flags explained, examples and copy buttons.LLMs.txt GeneratorBuild an llms.txt file for AI crawlers: summary and link sections, import from your sitemap.Nano ID GeneratorGenerate secure Nano IDs with custom alphabet, length and count, plus a collision calculator.Nginx Config GeneratorBuild an nginx server block: static site, SPA, reverse proxy or PHP, with SSL, gzip and redirects.OpenAPI / Swagger ViewerView OpenAPI 2/3 JSON or YAML as interactive API docs with validation and an endpoint list.package.json GeneratorFill a form and get a valid, npm-ready package.json with scripts, dependencies and checks.PKCE Code Challenge GeneratorGenerate an OAuth 2.0 PKCE code_verifier and S256 code_challenge, build auth URLs, verify pairs.README GeneratorFill in a form and get a polished README.md with badges, install, usage and license, live preview.Regex GeneratorBuild regular expressions visually from blocks or presets (email, date, phone) and test them live.Commit Message GeneratorBuild Conventional Commit messages with type, scope, body, breaking change and issue refs.Database Schema DesignerDesign tables and relationships visually, then export SQL for MySQL, PostgreSQL or SQLite.Docker Compose GeneratorBuild a docker-compose.yml with a form: services, ports, volumes, env, healthchecks and presets.Changelog GeneratorTurn Conventional Commit messages into a grouped Keep a Changelog Markdown file per version.cURL Command BuilderBuild curl commands from a form: method, headers, query, JSON or form body, auth and flags.Docker Compose to KubernetesConvert docker-compose.yml into Kubernetes Deployment, Service, ConfigMap and PVC manifests.Docker Compose ValidatorCheck a docker-compose.yml for YAML errors, schema mistakes, broken references and deprecated keys.Dockerfile LinterLint a Dockerfile for best practices: pinned tags, apt cleanup, non-root USER and layer count.Dockerignore GeneratorBuild a .dockerignore from Node, Python, Go and Java templates, plus your own entries.ESLint Config GeneratorGenerate a flat eslint.config.js for JavaScript, TypeScript, React or Node with rule presets.Git Branch Name GeneratorTurn a ticket ID and title into a clean, valid git branch name like feature/PROJ-12-add-login.GitLab CI Config GeneratorGenerate a .gitlab-ci.yml with stages, jobs, images, cache, artifacts and rules from templates.Jinja2 Template TesterRender Jinja2 templates with YAML or JSON variables using real Jinja2, with clear error lines.JSON Schema Mock Data GeneratorGenerate realistic sample JSON from a JSON Schema: formats, patterns, $ref, seeds and counts.Kubernetes Secret GeneratorCreate Kubernetes Secret YAML from key/value pairs or .env with auto base64, or decode one.Kubernetes YAML ValidatorValidate Kubernetes manifests against the API schema of a chosen version, with error paths.Prettier Config GeneratorToggle Prettier options, preview formatted code live and copy your .prettierrc file.Quartz Cron GeneratorBuild and explain Quartz and Spring cron expressions with seconds, ?, L, W and #, plus next fire times.README Badge GeneratorCreate Shields.io-style README badges for license, version, build and custom labels.Systemd Service File GeneratorCreate a systemd .service unit with ExecStart, user, restart policy, environment and hardening.tsconfig.json GeneratorBuild a tsconfig.json with target, module, strict checks and path aliases, each option explained.Access Log AnalyzerAnalyze Apache and Nginx access logs: top URLs, IPs, status codes, bots and traffic charts.Regex String GeneratorGenerate random test strings that match any regular expression, checked against the real regex.ASCII Table GeneratorTurn CSV or pasted cells into plain-text tables: MySQL, Markdown, Unicode box and reST styles.Dummy File GeneratorCreate test files of an exact size in KB, MB or GB with zeros, random bytes or text.FFmpeg Command GeneratorPick a task and options, get the exact ffmpeg command with every flag explained.Folder Tree GeneratorTurn a local folder or an indented list into an ASCII directory tree for your README.GitHub Actions Workflow GeneratorBuild a GitHub Actions CI workflow: triggers, matrix, caching, tests, Pages or Docker deploy.Kubernetes YAML GeneratorGenerate Deployment, Service, Ingress, ConfigMap, Secret and HPA manifests with safe defaults.Markdown TOC GeneratorGenerate a linked table of contents from Markdown headings with GitHub-style anchors.OpenAPI EditorEdit OpenAPI/Swagger YAML or JSON side by side with live API docs, validation and download.OpenAPI ValidatorValidate OpenAPI 3.0/3.1 and Swagger 2.0 specs: schema errors, broken $refs, line numbers.Pivot Table MakerBuild pivot tables from CSV or Excel by drag and drop: sum, count, average, charts, export.
See all 85 Code Generators & Builders →