User-Agent Parser

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.


    

Anatomy of a user-agent string

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:

PartMeaning
Mozilla/5.0A compatibility fossil — every browser claims to be Mozilla so that old scripts do not block it
Platform in bracketsOperating system and, sometimes, architecture
AppleWebKit/537.36The rendering engine; Chrome and Safari both report the same token
Extra tokensOther engines the browser wants credit for: Gecko, KHTML, like Gecko
Real name and versionUsually 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.

Why it cannot be trusted

What to use instead

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.

Practical decoding

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.

Related tools

HTTP status codes My IP address Regex tester

FAQ

Is the detection accurate?
It matches against common UA signature rules and covers mainstream browsers and operating systems; unusual or heavily customized UAs may be only partially recognized and are for reference only.
Is my UA uploaded?
No. Everything is done locally in your browser — nothing is sent.