How to reset the default user agent on Firefox

A user agent tells websites what type of browser and operating system you're using. This information helps the web server deliver content that's compatible with your browser. If websites tell you that your browser is outdated or incompatible even though Firefox is up to date, an incorrect user agent may be the cause. This article explains how to fix problems with your Firefox user agent so that websites work properly.

User agent issues

You can change Firefox's user agent to trick websites into thinking that you're using a different browser or operating system. Web developers might do this to see how their websites will appear on different systems and browsers. Sometimes, add-ons and other installations can change your user agent without your knowledge.

Websites may not display correctly or may show a message that your browser is outdated or incompatible, based on the detected user agent. It's important to switch Firefox back to the default user agent so that websites work properly.

View your user agent

To view your user agent, click the Firefox menu button Fx57Menu, click Help Fx57Help and select Troubleshooting Information More Troubleshooting Information. This will open a page with the address about:support. The Application Basics section will show your current Firefox version and will include a User Agent entry. For example, the default user agent entry for Firefox 83 on Windows 10 (64-bit) would appear as:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0

Note: If your user agent shows a previous Windows version, such as Windows NT 6.1 (Windows 7) instead of Windows NT 10.0 (Windows 10), make sure you are not running Firefox in Compatibility mode. You can open the Properties of the Firefox desktop shortcut from the right-click context menu. Check the "Compatibility" tab and make sure that the compatibility mode option is not selected.

Sites such as What is my user agent? - WhatIsMyBrowser.com and What's my user agent? - whatsmyua.info can also show you the user agent detected by websites.

Add-on issues

Add-ons such as the User-Agent Switcher extension can change the user agent that websites detect. See if you can restore the default user agent in your extension settings. You can also temporarily restart Firefox with all add-ons disabled (see Troubleshoot Firefox issues using Safe Mode for details) and, if the problem goes away, disable or remove any add-on you think may be the cause. If you can't resolve the problem this way, follow the steps below to reset the default user agent.

Reset the default Firefox user agent

You can reset your user agent as follows:

  1. Type about:config in the address bar and press EnterReturn.
    A warning page may appear. Click I accept the risk!Accept the Risk and Continue to go to the about:config page.
  2. Search for useragent by typing it into the Search field.
  3. Right-clickHold down the control key while you click on each of these preferences, if they exist, and select Reset from the context menu.
  1. Type about:config in the address bar and press EnterReturn.
    A warning page may appear. Click I accept the risk!Accept the Risk and Continue to go to the about:config page.
  2. Search for useragent by typing it into the Search preference name field.
  3. Click the Reset Fx71aboutconfig-ResetButton or Delete Fx71aboutconfig-DeleteButton button on each of these preferences, if they exist:
  • general.useragent.extra.firefox
  • general.useragent.extra.productName - where productName can be the name of some third party software (e.g. microsoftdotnet).
  • general.useragent.locale
  • general.useragent.override
  • general.useragent.security

reset_ua1.png See Configuration Editor for Firefox for more information about using the about:config page to reset or delete preferences.

Note: If the above solution doesn't resolve the problem, check whether you have the privacy.resistFingerprinting preference set to true and, if so, double-click on the preference to reset it to false. This setting can change the user agent and cause this type of issue. For more information, see Firefox's protection against fingerprinting.

After resetting your user agent, you may need restart Firefox and clear your cookies and cache:

  1. Click the Library button 57 library icon on your toolbar. (If you don't see it there, click the menu button fx57menu then click Library.) Click History and select Clear Recent History….
  2. In the Time Range to clear: drop-down, select Everything.
  3. Below the drop-down menu, select both Cookies and Cache. Make sure other items you want to keep are not selected.
  4. Click Clear Now.

Was this article helpful?

Please wait...

These fine people helped write this article:

Illustration of hands

Volunteer

Grow and share your expertise with others. Answer questions and improve our knowledge base.

Learn More