All Emvero products use one prepaid credit balance. See how credits work

Start for free

User-Agent and Client Hints

User-Agent strings and Client Hints describe the browser's claimed environment. Comparing them can expose inconsistencies, with important exceptions.

Published

On this page

Two ways to describe the browser

The User-Agent is an HTTP request header containing text about the client. A browser can name its product, version and platform in that text. A script inside the page can read a corresponding value through navigator.userAgent.

User-Agent Client Hints provide selected browser information in structured headers and through navigator.userAgentData. Chromium-based browsers implement this mechanism, although availability varies by browser and context.

Both channels carry claims made by the client. Structured formatting makes a value easier to parse; it does not make the value an attestation. A browser configuration, automation tool or modified client can change what is reported.

Why the User-Agent contains several names

A Chromium-based browser’s string can include Mozilla, AppleWebKit, Chrome and Safari. These tokens reflect compatibility history. Their presence does not mean that several engines are running together.

A parser needs to recognise specific product tokens before generic ones. For example, an Edge string can contain a Chrome token as well as an Edge token. Taking the first familiar name would misidentify the product.

The numbers need the same care. A fork can report its own product version and a separate Chromium version. Browsers and engines explains why a comparison with the connection should use the underlying engine where that can be established.

Reduced information is deliberate

A modern User-Agent may contain a broad operating-system label, a major browser version and fixed values in places that previously exposed more detail. The zeros in a version string do not establish that the browser has no patch updates.

Chrome’s User-Agent reduction documentation explains the privacy reason for removing device models, detailed platform versions and other identifying information. A reduced claim is expected behaviour, so an analysis should not interpret frozen values as a contradiction with the machine’s actual release.

What Client Hints add

Information Typical interface Important qualification
Brands and major versions Sec-CH-UA, userAgentData.brands A list can contain several brands and a deliberately unusual placeholder
Mobile preference Sec-CH-UA-Mobile, userAgentData.mobile Describes the reported client category, not a physical-device attestation
Platform Sec-CH-UA-Platform, userAgentData.platform A broad label rather than an exact operating-system build
More detailed values Additional headers or getHighEntropyValues() Availability depends on browser support, requests and policy

Some basic hints are normally available on secure Chromium requests. Servers request additional headers through Accept-CH; scripts can request selected detailed values through getHighEntropyValues(). Browser and permissions policies can restrict what arrives. The Client Hints proposal defines these interfaces and their privacy controls.

The brand list is intentionally unsuitable for exact string matching. Chromium includes an arbitrary brand, and order can vary. A generic Chromium entry describes the platform rather than identifying one commercial browser. Read recognised entries instead of assuming that the first entry is the real brand.

Compare claims before drawing conclusions

Useful comparisons include the major engine version in the User-Agent against the Chromium version in the brand list, and the broad platform in the string against the platform hint. Normalise known compatibility cases before reporting a conflict: desktop-site modes can change how a mobile browser describes itself.

A single normalised browser record is useful for grouping, but it can hide disagreements if one source simply overwrites another. Preserve a separate result for the comparison so that “the hints won” does not become “the sources agreed”.

Headers can also be compared with TLS observations and engine capabilities. These describe different parts of the client. A disagreement warrants context; agreement only means the available observations are consistent.

For comparisons between the page, a Worker and an iframe, continue with environment consistency. For clients that openly identify themselves as software, see crawlers and bots.