Why user agent strings are so confusing
For compatibility, browsers copy each other's tokens. Chrome's UA contains "Mozilla", "AppleWebKit", "KHTML, like Gecko" and "Safari". The parser therefore checks tokens in a specific order: Edge, Opera, Samsung and other Chromium browsers before Chrome, and Chrome before Safari.
Example strings
| Browser | Key token |
|---|---|
| Chrome | Chrome/131.0.0.0 Safari/537.36 |
| Edge | Edg/131.0.0.0 |
| Firefox | Gecko/20100101 Firefox/133.0 |
| Safari | Version/18.1 Safari/605.1.15 |
| Googlebot | Googlebot/2.1 |
User-Agent reduction and Client Hints
Chromium browsers now freeze parts of the UA: Windows 11 still reports "Windows NT 10.0" and minor versions show as 0.0.0. Exact details are available through User-Agent Client Hints (Sec-CH-UA headers) if the server asks for them.