About the User Agent Parser
User agent strings are long and confusing. This parser turns them into readable details, useful for debugging logs and analytics.
Each browser sends a user-agent string with every request, describing itself, its rendering engine, the operating system and sometimes the device. These strings are notoriously messy: almost every browser claims to be “Mozilla/5.0”, Chrome mentions Safari, and Edge mentions Chrome. This parser turns a raw string into readable fields.
It is pre-filled with your own browser’s user agent, and you can paste any other string from server logs, analytics exports or bug reports. Results include the browser and version, rendering engine, operating system, device type and vendor where known, CPU architecture and whether the string looks like a bot or crawler. Parsing is done by the open-source ua-parser-js library.
How to use the User Agent Parser
- 1Your user agent is filled in, or paste another one.
- 2Read the parsed details.
- 3Compare it with other user agents from your logs.
Key features
- Browser, engine, OS, device and CPU fields.
- Bot and crawler detection.
- Your own user agent filled in automatically.
- Paste any string from logs.
- Runs entirely in the browser.
Practical uses
- Reproducing a bug reported from a specific browser and OS.
- Spotting crawlers in access logs.
- Checking what your own browser reports.
- Cleaning analytics data by device type.
- Checking what a mobile in-app browser, such as Facebook’s, reports about itself.
Example
A string containing “iPhone; CPU iPhone OS 17_5 like Mac OS X” and “Version/17.5 Mobile Safari” is parsed as Mobile Safari 17.5 on iOS 17.5, device Apple iPhone, type mobile.
Tips and common mistakes
- Feature detection in code is more reliable than user-agent sniffing.
- Chrome on Windows 11 reports Windows 10; use Client Hints if you need the real version.
- Bots can fake normal user agents, so combine detection with other signals.
Limitations
- Reduced user agents in recent Chrome versions hide minor version numbers and device models.
- New or rare browsers may be reported generically until the library learns them.
Privacy
Parsing happens in your browser. Pasted strings from logs are not uploaded or stored.
Frequently asked questions
Is user agent detection reliable?
Mostly, but browsers can fake or reduce their user agent, so treat it as a hint.
Why does Chrome say Windows 10 on Windows 11?
Browsers froze the Windows version in the user agent; it can’t tell 10 and 11 apart.
Which library is used?
The open-source ua-parser-js library, running in your browser.
Why does my Android phone show no model?
Recent Chrome versions send a reduced user agent that replaces the model with a generic value to protect privacy.
Can websites see more than the user agent?
Yes. Screen size, language and other settings are also visible, which is why user agents alone are a weak identifier.