Change User Agent Permanently in Firefox [How to]

This can be done right from the about:config page

Reading time icon 3 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

firefox change user agent
Instead of solving troubles with Firefox, upgrade to a better browser: Opera One Opera One brings a handful of changes, including an updated UI, integration with AI chatbots, and tab management features. What else can you expect?
  • Easy migration: use the Opera One assistant to transfer existing Firefox information
  • Optimize resource utilization: Opera One uses your Ram more efficiently than Firefox
  • Ensures your privacy online with a free VPN and built-in Ad blocker
  • โ‡’ Get Opera One

Sometimes itโ€™s necessary to change your user agent in Firefox, especially if youโ€™re developing a new web app, so in todayโ€™s guide, weโ€™ll show you how to do that.

How do I change my user agent in Firefox?

1. Use about:config page

  1. In Firefox, in the address bar type about:config and go to it.
    about config firefox
  2. In the search bar enter general.useragent.override. Locate it on the list and set it to String.
     general.useragent.override string
  3. Click the Plus icon.
    plus icon about config in firefox
  4. Now enter the desired string that matches the user agent you want to imitate. We used this string for example Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.79 Safari/537.36
    user agent string firefox
  5. After testing we can see that even if weโ€™re using Firefox, websites are seeing it as Chrome.
    whatsmybbrowser results

Keep in mind that you need to find the exact user agent string on your own for the desired browser version.

2. Use extensions

  1. Open the User-Agent Switcher page.
  2. Click on Add to Firefox.
    user-agent switcher add to firefox
      
  3. Next, click on Add to confirm.
    user-agent switcher add button
  4. Lastly, select the User-Agent Switcher from the toolbar and choose the desired user agent.
    user agent switcher open in firefox

Where is the Firefox user agent?

Firefox doesnโ€™t have a setting that lets you change the user agent. Instead, you need to use the about:config page or extensions to do so.

Is it illegal to change user agent?

No, itโ€™s not illegal to change the user again. Many developers use this option when optimizing their websites. Speaking of which, if you’re a developer, you might want to download Firefox Developer Edition and give it a try.

How do I reset my user agent?

  1. Open the about:config page in Firefox.
  2. Look for general.useragent.override and click the trashcan icon next to it.
    delete general useragent override
  3. Your user agent will now reset to default.

If youโ€™re using extensions to change the user agent, disable or uninstall them.

As you can see, itโ€™s pretty simple to change user agent on Firefox, and while itโ€™s possible to do that without extensions, extensions tend to be simpler to use and might be a better option for less experienced users.

Keep in mind that issues with user agents can occur, and we wrote about Reddit user agent error in one of our older guides.

To learn more about Firefox, we have great guides on Firefox profile location as well as guide that shows you how to disable hardware acceleration in Firefox, so donโ€™t miss them.

More about the topics: Firefox guides

User forum

0 messages