User Agent Parser
Decode, analyze, and debug User Agent strings. Identify browsers, OS, bots, and feature capabilities with high-precision regex parsing.
About
The User Agent (UA) string is a fundamental component of web architecture, acting as a digital handshake between a client and a server. However, due to the Browser Wars of the 1990s and legacy compatibility quirks, these strings have become notoriously convoluted. For example, almost every modern browser claims to be Mozilla/5.0 to bypass ancient server-side sniffing logic.
This tool goes beyond simple string extraction. It utilizes a deep Regex Dictionary to identify not just the browser, but the rendering engine (e.g., Blink, Gecko), the specific operating system version, and device type. Crucially for SEO and DevOps, it distinguishes between legitimate traffic and automated scrapers (bots) by analyzing signature tokens.
Formulas
The parsing logic relies on a priority-based pattern matching algorithm. A simplified representation of the matching set S is:
We also calculate a Capability Score based on the browser version v against a feature matrix M:
Reference Data
| User Agent Type | Example String | Detected Environment |
|---|---|---|
| Modern Desktop (Windows) | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 | Chrome 120 on Windows 10/11 |
| Modern Mobile (iOS) | Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1 | Safari 17 on iPhone (iOS 17) |
| SEO Crawler (Google) | Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.6045.160 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) | Googlebot (Smartphone) |
| Legacy (IE) | Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko | Internet Explorer 11 on Windows 7 |
| Script / Bot | curl/7.64.1 | cURL Command Line Tool |
| Game Console | Mozilla/5.0 (PlayStation 4 3.11) AppleWebKit/537.73 (KHTML, like Gecko) | Sony PlayStation 4 |