A browser user-agent is a string through which a browser identifies itself. The User-Agent request header carries it over HTTP, while navigator.userAgent exposes related information to scripts. RFC 9110 describes product tokens, optional versions and comments. Sites use the information for compatibility decisions, diagnostics and usage statistics, but the client controls what it declares.
The important word is declared. The user agent string is whatever the client chooses to send. Browsers generate it from their build configuration, extensions and settings can alter it, automation tools set it freely, and HTTP libraries send whatever a developer types. It is a useful hint about the software on the other end, not evidence about the device, and modern browsers are intentionally making it less informative.
Where User-Agent Information Appears
Related identification data appears in two places. On the network it is the User-Agent header, which RFC 9110 says a user agent should send on each request unless specifically configured not to. In the page it is navigator.userAgent, with fragments duplicated in navigator.appVersion and navigator.platform. Server-side analytics, CDN logs, bot filters and framework middleware read the header; client-side scripts read the property, typically to pick a code path or to decide whether to show a mobile layout.
A typical desktop Chrome value looks like this:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
Almost none of it means what it appears to mean. The leading Mozilla/5.0 is a historical compatibility token that nearly every browser sends. AppleWebKit/537.36 and Safari/537.36 are frozen tokens that Chromium kept after it forked from WebKit so that sites written for Safari would keep working. KHTML, like Gecko is a compatibility claim aimed at sites written for Firefox's engine. The Chrome token indicates the declared browser or compatibility version; browsers such as Edge and Opera commonly append Edg or OPR tokens. Those labels remain declarations, not verified identities. RFC 9110 now discourages implementations from using other implementations' product tokens, but the layered history is baked into the strings that sites expect.
Version Reduction and Client Hints
Because a detailed user agent string is a stable, passively collected fingerprinting signal, Chromium reduced it in stages between Chrome 101 and Chrome 110. The minor, build and patch components of the browser version are frozen to 0.0.0, leaving the major version visible in a value such as Chrome/143.0.0.0. The documented reduced desktop format uses fixed platform values, including macOS 10_15_7 and Windows NT 10.0. The reduced Android format uses Android 10 and model K. These are format conventions, not measurements of the installed system, and should not be generalized to every browser or embedded web view. What remains is the browser brand, its major version, whether the device is mobile, and the platform family. MDN notes the same reduction applies to navigator.userAgent, appVersion and platform.
User Agent Client Hints provide structured identification in browsers that support them. In eligible secure contexts, they send low-entropy information through headers such as Sec-CH-UA with a list of brands and major versions, Sec-CH-UA-Mobile, and Sec-CH-UA-Platform. A server that needs more responds with an Accept-CH header naming the high-entropy hints it wants, such as Sec-CH-UA-Platform-Version, Sec-CH-UA-Model, Sec-CH-UA-Arch, Sec-CH-UA-Bitness or Sec-CH-UA-Full-Version-List, and the browser may include them on subsequent requests if its policy allows. Scripts reach the same data through navigator.userAgentData, whose getHighEntropyValues method returns a promise for the gated fields. The brand list deliberately includes a nonsense entry such as "Not A;Brand" so that parsers learn not to reject unfamiliar names.
| Property | User-Agent string | User Agent Client Hints |
|---|---|---|
| Delivery | One header on ordinary requests; clients can omit it | Low-entropy defaults; additional hints requested through headers or script APIs |
| Format | Free-form legacy tokens | Structured headers and a JavaScript object |
| Detail available | Reduced: brand, major version, mobile flag, platform | Full version, platform version, model, architecture when granted |
| Support | Widely supported; value can be absent or changed | Chromium-based browsers; MDN lists it as limited availability, not Baseline |
| Context | Any | Secure contexts only |
Supporting clients therefore offer another route for browser identification besides parsing a legacy string. A site that needs the exact browser build to serve a download or diagnose a bug requests the hint; a site that merely wants a layout decision is expected to use responsive CSS and feature detection instead.
User-Agent Strings vs Complete Fingerprints
The user agent is one signal among dozens that a site can observe, and on its own it is weak. Millions of users share an identical reduced Chrome string on Windows, so the value has little power to single anyone out; that is the point of the reduction. A browser fingerprint combines the user agent with screen dimensions, installed fonts, time zone, language lists, canvas and WebGL rendering output, audio processing quirks, hardware concurrency and the behaviour of dozens of APIs. The combination can be distinctive even when every individual component is common.
Declared platform information can be compared with other observable signals, but disagreement is not conclusive proof of spoofing. Privacy settings, compatibility tokens, emulation and unusual hardware setups can all produce unexpected combinations. Conversely, a consistent set of signals does not prove that two visits came from one person. Changing only the declared user-agent value does not automatically change browser behaviour or erase an existing account identity.
How Sites Use and Misuse It
Operational uses include grouping error reports by browser family, selecting an installer for a declared platform and identifying older clients for compatibility handling. Crawler operators also publish tokens such as Googlebot, but servers must verify those claims independently, using the operator’s documented address or DNS checks.
The misuse is browser sniffing: changing what a site does based on parsed user agent strings. MDN's browser detection guide calls this hard to do reliably and a frequent source of bugs, because browsers routinely include tokens of other browsers and because a feature check tied to a browser name breaks the moment another browser adds the feature or the sniffed browser changes its string. Chrome containing the Safari token is the classic trap: a site that tests for Safari without excluding Chrome misidentifies most of its visitors. Feature detection, CSS media queries and progressive enhancement answer the real question, which is what the browser can do, not what it calls itself.
Limitations and Considerations
The user agent cannot prove the operating system, device or even the browser. It is self-reported, easily altered and increasingly generic by design. Even a normally configured browser may report reduced or compatibility values instead of a literal description of its device. Sites that make security decisions from it, such as skipping a verification step for a browser they recognize, are trusting the client to describe itself truthfully.
Reduction and Client Hints also complicate older tooling. Log parsers that extracted operating system versions now see frozen values. Device databases keyed on Android model names receive K. User Agent Client Hints are not supported across all major browsers, so sites need a fallback when those headers or APIs are absent. Finally, altering the string is a separate topic with its own trade-offs: overriding the string alone changes a declared label; tools may separately alter related hints, but that is not an automatic consequence of the header’s value.