
What a user agent string is
A user agent string is a line of text your browser puts in the User-Agent header of every HTTP request. Sites use it to pick a mobile or desktop layout, and admins use it to tell browsers from crawlers in their logs. Scripts on a page read the same value through navigator.userAgent, which is where this page gets yours. The parser runs in your browser.
Starting in 2022, Chrome, Edge and other Chromium browsers trimmed the string. The platform stays at Windows NT 10.0 on Windows 11, the browser version keeps its major number and zeros, as in Chrome/142.0.0.0, and Chrome on Android sends Android 10; K in place of the real version and phone model. A site that needs the exact values asks for Client Hints.
The parser knows Chrome, Edge, Firefox, Safari, Opera, Vivaldi, Samsung Internet, Yandex Browser and Internet Explorer. Brave and Arc send a plain Chrome string, so the page reports them as Chrome.
Who checks a User-Agent string
- Support teams who need a customer's browser and OS. When you paste a string, the page adds it to the address as ?ua=, so you can send a link that opens the same breakdown.
- Admins reading server logs who want to know whether a request came from a browser or a crawler.
- Developers checking the default string their HTTP client or script sends.
- People setting up an antidetect browser who match the User-Agent to the platform and Client Hints.
How to find your user agent in Chrome, Firefox, Safari and on phones
This page shows it in any browser: open it and press Copy. In Chrome or Edge you can also type chrome://version or edge://version in the address bar and read the User agent line. Firefox lists it as User Agent under Application Basics on about:support. In Safari on a Mac, turn on the developer features in the Advanced tab of Safari settings, open Web Inspector and type navigator.userAgent in the Console. Chrome on Android opens chrome://version too. Safari on an iPhone has no such page, so open this one in Safari and copy the string from the field. Chrome on an iPhone sends CriOS in place of Chrome and runs on WebKit, and the breakdown lists it as Chrome with the WebKit engine.
Anatomy of a user agent string: Chrome on Windows and Safari on iPhone
Chrome on Windows sends a string like Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36. Mozilla/5.0 is a compatibility token left over from the Netscape days. The brackets hold the platform, here 64-bit Windows. Chrome kept the AppleWebKit/537.36 (KHTML, like Gecko) engine token after its move to Blink, and the trailing Safari/537.36 is there for old scripts that look for Safari. Chrome/142.0.0.0 gives the major version followed by zeros. Safari on an iPhone sends Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Mobile/15E148 Safari/604.1. Here the OS version uses underscores, Version/18.5 is the Safari release, and the Mobile token marks a mobile browser. The parser reads the first string as Chrome 142.0.0.0 on Windows 10/11 with Blink, and the second as Safari 18.5 on iOS 18.5 with WebKit.
Bots and scripts the parser recognizes
Before it looks for a browser, the parser checks the string for crawler and tool names. On the crawler side it knows Googlebot, bingbot, YandexBot, DuckDuckBot, Baiduspider, AhrefsBot, SemrushBot and facebookexternalhit. On the script side it catches curl, Wget, python-requests, Go-http-client and HeadlessChrome. A match sets the device to Bot or script and shows the name with its version, so a Googlebot smartphone string reads as Googlebot 2.1 even though it carries a Chrome token too. The parser takes the name in the string at face value, and anyone can copy a Googlebot string. To confirm a crawler, check its IP with a PTR lookup.