Google Chrome now Has Built-in User-Agent Switcher

by Venkat eswarlu on December 12, 2011

in Google Chrome,tips and tricks

For cross-browser testing and to emulate sites on other devices till now we relied on extensions (like The User-Agent Switcher for Chrome) and by adding command line switches to chrome to change user-agent string in Google Chrome, now you don’t need all this since it’s built right into dev tools of Chrome now, current dev version has it.

built in user agent switcher in Chrome thumb1 Google Chrome now Has Built in User Agent Switcher

Built-in User-Agent Switcher for Chrome

All you need to do is open dev tools (use Ctrl +Shift+I shortcut instead) from the wrench menu and click settings icon at the bottom, select or enable override user agent and select the browser or device you want to emulate and reload the page.

[Thanks to François Beaufort]


{ 5 comments… read them below or add one }

Michael January 10, 2012 at 2:03 am

As a follow up, turns out this new feature is in the dev channel for Chrome 17, so it’s NOT in the current version. Can’t wait until it is, but I don’t generally bother with non-release stuff


deralaand March 22, 2012 at 4:55 pm

This is a temporary setting. It is not persistent.

Is there a way to modify the UA so it stays at what I set it to?


Venkat March 23, 2012 at 9:49 am

Who said its a temp setting, it’s still available in dev version of Chrome am using. I don’t know or think there is a way to stay the UA sting same when you exit and relaunch the browser.


sarthak February 25, 2013 at 12:02 am

There is a permanent way. Update your Google Chrome Shortcut to have a command line switch “–user-agent ”


PK1991 August 22, 2013 at 4:24 pm

I tried this but the website doesn’t render in a way that a mobile device would.
When I access a page from my iphone I see a different mobile optimized page. When I do agent overwrite on google chrome, the screen size changes but the webpage is still a desktop view. How can I change this to match the optimized page.



Leave a Comment

Previous post:

Next post: