Skip to main content

User-Agent String Parser

Identify a User-Agent string’s browser family, operating system, and device class

User-Agent String Parser

User-Agent Header String

Paste a value from a request header or bug report. Input stays in this tab and is not saved. Maximum: 8,192 characters.

117 / 8,192

Likely User-Agent Details

Likely browser: Google Chrome. Operating system: macOS. Device class: Desktop / Other.

Browser family
Google Chrome
Operating system
macOS
Device class
Desktop / Other

This is a local, token-based estimate. Browsers can reduce or spoof User-Agent values, so the result does not verify a device or identify exact browser or operating-system versions. Tablet detection uses common Android and iPad tokens; desktop-mode iPad strings can resemble macOS.

Was this User-Agent String Parser helpful?

Help us keep tools reliable, fast, and bug-free.

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.36

Example output

Browser: Google Chrome · OS: macOS · Device: Desktop / Other

Practical workflow

  1. Paste a User-Agent string from server logs, analytics, or a bug report.
  2. Read the detected browser family, operating system, and device class.
  3. 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.com

Transmits 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.com

Tests 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

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.