# How to change user agent in Chrome

> How to change the user agent in Chrome with DevTools, a launch flag or an extension, and why none of them changes the client hints to match.

Source: https://mosaicbrowser.com/guides/change-user-agent-in-chrome

## How to change the user agent in Chrome, and what it breaks

To change the user agent in Chrome, open DevTools › Network conditions, untick Use browser default and pick or type a string; or start Chrome with --user-agent. Either way Chrome still sends User-Agent Client Hints, so change those too or a site reading both sees a contradiction.

![One string, and the hints that contradict it, beside a screenshot: mosaic settings showing the installed Tesseract Chrome engine and its version](https://mosaicbrowser.com/covers/change-user-agent-in-chrome.webp)

The quickest way to change the user agent in Chrome is DevTools: open the Network conditions panel, untick Use browser default, and choose a string from the list or type your own. For a whole browser session, start Chrome with `--user-agent="..."`. Both change the string. Neither changes everything else Chrome says about itself, and that is where most of the trouble starts.

## Way 1: change the user agent in Chrome DevTools

Google documents this in [Override the user agent string](https://developer.chrome.com/docs/devtools/device-mode/override-user-agent):

1. Open DevTools (⌥⌘I on a Mac, Ctrl+Shift+I on Windows).
2. Open the Network conditions panel: in the top-right menu choose More tools › Network conditions.
3. In the User agent section, untick Use browser default.
4. Pick a string from the list, or enter your own.
5. Open the User agent client hints drop-down and edit the brands, full version, platform and the rest, then press Update and reload.

Step 5 is the one that matters here. Google's own page says the override "does not change how Chrome browser functions internally, it changes content that Chrome is served". It is a tool for testing how your site treats another browser, and it applies to the tab you are inspecting.

## Way 2: the --user-agent launch flag

```
# macOS
open -a "Google Chrome" --args --user-agent="Mozilla/5.0 (...)"

```

Close every Chrome window first, or the flag goes to a browser that is already running and is ignored. Unlike DevTools, the flag reaches every context in the process: pages, dedicated and shared workers, service workers and the network stack.

We measured what it costs. In a stock Chrome with `--user-agent` as the only flag, and a string byte-identical to Chrome's own default, the high-entropy client hints came back empty:

|  | `architecture` | `platformVersion` |
| --- | --- | --- |
| Without `--user-agent` | `"arm"` | `"26.6.2"` |
| With `--user-agent` | `""` | `""` |

Chromium blanks them because it will not vouch for values it can no longer derive from a string it did not choose. No real Chrome answers that way, and IPHey read it as an inconsistent fingerprint because it could no longer confirm the version the string claimed. ([What IPHey scores](https://mosaicbrowser.com/guides/iphey-explained) has the rest of its checks.)

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Fingerprints set inside the browser](https://mosaicbrowser.com/features/engine)

## Way 3: an extension

User-Agent switcher extensions are convenient and do the least. Many change the header and `navigator.userAgent` and leave the client hints, the workers and the page's own feature tests as they were. Two spoofs of one value, one in an extension and one anywhere else, also stack in ways neither predicted.

## Why a user agent alone contradicts client hints

Chrome no longer puts everything in the User-Agent string. A stock Chrome 152 on our Mac sends `Chrome/152.0.0.0`, minor numbers zeroed, and the detail lives in User-Agent Client Hints, which Google introduced so that browsers could reduce what the string broadcasts ([Google's explainer](https://developer.chrome.com/docs/privacy-security/user-agent-client-hints)). A page reads them two ways: the `Sec-CH-UA`, `Sec-CH-UA-Mobile` and `Sec-CH-UA-Platform` headers sent with requests, and `navigator.userAgentData`, whose `getHighEntropyValues()` returns the architecture, bitness, platform version and full version list ([MDN](https://developer.mozilla.org/en-US/docs/Web/API/User-Agent_Client_Hints_API)).

So a site has two descriptions of the browser. If you change the string to Windows and the hints still say macOS, it has two different computers in one request.

The version has the same trap. We once sent only the major, `153`, as the full version. A stock Chrome on the same Mac reported `152.0.7977.83`. A full version with no build number is something no Chrome has ever shipped, and once we sent the whole number, FingerprintJS's confidence in our browser moved from 1 to 0.99, the same figure it gives stock Chrome.

And headless mode rewrites the string on its own. Measured on a stock Chrome 152: headed says `Chrome/152.0.0.0`, `--headless=new` says `HeadlessChrome/152.0.0.0`. ([Detecting headless Chrome](https://mosaicbrowser.com/guides/detect-headless-chrome) covers the other tells.)

## Change the whole description, or none of it

If you want a browser to claim something else, the string, both client-hint version lists, the platform and the hardware behind them all have to agree. The tested way is to change the whole machine at once, which is what [changing your browser fingerprint](https://mosaicbrowser.com/guides/change-your-browser-fingerprint) walks through. Changing the string alone gives a site one new value and one contradiction.

## How Mosaic sets the user agent

In Mosaic you normally do not set a User-Agent at all. Each profile's string is derived from the machine it was drawn as and the version of Tesseract Chrome, our own Chromium, that runs it. The engine then sets the brand list, the full version and the platform for the client hints from the same values, inside the engine. Two rules follow from what we measured above:

- The `--user-agent` flag is passed only when a profile genuinely asks for a different string than the engine's own, because passing it empties the high-entropy hints. The one exception is a headless launch, which always gets the flag, because without it the string would say `HeadlessChrome`.
- A profile always claims Chrome. Edge is refused, because one switch feeds both the client-hint version lists, which need a full build number, and the User-Agent suffix, which needs `major.0.0.0`, and Edge could never have both right.

![Mosaic settings showing the installed Tesseract Chrome engine and its version](https://mosaicbrowser.com/shots/engine.png)
*The engine whose version every profile's User-Agent claims*

The field itself is under Advanced on the profile editor's Fingerprint tab, read-only until you turn on "Edit these directly". The editor warns there that nothing in that section re-derives anything else, so a string that disagrees with the machine stays disagreeing. How the engine keeps the page, its workers and its request headers on one description is on the [Tesseract Chrome](https://mosaicbrowser.com/features/engine) page.

## Sources

1. [Chrome DevTools: Override the user agent string](https://developer.chrome.com/docs/devtools/device-mode/override-user-agent), read November 2, 2026
2. [MDN: User-Agent Client Hints API](https://developer.mozilla.org/en-US/docs/Web/API/User-Agent_Client_Hints_API), read November 2, 2026
3. [Chrome for Developers: User-Agent reduction and client hints](https://developer.chrome.com/docs/privacy-security/user-agent-client-hints), read November 2, 2026

## Questions

### Does changing the user agent hide which browser I use?

Not on its own. Chrome also sends User-Agent Client Hints in request headers and through navigator.userAgentData, and a page can test features directly. A Firefox string on Chrome is contradicted by both.

### Why does my user agent end in .0.0.0?

Chrome reports the major version and zeros for the rest: a stock Chrome 152 on our Mac sends Chrome/152.0.0.0. The full build number is in the high-entropy client hints instead.

### Can a website see my real user agent after I change it?

It can see whatever you did not change. In our tests a page-level override left a service worker reporting the real string, and a launch flag left the client hints blank, which no real Chrome does.

### Is changing the user agent useful for testing?

Yes. DevTools' override is built for checking how your own site responds to another browser or a phone, and it is the right tool for that job.

## Related

[How to change your browser fingerprint without breaking it](https://mosaicbrowser.com/guides/change-your-browser-fingerprint): How to change your browser fingerprint: change the whole machine at once. A single new value makes a browser rarer and contradicts the rest.

[How to change the timezone in Chrome, and keep it on the IP](https://mosaicbrowser.com/guides/change-timezone-in-chrome): How to change the timezone in Chrome: it uses your computer's, so change the system zone, override one tab, or set it from Playwright or Puppeteer.

[How to detect headless Chrome: the signals that hold up](https://mosaicbrowser.com/guides/detect-headless-chrome): How to detect headless Chrome: it names itself in its User-Agent, drops the real GPU and is usually driven over DevTools. The checks that hold up.

[IPHey explained: the MX score and its five cards](https://mosaicbrowser.com/guides/iphey-explained): IPHey grades a browser Trustworthy, Unreliable or Suspicious with an MX score out of 100. What its cards read, and the one value that cost us 10 points.

[An anti-detect browser with its own Chromium engine](https://mosaicbrowser.com/features/engine): Mosaic is an anti-detect browser with its own Chromium engine, Tesseract Chrome: stock Chromium source, with fingerprint values changed inside the engine.

[How does Cloudflare bot management work?](https://mosaicbrowser.com/guides/how-does-cloudflare-bot-management-work): A Cloudflare bot score of 1 is automated, 2 to 29 likely automated, 30 to 99 likely human, 0 not scored. Heuristics, a model and a JS check set it.

[How do sites detect anti-detect browsers?](https://mosaicbrowser.com/guides/how-do-sites-detect-anti-detect-browsers): Sites detect anti-detect browsers by contradictions: a page and its workers disagreeing, a GPU name the driver does not match, fonts from another OS.



## Run this guide on your own accounts

Every Mosaic profile is a fingerprint, a proxy IP and a cookie jar that agree with each other, kept on your computer. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
