Guide
How to change the User-Agent header in Chrome
To send a different User-Agent to one site, add a User-Agent request header to
a profile filtered to that site. For a quick check with DevTools open, Chrome’s
Network conditions panel does it with nothing to install.
Change the User-Agent for one site
- Create a profile named iPhone UA.
- On Request headers, add
User-Agentwith the action Set. - Open the arrow next to the value and pick a string, for example Safari 26 on iPhone, or paste your own.
- Open Filters and add an include filter of type Domain with
example.com, so other sites still see your real browser. - Open the site, turn the profile on in the popup and allow access when Chrome asks.
- Reload the page with the cache off (DevTools, Network, Disable cache) so you are not served a copy cached for your old User-Agent.
Profile iPhone UA
Request headers
Set User-Agent Mozilla/5.0 (iPhone; CPU iPhone OS 18_6 like Mac OS X)
AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0
Mobile/15E148 Safari/604.1
Filters
Include Domain example.com
The value menu has current strings for Chrome 156 on Windows, macOS and Android, Edge 156, Firefox 157 on Windows and macOS, Safari 26 on macOS and iPhone, and Googlebot (smartphone).
When a per-site rule is the right tool
- Checking that the server sends phones to the mobile site or serves a lighter page, while you keep your desktop browser for everything else.
- Reproducing a bug report from a browser you do not have, when the server or CDN varies the response by User-Agent.
- Seeing what your server-side rendering or bot handling returns to a crawler string.
- Keeping a staging site on a test User-Agent all day, in every tab, so its logs and analytics can filter your visits out.
What a header rule does not change
The rule changes the header the server receives. It does not change what JavaScript in the page sees:
navigator.userAgentstill reports your real browser.-
navigator.userAgentDataand the client hint headersSec-CH-UA,Sec-CH-UA-MobileandSec-CH-UA-Platformstill describe your real Chrome. - Screen size and touch support stay the same.
So check what the site’s code reads. Server-side detection from the User-Agent header follows the rule. Detection in JavaScript or through client hints does not; use the DevTools override below, or add rows for the client hint headers too and confirm the result on httpbin. Sending the Googlebot string does not make you Googlebot either: sites that verify crawlers by reverse DNS still see your IP address.
Check that it worked
Add httpbin.org to the profile’s filters and open
httpbin.org/user-agent. It returns the
User-Agent the server received. Typing navigator.userAgent in the Console still
shows the real one, which is expected.
{
"user-agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1"
}
Chrome DevTools does not always show headers changed by an extension. If the Network panel shows the old value, trust the server’s echo or the popup’s Applied on this tab, which asks Chrome what it actually changed.
The no-install alternative: DevTools
- Open DevTools, then the three-dot menu, More tools, Network conditions.
- Under User agent, untick Use browser default and pick or type a string.
- Reload. The override lasts while DevTools stays open on that tab.
This also changes navigator.userAgent and the client hints, and the device
toolbar (Ctrl+Shift+M) adds a mobile screen size. It is the
better tool when the site detects devices in JavaScript. An extension rule is better when
you want one site to get a different User-Agent in every tab, without DevTools open, while
other sites see your normal browser. To change it for a whole browser session, start Chrome
with --user-agent="…".
Troubleshooting
- The page looks the same: the site probably detects in JavaScript or caches by URL. See above.
- Only some requests change: check Request types is on All types, and that the filter covers the CDN hosts the page loads from.
- Requests from other pages do not change: Chrome also needs access to the page that sends them. Turn the profile on from that page and accept the prompt, or use the popup’s Grant button.