Skip to content

← All tools

Free online tool

User-agent parser

See at a glance which browser, version, engine, operating system and device type a user-agent string describes. The box starts filled with your own browser's user-agent, and you can paste any other from your logs. The rules are a small table written for this page; nothing is uploaded.

How it works

  • •Your browser's own user-agent is filled in for you. Paste another one, or use one of the example buttons.
  • •Four cards show browser, engine, operating system and device. Bots and command-line tools are recognised first, then browsers (Edge, Opera, Samsung Internet and in-app browsers before Chrome and Safari, because they also contain the word Chrome), then the system and the device.
  • •Notes below explain traps in the string, such as Chrome freezing the macOS version or Safari on iPad reporting a Mac.

What it does and what it cannot do

  • •A user-agent is whatever the client says it is. It can be changed by the user, an extension or a script, and bots often pretend to be Chrome or Googlebot.
  • •Browsers now reduce the string on purpose: Windows 10 and 11 look the same, macOS is frozen at 10.15.7, and Chrome on Android hides the exact model. For exact values sites use User-Agent Client Hints.
  • •The rule table covers the common browsers, systems, devices and crawlers. Rare or very new ones show as unknown.
  • •Device vendors come from model-name prefixes (such as SM- for Samsung) and may be missing.

Questions

What is a user-agent string?
A line of text a browser or app sends with every web request to say what it is, for example Mozilla/5.0 (Windows NT 10.0; Win64; x64) … Chrome/120.0.0.0 Safari/537.36. Almost all of them begin with Mozilla/5.0 for historical reasons.
Why does Chrome's user-agent contain Safari and Mozilla?
Browsers kept copying each other's names so that sites written for one would work with the next. Check for Edg, OPR or SamsungBrowser first and Chrome after that; this tool does.
How can I tell a phone from a tablet?
Android phones include the word Mobile; Android tablets do not. iPhone and iPad name themselves. An iPad in desktop-site mode looks like a Mac.
Can I trust it to detect bots?
Only to read what the bot says. Anyone can write Googlebot. To verify Googlebot, run a reverse DNS lookup on the IP and check it ends in googlebot.com or google.com.
Is my user-agent uploaded?
No. Parsing happens in this page.

Related tools