How to Create Custom Search Engines and Site Shortcuts in Google Chrome

Navigating to frequently visited websites, waiting for their homepage to render, clicking the search bar, typing a query, and submitting the form is repetitive and inefficient. Whether searching documentation on GitHub, researching articles on Wikipedia, looking up product inventory on Amazon, or searching video tutorials on YouTube, intermediate navigation introduces unnecessary friction. Google Chrome’s Omnibox (address bar) solves this problem through Site Search shortcuts, allowing you to execute searches directly on any website without opening the homepage first.

Configuring custom search shortcuts transforms your address bar into a universal search hub, accelerating research and productivity across daily browsing workflows.

How Chrome Site Search Shortcuts Operate

Chrome’s address bar uses URL query parameters to submit searches dynamically:

  • The %s Query Parameter: Most search-enabled websites encode search queries into their destination URL (for instance, searching for “docker” on GitHub routes to github.com/search?q=docker). Chrome uses %s as an internal placeholder variable to represent whatever search term you enter.
  • Trigger Activation: When you assign an abbreviation (such as gh or wiki) as a keyword, typing that shortcut followed by Tab or Spacebar activates a dedicated search mode directly within the Omnibox.

Step 1: Finding the Search URL Structure for Any Website

Before adding a custom search engine, determine the website’s query URL syntax:

  1. Open the target website in Google Chrome (for example, Wikipedia).
  2. Type a recognizable sample query—such as the test word apples—into the website’s search box and press Enter.
  3. Examine the resulting URL displayed in Chrome’s address bar:
https://en.wikipedia.org/w/index.php?search=apples
  1. Copy this URL and replace the test word (apples) with the exact variable placeholder %s:
https://en.wikipedia.org/w/index.php?search=%s

This string forms the base query template that Chrome will use for all future searches.

Step 2: Adding the Custom Search Shortcut in Chrome Settings

To register the shortcut within Google Chrome:

  1. Click the three-dot menu icon (â‹®) in the upper-right corner of Chrome and select Settings.
  2. In the left sidebar, click Search engine.
  3. Click Manage search engines and site search.
  4. Scroll down to the Site search section and click the Add button.
  5. Fill in the dialogue fields:
    • Name: A friendly descriptive label for the site (e.g. Wikipedia).
    • Shortcut: A short, memorable keyword trigger (e.g. wiki or w).
    • URL with %s in place of query: Paste your formatted query URL: https://en.wikipedia.org/w/index.php?search=%s.
  6. Click Save.

Popular Ready-to-Use Search Engine Shortcut Templates

Implement these popular search shortcuts to immediately speed up daily technical research:

  • YouTube:
    • Shortcut: yt
    • URL: https://www.youtube.com/results?search_query=%s
  • GitHub Repositories:
    • Shortcut: gh
    • URL: https://github.com/search?q=%s
  • Reddit:
    • Shortcut: r
    • URL: https://www.reddit.com/search/?q=%s
  • Stack Overflow:
    • Shortcut: so
    • URL: https://stackoverflow.com/search?q=%s

Using Your Custom Search Shortcuts from the Address Bar

Once registered, using your custom search shortcut requires only a few keystrokes:

  1. Focus the Chrome address bar by pressing Ctrl + L (Windows) or Cmd + L (Mac).
  2. Type your keyword shortcut (e.g. wiki).
  3. Press the Tab key or Spacebar.
  4. Notice that the Omnibox transforms, displaying a blue badge reading “Search Wikipedia”.
  5. Enter your search query (e.g. Artificial Neural Network) and press Enter.
  6. Chrome immediately loads the Wikipedia search results page, bypassing the homepage entirely.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.