How to Change the User-Agent in Google Chrome

The user agent selection screen in Chrome Dev Tools

To change the user-agent in Chrome and see how different pages are perceived, follow these steps:

  1. Open Chrome DevTools by right-clicking and selecting “Inspect,” pressing F12, or using the keyboard shortcut Ctrl+Shift+I (or Cmd+Option+I on Mac).
  2. Click on the three dots at the top right, then go to “More tools” > “Network Conditions.”


  3. Next to “User agent,” uncheck “Use browser default.”


  4. Choose the desired user-agent from the dropdown menu or select “Custom…” to enter a custom one.


  5. After selecting the user-agent, reload the page to see how it displays. This is perfect for detecting different types of errors that aren’t always visible, identifying instances of cloaking, or uncovering new optimization opportunities.

That’s it!

This method is also detailed in the official Chrome DevTools documentation.

Using a Chrome Extension

For a simpler approach, you can also use a Chrome extension like this one.

  1. Go to the Chrome Web Store and search for “User-Agent Switcher and Manager.”
  2. Add the extension to Chrome by clicking on “Add to Google Chrome.”
  3. Once installed, click on the extension’s icon in the toolbar.
  4. Select the desired user-agent from the provided list.
  5. Reload the page to apply the new user-agent.

Why Change the User-Agent in Chrome?

Changing the user-agent in Chrome can be useful to:

  • Test Compatibility: Check how a site displays on different browsers or devices without physically using them.
  • Bypass Restrictions: Access websites that restrict content to certain browsers or devices.
  • Debug Specific Issues: Identify problems linked to a particular browser by simulating its user-agent.

Precautions When Changing the User-Agent

Although changing the user-agent is useful, it’s important to use it with caution:

  • Test Accuracy: Changing the user-agent doesn’t always perfectly replicate another browser or device’s behavior. Other factors, such as screen resolution or browser-specific features, can affect how a website renders.
  • Security: Using third-party extensions can pose potential security risks. Always ensure you download extensions from trusted sources!

Laisser un commentaire/Leave A Comment

S’abonner à la newsletter

Inscrivez-vous à la newsletter du Copain Référenceur et recevez tous les lundis les dernières actualités Tech SEO ainsi que des conseils pratiques pour optimiser et monétiser votre site web :