User Agent Parser
Parse any user agent string into browser, operating system, device type and engine details. Shows your current UA automatically. Free, browser-based.
💻 Developer Tools
Free
Browser-based
What is a User Agent String?
Every browser sends a User-Agent HTTP header with each request, identifying the browser name and version, rendering engine, operating system and device type. Web servers and analytics tools use this string to tailor responses, track browser usage and diagnose compatibility issues.
Common User Agent Examples
| Browser | UA Prefix |
|---|---|
| Chrome (Windows) | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36… |
| Safari (macOS) | Mozilla/5.0 (Macintosh; Intel Mac OS X…) AppleWebKit/605… |
| Firefox | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:…) Gecko/… |
| Chrome (Android) | Mozilla/5.0 (Linux; Android 14; Pixel 8) AppleWebKit… |
| Googlebot | Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) |
Why User Agent Strings Are Unreliable
UA strings are self-reported and not validated. Any browser or script can send any UA it wants. Common reliability problems include:
- Browser masquerading — Microsoft Edge sends a Chrome UA token (
Edg/) to ensure compatibility with Chrome-targeted sites. Detecting "Chrome" without also checking for "Edg/" will mis-identify Edge as Chrome. - Bot spoofing — Some crawlers and scrapers set a desktop browser UA to bypass bot-blocking rules. Bot detection based solely on UA is easily circumvented.
- User overrides — Desktop browsers let users set a custom UA string from DevTools or extensions. A mobile UA on a desktop means nothing if the user changed it manually.
Use UA detection for progressive enhancement and analytics — not for security or access control decisions.