How to restore the default Google search engine in Chrome?

Solution 1:

You can goto

Settings > Manage Search Engines
in Google Chrome and you can add Google Search Engine again. Here's how:
  1. In the bottom you will find
    Other Search Engines
    and below that text boxes for adding a new search engine.
  2. Give Name -
    Google
    Keyword -
    google.com
    and paste the below code in the URL box: {google:baseURL}search?q=%s&{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:searchClient}{google:sourceId}{google:instantExtendedEnabledParameter}ie={inputEncoding}

Hope this helps.

Solution 2:

Goto Chrome → Settings and click on the Manage Search Engines button.

Add new search engine

  • Name: Google
  • Keyword: google.com
  • Url: {google:baseURL}search?q=%s&{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:searchClient}{google:sourceId}{google:instantExtendedEnabledParameter}ie={inputEncoding}

This is what I have set in Chrome.

Solution 3:

(My answer from webapps.SA)

If you just want to permanently use google.com (or any other fixed URL) as the search engine, above two methods probably is not what you are looking for. /ncr and adding another search engine both breaks the default realtime search functionality. Try this,

  1. Close all the Chrome/chromium browsers,
  2. go to User Data folder

    • Windows: users\username\appdata\local\google\chromium\User Data (or similar - please edit if this is wrong)
    • Linux: ~/.config/chromium/Default
  3. open the file named LocalState (windows) or Preferences in vim/notepad, and change,

    • last_known_google_url and
    • last_prompted_google_url to whatever the baseURL you want. Ex. "https://www.google.com/"
  4. Save.

For more info look at this old bug report.

Solution 4:

The problem with manually adding/editing the search URL is that it won't restore the built-in behavior fully, specifically the dynamic autocomplete suggestions based on Google search because it's an internal field present in the prepopulated search engines. The only officially documented method is to reset the browser settings, but it'll nuke most of your profile data.

Here's how I've restored just the built-in Google engine and kept the profile intact:

  1. Find your User Data directory.

  2. Exit Chrome fully via its menu -> Exit, so that no hidden processes or tray icons remain.

  3. Copy/zip the contents of that directory somewhere else so you have a backup just in case.

  4. Open Secure Preferences file inside the profile directory in a text editor.

  5. Delete the text that starts with "default_search_provider_data":{ and ends with },

    Some editors conveniently highlight the closing bracket when the cursor is at the opening {.

    Note the comma should be also deleted.

    Make sure you don't reformat the file because its parts are protected by a "hashsum", meaning that changing even one byte there would prompt Chrome to reset all settings. You can open the file in an online JSON beautifier beforehand to have a visual confirmation that you're deleting the correct part.

  6. Save the file and start Chrome, go to chrome://settings and verify the result.

Yet another nondestructive solution that doesn't involve kinda hackish editing might be to manually add a local policy for DefaultSearchProviderSuggestURL, and other related keys like DefaultSearchProviderImageURL, DefaultSearchProviderSearchURL.