User-Agent Parser
Parse a UA string into browser, engine, operating system, device and crawler
User-Agent 字符串
粘贴浏览器开发者工具请求头里的 User-Agent、日志中的访问者标识,或客服收到的截图文字,都能一次拆出浏览器、内核与系统。
这段 UA 说明什么?
User-Agent(UA)是浏览器在每次 HTTP 请求中自动携带的一串文本,用来告诉服务器「我是谁」。它由四部分组成:Mozilla/5.0 兼容头、(...) 内的系统环境、一串内核标识、以及浏览器自身版本。
About this tool
Every request carries a User-Agent string that says who is asking. It shows up constantly in log analysis, access statistics and compatibility checks, but its field order carries decades of legacy and is easy to misread:
- Six dimensions: browser or client, rendering engine, operating system, device type, CPU architecture and language
- Highlighted segments: hover any part to see what it really means, including compatibility claims such as
Mozilla/5.0and(KHTML, like Gecko) - Chinese and mobile clients: WeChat, WeCom, DingTalk, Douyin, QQ Browser, UC, Quark and Xiaomi, Huawei, OPPO and vivo browsers are recognized
- Crawlers and scripts: Baidu, Google, Bing, Sogou, 360 and Bytespider spiders, plus curl, wget, python-requests, OkHttp and Postman
- Version mapping: Windows NT kernel numbers become market names, and iOS or macOS underscore versions become dotted ones
- Read my UA: view the string your current browser sends, handy for configs and support tickets
When to use it
- Identify the device and browser behind a line in Nginx or CDN logs
- Confirm whether a user opened a page inside WeChat or a system browser
- Debug H5 pages that behave differently in iOS WeChat
- Separate search engine spiders from malicious scripts in middleware rules
- Check conditions before writing UA sniffing, redirects or rollout rules
Common UA layouts
| Device or browser | Signature | How to read it |
|---|---|---|
| Windows Chrome | Windows NT 10.0; Win64; x64 ... Chrome/131.0 | NT 10.0 covers both Win10 and Win11; the trailing Safari/537.36 is legacy |
| Windows Edge | ... Chrome/131.0 ... Edg/131.0 | Modern Edge is Chromium based; Edg/ identifies it |
| macOS Safari | Version/17.4 Safari/605.1.15 | Version/ is the Safari version; 605 is the WebKit build |
| Windows Firefox | rv:132.0) Gecko/20100101 Firefox/132.0 | Gecko/20100101 is fixed; the real version is after rv: |
| iPhone Safari | CPU iPhone OS 17_4 like Mac OS X ... Mobile/15E148 | 17_4 means iOS 17.4; Mobile marks the phone build |
| Android WeChat | MicroMessenger/8.0.40 WeChat/arm64 NetType/WIFI | MicroMessenger means the WeChat browser, where H5 authorization must run |
| Search spider | compatible; Baiduspider/2.0 | The spider name follows compatible; with its documentation URL |
Common questions
- Can a UA be faked? Yes, any client can set the string. Judge real origin with JS fingerprints, request rates and signature checks; this tool only reads the text
- Why do browsers send less detail now? Mainstream browsers are freezing version numbers to reduce fingerprinting, so detail must come from
Client Hints - How do I detect a mini program or app webview? Look for
MicroMessenger,miniProgramorAliApp; the tool names the client directly in its result
To split a URL into host and parameters, use the URL parser; for IP location, use IP lookup; for UA regex filtering, see the regex tester. Parsing runs locally in the browser and pasted content is never uploaded.