Posted inGuides / Linux / Open Source

How to Add Custom Search Engines in Firefox Without Extensions

Mozilla Firefox fox illustration

One of Firefox’s more useful features is the ability to search specific websites directly from the address bar without installing additional extensions.

Want to search YouTube, Wiktionary, the Arch Linux Wiki or your favorite privacy focused search engine? Instead of opening the website first, you can assign a short keyword and search it directly from Firefox.

Starting with Firefox 140, Mozilla introduced native support for adding custom search engines directly through the browser’s settings, making the process even easier.

Last updated: November 20, 2026.

How to Add a Custom Search Engine in Firefox

The easiest way to configure a custom search engine in modern versions of Firefox is through the browser’s Search settings.

  1. Open Firefox and enter about:preferences#search in the address bar.
  2. Scroll down to Additional search engines (called Search Shortcuts in earlier versions).
  3. Click Add search engine.
  4. Enter a name for your search engine.
  5. Enter the search URL, using %s as a placeholder for your search term.
  6. Assign an optional keyword.
  7. Click Add Engine to save.

For example, to add YouTube as a custom search engine, use the following values:

  • Name: YouTube
  • URL: https://www.youtube.com/results?search_query=%s
  • Keyword: yt

Now, whenever you want to search YouTube, simply type something like this into Firefox’s address bar:

yt linux tutorials

Firefox replaces %s with your search terms and takes you directly to YouTube’s search results.

Your default search engine remains unchanged.

Adding Search Engines Directly From Websites

Firefox can also detect search engines offered by supported websites.

  1. Visit the website you want to search.
  2. Right-click inside its search field.
  3. Select Add Search Engine, if available.
  4. Assign a name and an optional keyword.
  5. Save the search engine.

This option isn’t available on every website. If Firefox doesn’t recognize the site’s search functionality, use the manual URL method described above.

How to Find a Website’s Search URL

You don’t need to know anything about web development to create your own search engine.

Visit the desired website and search for something distinctive, such as FSMTEST. Look at the address bar on the resulting search page.

You should see a URL that looks something like this:

https://example.com/search?q=FSMTEST

Replace your search term with %s:

https://example.com/search?q=%s

That’s the URL you need to enter when adding your custom search engine.

This works with websites that accept search queries through a URL. Some websites use search mechanisms that don’t expose the query in the address bar, so this method won’t work universally.

Useful Custom Search Engines for Firefox

Here are a few search URL templates you can use as a starting point. The keywords are entirely up to you.

Website Keyword Search URL
YouTube yt https://www.youtube.com/results?search_query=%s
Wikipedia w https://en.wikipedia.org/w/index.php?search=%s
Wiktionary wd https://en.wiktionary.org/w/index.php?search=%s
Arch Linux Wiki arch https://wiki.archlinux.org/index.php?search=%s
MDN Web Docs mdn https://developer.mozilla.org/search?q=%s
DuckDuckGo ddg https://duckduckgo.com/?q=%s
Brave Search bs https://search.brave.com/search?q=%s
GitHub gh https://github.com/search?q=%s

If a search engine is already available in Firefox, you can simply assign it a keyword in the Search settings rather than adding it again.

Once configured, searching your favorite websites becomes as simple as typing:

wd human
arch pipewire
mdn css grid
gh open source
yt linux tutorials

You can also configure a custom search engine for your preferred SearXNG instance. For more options, check out our list of open source alternatives and privacy focused search engines.

Using Bookmark Keywords in Firefox

Before Firefox introduced native custom search engine management, bookmark keywords were one of the easiest ways to achieve the same result.

This method still works, although Mozilla has removed the original Add a Keyword for this Search context menu option from recent Firefox releases.

To create a search bookmark manually:

  1. Open Firefox’s Bookmarks menu and select Manage Bookmarks.
  2. Select an existing bookmark or create a new one.
  3. Set its URL to your desired search URL containing %s.
  4. Enter your preferred shortcut in the Keyword field.

For example, create a bookmark using the following URL:

https://en.wiktionary.org/w/index.php?search=%s

Assign it the keyword wd. Now typing wd human into the address bar will search Wiktionary for the word “human”.

The main difference is that keyword bookmarks remain bookmarks, rather than appearing alongside your regular search engines in Firefox’s Search settings.

The Original Firefox Method

When this article was originally published in 2020, Firefox allowed you to right-click a website’s search box and select Add a Keyword for this Search.

Older Firefox context menu showing the Add a Keyword for this Search option on Wiktionary

You could then assign a keyword to the newly created bookmark.

Firefox bookmark dialog assigning the wd search keyword to Wiktionary

The following video demonstrates the original keyword search functionality.

These screenshots and video show Firefox’s interface in 2020. Use the Search settings or manual bookmark method in current versions.

Why Use Custom Search Engines Instead of Extensions?

If all you want is to search specific websites directly from Firefox, there’s little reason to install an extension for something the browser already handles natively.

Depending on their functionality and permissions, browser extensions can introduce additional resource usage, privacy considerations and identifiable characteristics.

That doesn’t mean all extensions are bad. Some provide valuable privacy and security protections. However, avoiding unnecessary extensions is generally a sensible approach.

Keep in mind that custom search engines don’t make your searches anonymous. The destination website still receives your search query and can collect information according to its own privacy policy.

For more information, see Mozilla’s documentation on adding custom search engines and assigning search shortcuts in Firefox.

Support FSMdotCOM on Liberapay