User Agent Parser
Parse User-Agent strings to extract browser, OS, engine, and device information
Parsed Result
Client Hints (Modern Alternative)
User-Agent strings are increasingly frozen/reduced by browsers. The modern replacement is User-Agent Client Hints (Sec-CH-UA headers), which provide structured, privacy-preserving data.
Servers can request high-entropy hints via the Accept-CH response header. In JavaScript, use navigator.userAgentData.getHighEntropyValues() for detailed info. Supported in Chromium-based browsers (Chrome 89+, Edge 89+, Opera 75+).
The User-Agent header is a string that browsers send with every HTTP request to identify themselves. This tool parses that string and extracts structured information: browser name and version, operating system, rendering engine, and device type.
What Gets Extracted
- Browser: Chrome, Firefox, Safari, Edge, Opera, Samsung Internet, and 20+ others with version numbers
- Operating System: Windows (with version name like “11” or “10”), macOS, Linux distribution hints, Android, iOS
- Engine: Blink (Chrome/Edge/Opera), Gecko (Firefox), WebKit (Safari)
- Device type: Desktop, mobile, or tablet based on UA patterns
- Bot detection: Identifies Googlebot, Bingbot, GPTBot, ClaudeBot, and other crawlers
The UA String Problem
User-Agent strings are notoriously difficult to parse because every browser lies about its identity for compatibility reasons. Chrome’s UA includes “Safari” and “Mozilla”. Edge includes “Chrome”. This tool handles these quirks by matching patterns in the correct order — checking for the most specific identifier first.
Client Hints: The Future
Google is gradually replacing User-Agent strings with Client Hints (Sec-CH-UA headers) that provide structured, lower-entropy data. However, UA strings will remain necessary for bot detection, analytics, and legacy browser support for years to come.
Use Cases
- Analytics debugging: Verify how your analytics platform categorizes a specific UA string
- Conditional rendering: Test UA patterns before using them in server-side or client-side browser detection
- Bot identification: Determine if a UA belongs to a search engine crawler, AI bot, or real browser