BrowserLeaksUSBrowserLeaksUS

UserAgent Parser

Parse and analyze User-Agent strings

Input

What this tool does

Parses any User-Agent string into structured data: browser name and version, operating system, device type (mobile/tablet/desktop), rendering engine, and CPU architecture. Runs fully client-side.

Who it's for: Developers segmenting traffic, analysts profiling user bases, and security teams tracking unusual agent strings.

When to use

  • •Inspect a suspicious User-Agent from access logs.
  • •Verify a bot's UA string matches its claimed identity.
  • •Profile a specific device model reported by a customer.
  • •Parse User-Agents in bulk for analytics reports.

How it works

  1. 1Paste any User-Agent string.
  2. 2Regex patterns extract browser, OS, device.
  3. 3Your current browser's UA is pre-filled.
  4. 4No data leaves your device.

Tips

  • •User-Agent strings can be spoofed trivially - never trust them for security.
  • •Modern browsers are reducing UA detail (UA-CH is the replacement).
  • •Mobile / Tablet / Desktop classification is heuristic, not perfect.

Using this result

How to read a parsed user agent

01

Browser, engine, OS, and device

The parser splits a User-Agent string into browser name and version, engine, operating system, and device class. The string you paste is the only input. The result is a best effort against known tokens, not a live reading of this machine. Paste the User-Agent from HTTP Headers or from JavaScript Info when you want to parse yourself. A current Chrome string still says Mozilla/5.0 and often mentions Safari and AppleWebKit. Those tokens are historical. Read the browser row the parser extracted, not every word in the raw string.

Device type is inferred. Desktop is the default when no phone token is present. A tablet and a phone are separated by tokens such as Mobile and iPad, and those tokens are easy to fake. CPU architecture appears only when the string carries it. Most desktop Chrome strings do not. Empty fields mean the token was absent, not that the parser failed. A bot string often names the bot on purpose, such as Googlebot. The parser will show that name. It will not decide whether the visitor was really that bot.

02

When the string and the browser disagree

Compare the parsed OS and browser with Client Hints. Client hints are the structured replacement, and on current Chromium they are more honest than the frozen User-Agent version. If the parsed browser is Chrome 10x and the hint full version is a different build, believe the hint for Chromium and treat the User-Agent as a compatibility costume. If they name different operating systems, something is rewriting one of the two.

Privacy extensions that randomize the User-Agent create a string the parser will still accept. The parsed result can look perfectly ordinary and still disagree with the GPU and the platform. This page cannot see that disagreement because it never sees the rest of the profile. Open Bot Detection when the string is only one symptom. Use this page to decode a string you found in a log.