Skip to content
Categories
User-Agent Parser
Parse browser, OS, and device information from a User-Agent string.
Overview
- Parses a User-Agent string, such as one found in an HTTP request header, and breaks it down into browser name, version, rendering engine, OS, device information, and CPU architecture.
- Fields that cannot be recognized are shown as "Unknown" rather than causing an error, so even unsupported User-Agent strings are handled safely.
- Many desktop User-Agent strings do not include device vendor/model information, so device information is shown as "Unknown" in that case.
Usage
- Paste the User-Agent string you want to parse into the input field.
- Click "Parse".
- Browser, engine, OS, device, and CPU information is displayed.
Example
Input
Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1
Output
Browser: Mobile Safari 17.0 / OS: iOS 17.0 / Device: Apple iPhone
Use Cases
- Investigating trends in visitors' browsers and OSes from User-Agent strings recorded in access logs
- Checking how a real User-Agent string is parsed while implementing browser or device detection logic
- Identifying a bug reporter's environment (browser, OS, device) from the User-Agent string included in their report
FAQ
What happens if I enter an unsupported User-Agent string?
It will not error; any fields that could not be recognized are shown as "Unknown".
Why is device information empty for desktop devices?
Many desktop User-Agent strings do not include device vendor/model information, so the parsed result is also empty (Unknown).
Is the User-Agent string I enter sent anywhere?
No. All parsing happens entirely in your browser.
Notes
- Since a browser or app can set its User-Agent string to anything, it may be spoofed (differ from the actual environment). Do not treat the parsed result as absolute fact.
- Entering an unsupported or malformed User-Agent string does not cause an error; the affected fields are simply shown as "Unknown".
- The parsed result exists only on the page and is lost on reload.
Related Tools
Generate a User-Agent string from a combination of major browsers and operating systems.
Look up HTTP status codes by code number, keyword, or category (1xx–5xx).
Look up the MIME type for a file extension, or search by MIME type or category.