User-Agent Parser

Browser
Engine
OS
Device Type

How User-Agent Strings Work

The HTTP User-Agent header is a text string sent by browsers, mobile apps, CLI tools, and search crawlers to identify their software environment. Although modern browsers are gradually moving toward User-Agent Client Hints (Sec-CH-UA), the classic User-Agent header remains the primary signal in web server logs, analytics pipelines, and bot-detection rules.

Why User-Agent Strings Look So Messy

For historical compatibility reasons, almost every modern browser includes tokens from older browsers:

  • Mozilla/5.0: A legacy prefix retained since the Netscape era so servers do not serve stripped-down 1990s HTML.
  • Rendering Engine: AppleWebKit/537.36 (used by Chrome, Edge, Opera, and Safari), Gecko/20100101 (Firefox), or Blink (Chromium).
  • OS & Platform Tokens: Strings like Windows NT 10.0; Win64; x64, Macintosh; Intel Mac OS X, Android 14, or iPhone; CPU iPhone OS 17_0.
  • Browser & Bot Identifiers: Notice that Chrome includes Safari/537.36, and Edge includes both Chrome/ and Edg/. Correct parsers therefore check for Edg/ and OPR/ before Chrome/, and Chrome/ before Safari/.

Use Cases & FAQ

  • Is parsing done locally? Yes, the parser runs 100% in your browser and never logs or transmits the User-Agent string.
  • Can User-Agent headers be spoofed? Yes, any HTTP client or curl -A command can send an arbitrary User-Agent string, so never rely on it for security or authentication - use it only for analytics, logging, and UX adaptation.
  • Looking for common bot or browser strings? Check our Popular User Agents reference list or inspect your own live browser metadata on Your Browser.

Analyzing Bots & Crawlers in Server Logs

When reviewing traffic spikes or rate-limit triggers, check whether a crawler's User-Agent string matches its verified IP range - for example, genuine Googlebot requests originate from published Google IP Ranges and resolve via reverse DNS to *.googlebot.com. Scrapers often masquerade as Chrome on Windows 10 with outdated version numbers, so pairing User-Agent parsing with IP Subnet Counter gives you a much clearer picture of real versus automated traffic.

Please read the privacy policy (agreement of the cookies usage, other websites embedded content, etc.). If you continue to use the site, we will assume that you agree with our privacy policy.
OkPrivacy Policy