Paste a User-Agent string and instantly identify the browser, operating system and device type. Handy for debugging compatibility or reading access logs. 100% client-side.
A typical value looks like Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ... Chrome/120.0 Safari/537.36. Reading it left to right:
| Part | Meaning |
|---|---|
Mozilla/5.0 | A compatibility fossil — every browser claims to be Mozilla so that old scripts do not block it |
| Platform in brackets | Operating system and, sometimes, architecture |
AppleWebKit/537.36 | The rendering engine; Chrome and Safari both report the same token |
| Extra tokens | Other engines the browser wants credit for: Gecko, KHTML, like Gecko |
| Real name and version | Usually the last, and the only part that is actually informative |
The pattern is historical accident layered on historical accident. Chrome says it is Safari, Safari says it is Mozilla, and Internet Explorer deliberately said it was Mozilla and Gecko while being neither.
For feature decisions, detect the feature rather than the browser: check for the API you need and provide a fallback. When you genuinely need structured client information, use User-Agent Client Hints, which expose specific properties that the client deliberately volunteers, rather than parsing a legacy string. For analytics, treat the parsed result as an estimate and never as an identity.
A parser is most useful for a quick answer to "what is this hitting my server?" — a scraper, an old mobile browser, or a search-engine bot. Combine what you learn with the request headers and the access pattern; a conventional user-agent string arriving thousands of times per second from one address says more than the string itself.