Toolvito

Works on this device

User Agent Parser

Paste a user agent string to see which browser, engine, system and device it names, and which rule gave each answer. The string is read on your device and is not sent anywhere.

Your user agent string

Paste one string, such as the User-Agent line of a request or a line from a server log.

Your values are worked out in this browser. They are not sent to a server.

The answers will show here

Paste a user agent string, or choose Try an example.

How to use the user agent parser

  1. Paste one user agent string in the box. This is the text a browser or program sends in the User-Agent line of a request. You can paste the whole line with User-Agent: at the start.
  2. The answers show at once: browser, engine, operating system, device class, and whether the string has the mark of a crawler or a program.
  3. The table What was read, and why names the rule that matched and the part of the string it came from.
  4. To read many strings, choose A list of user agent strings in the menu and paste one string on each line, or open a text file.
  5. Choose Download CSV or Copy result to keep the answers.

How to find the string of your own browser

This page does not read your browser. To see its string, open the developer tools of the browser, choose Console, type navigator.userAgent and press Enter. Copy the text between the quotation marks and paste it here.

How the string is read

The rules were written for this tool. They are tried in a fixed order, and the first rule that matches gives the answer. The order matters, because most browsers copy parts of other browsers into their string.

  • Browser: Edge, Opera, Samsung Internet, Vivaldi, Yandex Browser and other browsers built on Chromium are tested before Chrome, because their strings also hold Chrome/. Chrome is tested before Safari, because a Chrome string also holds Safari/.
  • Browsers on iPhone and iPad: CriOS/ marks Chrome, FxiOS/ marks Firefox and EdgiOS/ marks Edge. Their engine is read as WebKit, because browsers on iOS are built on WebKit.
  • Web views: the mark ; wv in an Android string, or an iOS string with no Safari/ part, means a page shown inside an app.
  • Engine: Trident/ is Internet Explorer, Gecko/ with rv: is Firefox, Chrome/ with version 28 or later is Blink, and AppleWebKit/ alone is WebKit.
  • Operating system: Windows NT 10.0 is Windows 10 or 11, Windows NT 6.1 is Windows 7, Mac OS X 10_15_7 is macOS 10.15.7, and Android 13 is Android 13. Underscores stand for dots.
  • Device class: iPhone is a phone and iPad is a tablet. Android with the word Mobile is a phone, and Android without it is read as a tablet. A television or game console mark is tested before that.
  • Crawler or program: the string is tested against a list of well-known crawlers, link fetchers and programs. After that, a name with the word bot, crawler or spider before a slash, or a contact address that starts with +http, also counts.

Worked example

The string Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 is 111 characters long. It is read as browser Chrome 120.0.0.0, engine Blink, operating system Windows 10 or 11, device class Desktop or laptop, with no crawler marker.

The same string with Edg/120.0.0.0 added at the end is read as Microsoft Edge 120.0.0.0, because the Edge rule is tested before the Chrome rule.

What a user agent string can and cannot tell you

  • The string is a claim made by the sender. Any program can send any string. Crawlers and attack tools often send the string of a normal browser.
  • Browsers now send less in this string than before. Browsers built on Chromium send only the main version number, and the rest is .0.0.0.
  • Some values no longer change. Windows 10 and Windows 11 both send Windows NT 10.0. Browsers on a Mac send 10_15_7 whatever the real version of macOS is. Chrome on Android sends Android 10; K in place of the real version and model.
  • So the version of the system that this page shows may be older than the real one. The page tells you when it sees one of these fixed values.
  • Safari on an iPad can send the string of a Mac. It is then read as a Mac.
  • The exact model of an iPhone or iPad is never in the string.

Limits you should know

  • The rules are this tool's own and cover the common browsers, systems and crawlers. A rare browser is read as the browser it is built on.
  • The device class is a simple rule from the words in the string. A large phone, a small tablet or a folding device can be put in the wrong class.
  • A crawler name in the string does not prove who sent the request. Search engines publish ways to check their crawlers.
  • This page reads only the user agent string. It does not read the newer client hint headers, such as Sec-CH-UA, that some browsers send beside it.
  • One string can be up to 2,000 characters. A list can have up to 2,000 lines.
  • This is a page for people, not an API or a program library.

Related tools