-->

  1. Microsoft Edge For Mac
  2. Change User Agent Microsoft Edge Chromium
  3. Microsoft Edge Download

To override the user agent string from Microsoft Edge DevTools:

  1. Select Control+Shift+P (Windows, Linux) or Command+Shift+P (macOS) to open the Command Menu.

  2. Type network conditions, choose Show Network conditions, and select Enter to open the Network conditions tool.

  3. In the User agent section, turn off the Select automatically checkbox.

  4. Choose a user agent string from the list, or enter your own custom string.

Microsoft Edge For Mac

Getting in touch with the Microsoft Edge DevTools team

Use the following options to discuss the new features and changes in the post, or anything else related to DevTools.

  • Send your feedback using the Send Feedback icon or select Alt+Shift+I (Windows, Linux) or Option+Shift+I (macOS) in DevTools.
  • Tweet at @EdgeDevTools.
  • Submit a suggestion to The Web We Want.
  • To file bugs about this article, use the following Feedback section.

Change User Agent Microsoft Edge Chromium

Note

Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons Attribution 4.0 International License.
The original page is found here and is authored by Kayce Basques (Technical Writer, Chrome DevTools & Lighthouse).

It is now possible to enable Client Hints in Microsoft Edge. Every time you open a webpage, your browser sends some data about your device to a server in a line of code called “User Agent String”. User Agent consists of your browser name, version, operating system, etc. How can I contact a live agent. This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread. Microsoft is committed to ensuring your apps work on Microsoft Edge. If you run into issues with your business apps or websites on the latest version of Edge, Microsoft helps you fix your apps and websites at no additional cost. See offer details for eligibility requirements.


This work is licensed under a Creative Commons Attribution 4.0 International License.

Microsoft is committed to ensuring your apps work on Microsoft Edge. If you run into issues with your business apps or websites on the latest version of Edge, Microsoft helps you fix your apps and websites at no additional cost. See offer details for eligibility requirements. Download this app from Microsoft Store for Windows 10. See screenshots, read the latest customer reviews, and compare ratings for User Agents for Microsoft Edge.

-->

A user agent (UA) string is able to be used to detect what version of a specific browser is being used on a certain operating system. Like other browsers, Microsoft Edge includes this information in the User-Agent HTTP header whenever it makes a request to a site. It may also be accessed via JavaScript by querying the value of navigator.userAgent.

Microsoft Edge Download

Microsoft recommends that web developers make use of feature detection whenever possible to improve code maintainability, reduce code fragility, and eliminate the risk of code breakage in the event of future UA string updates.

For cases where feature detection is not applicable and UA detection must be used, the format of the Microsoft Edge UA on desktop is as follows:

The User-Agent request header is in the following format:

The return value from navigator.userAgent is in the following format:

Platform identifiers change based on the operating system being used, and version numbers also increment as time passes. This format is the same as the Chromium UA with the addition of a new Edg token at the end. Microsoft selected the Edg token to avoid compatibility issues that may be caused by using the string Edge, which is used by the version of Microsoft Edge based on EdgeHTML. The Edg token is also consistent with existing tokens used on iOS and Android.

Edge

Mapping UA String to Browser Name

Mapping UA string tokens to a more human-readable browser name for use in code is a common pattern on the web today. When mapping the new Edg token to a browser name, Microsoft recommends using a different name than the one developers used for the legacy version of Microsoft Edge to avoid accidentally applying any legacy workarounds that are not applicable to Chromium-based browsers.

User Agent Overrides

User Agent Microsoft Edge

Sometimes, a website does not recognize the updated version of the Microsoft Edge UA. As a result, a set of the features of that website may not work correctly. When Microsoft is notified about these types of issues, website owners are contacted and informed about the updated UA.

The sites often need some time to update and test the UA detection logic to address the issues that Microsoft reports to site owners. In these cases, Microsoft uses a list of UA overrides in our Beta and Stable channels to maximize compatibility for users who access these sites. The overrides specify new UA values that Microsoft Edge should send instead of the default UA for specific sites. You are able to view the list of UA overrides that are currently being applied by navigating to edge://compat/useragent in the Beta and Stable channels of Microsoft Edge.

Our Canary and Dev channels do not currently receive UA overrides so that web developers have an environment where they can easily reproduce issues on their sites that are caused by the default Microsoft Edge UA. If for some reason you require the ability to disable UA overrides in the Beta or Stable channels of Microsoft Edge, you may run the Microsoft Edge executable using the following command line argument: