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:

  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:

architectureplatformVersion
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 has the rest of its checks.)

The fingerprint is changed inside the engine, not painted on topIn Mosaic: Fingerprints set inside the browser. Tesseract Chrome: values set inside, not by a script. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

How it works: Fingerprints set inside the browser

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). 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).

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 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 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
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 page.