What you can do with User-Agent String Parser
- Parse user agent header
- Detect browser and os
What this network diagnostic measures
Decode a User-Agent string into browser, operating system, and device type.
Example input
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36Example output
Browser: Google Chrome · OS: macOS · Device: Desktop / OtherPractical workflow
- Paste a User-Agent string from server logs, analytics, or a bug report.
- Read the detected browser family, operating system, and device class.
- Use your own browser's User-Agent (prefilled) to compare against the reported one.
Common use cases
- Identify which browser and OS a bug reporter is actually using.
- Classify traffic in server logs by browser family and device type.
- Verify what User-Agent your own browser or HTTP client sends.
Important notes and limitations
- Modern browsers freeze or reduce parts of the User-Agent; this parser reports likely families rather than exact browser or operating-system versions.
- Token matching is heuristic and strings can be spoofed. Android tablets are inferred when the common Mobile token is absent, and iPad desktop mode can resemble macOS.
- Parsing is local; strings are never uploaded.
Terminal User-Agent inspection & curl spoofing
Spoof Googlebot User-Agent with cURL
curl -sI -A 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' https://example.comTransmits a Googlebot crawler identity header to inspect bot-specific prerendering or cloaking behavior.
Spoof iPhone Mobile Safari User-Agent
curl -s -A 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Mobile/15E148 Safari/604.1' https://example.comTests mobile adaptive HTML markup and responsive header redirects from the command line.
Parse User-Agent string using node ua-parser-js
npx -y ua-parser-js 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36'Extracts structured browser family, rendering engine, OS distribution, and device CPU architecture.
User-Agent spoofing & Client Hints troubleshooting
User-Agent string freezing in modern Chromium browsers
Cause: Chromium freezes User-Agent versions (e.g. Chrome/120.0.0.0) to prevent cross-site device fingerprinting.
Solution: Query Sec-CH-UA (User-Agent Client Hints) headers for precise browser release and architecture details.
WAF blocking requests based on default curl User-Agent
Cause: Cloudflare and AWS WAF default rules drop requests carrying 'User-Agent: curl/8.x.x' to block automated scrapers.
Solution: Supply a standard browser header with '-A' or configure legitimate API credentials in the WAF allowlist.
Continue your workflow
- HTTP Response Header Inspector — inspect browser-readable response headers and CORS exposure limits.
- HTTP Request Tester — send requests with a custom User-Agent.
Frequently asked questions
How do I find out what browser a User-Agent string belongs to?
Paste the string and the parser estimates its browser family, recognized operating-system family, and device class. It does not report browser versions or rendering engines; classic Mozilla/AppleWebKit prefixes are compatibility tokens rather than browser names.
Why do many desktop User-Agent strings start with Mozilla/5.0?
Many desktop browsers retained Mozilla/5.0 as a compatibility token. It does not mean the browser is Mozilla Firefox; later tokens such as Chrome/, Firefox/, or Safari/ may provide more useful clues.
Is parsing done locally?
Yes. Strings from your logs never leave the browser.