About User-Agent Parser
Every browser and crawler sends a user-agent string with each request, such as Mozilla/5.0 (Windows NT 10.0; Win64; x64) ... Chrome/126.0.0.0 Safari/537.36. The string is long and full of historical leftovers, so reading it by eye is unreliable.
Paste a user-agent and the parser returns the browser and version, the operating system and version, the device type (desktop, mobile or tablet) and the name of a known crawler such as Googlebot or GPTBot. It works from the text only, in your browser.
How to use User-Agent Parser
- Copy a user-agent string from your server logs, analytics or browser.
- Paste it into the input box and click Run Tool.
- Read the browser, operating system, device type and bot fields.
Example
Input
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Output
{
"browser": "Chrome",
"browser_version": "126.0.0.0",
"os": "Windows",
"os_version": "10/11",
"device_type": "desktop",
"bot": null
}Common uses
- Identifying which crawlers are visiting your site in access logs.
- Debugging a layout bug that only happens on one browser or phone.
- Checking what a visitor's device looks like from an error report.
Privacy and safety
This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.
Frequently asked questions
Can user-agent strings be faked?
Yes. Anyone can send any string, so a user-agent that says Googlebot is not proof. To verify Googlebot, do a reverse DNS lookup as Google documents.
Where can I find my own user-agent?
Open your browser developer tools and run navigator.userAgent in the console, or check your server access log.
Why does Chrome say Safari and Mozilla?
For historical compatibility. Browsers copied each other's strings so websites would not block them, which is why many strings contain several browser names.