Skip to content
OddsockLocal

User-agent parser

Browser, engine, OS and device from a user-agent string.

Runs in this browser. Nothing is uploaded.

How to use

  1. Read the string that was filled in, or paste one from a log.
  2. Press Use this browser to restore the current browser’s string.
  3. Read Browser, Engine, Operating system and Device.
  4. Treat Not identified as unrecognized, not as a desktop machine.

What is User-agent parser?

The parser labels a user-agent string. It does not execute it and it does not fetch a device database. Paste Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 and the rows are Browser Chrome 131.0.0.0, Engine Blink, Operating system macOS 10.15.7, Device Desktop-class. Chrome is recognized from the Chrome token. Blink is inferred because that Chrome version is in the range that uses Blink. macOS comes from Mac OS X 10_15_7, with the underscores already dots in the source. Desktop-class comes from Macintosh.

Read more

The box starts filled with this browser’s own string, and Use this browser puts that string back if you have edited it. The note under the facts is the caveat: the labels come from the string, and browsers can hide or change their identity. A Chrome token can be present in a client that is not Chrome. Edge is checked before Chrome so an Edge string is not labeled Chrome just because it also contains the Chrome token.

Browser info is the page that lists screen, viewport and feature flags for the browser you are actually using. This page will label a string from a log, including a string that is not yours. curl/8.1.0 is a different shape and is not one of the browser rows the page names; a string it does not recognize stays Not identified.

Use cases

  • A log line has a long Chrome string and you want Chrome 131, Blink, macOS 10.15.7 and Desktop-class without reading the parentheses.
  • An Edge string should stay Edge, even though the token Chrome is also in it.
  • You edited the box and you want this browser’s string back with one button.
  • A support ticket’s device field should say Mobile or Tablet from the string, with the caveat that the client may have spoofed it.

A desktop Chrome 131 string

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Browser Chrome 131.0.0.0. Engine Blink. Operating system macOS 10.15.7. Device Desktop-class.

Why use Oddsock

The labels are a reading of the string, and the page says so. A client can send a Chrome token without being that browser.

Related tools

Using this tool

The Chrome version token is in the range the page treats as Blink. Older strings can fall through to WebKit. The label is inferred from the text, not from asking the browser.