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