User-Agent Parser

Break a browser User-Agent string into browser, engine, OS and device.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

User-Agent parser

Every time a browser makes a request, it sends a User-Agent string — a line of text that names the browser, its version, the rendering engine and the operating system. This parser breaks any such string into those parts: browser, rendering engine, operating system and device type (desktop, mobile, tablet or bot). The box is pre-filled with your own browser’s User-Agent so you can see exactly what your device reports, and you can paste strings from logs or analytics to identify what generated each request.

How it works

Detection runs an ordered set of regular expressions against the string, testing the most specific tokens before the generic ones. This ordering matters because User-Agents deliberately overlap: a Chrome string also contains Safari, and an Edge string also contains Chrome. By checking Edg/ before Chrome/, and SamsungBrowser/ before plain Chrome/, the parser reports the most precise match. It separately matches OS tokens (Windows, macOS, Android, iOS, Linux) and device hints to classify the device.

Example

Given Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1, the parser reports:

FieldDetected
BrowserSafari 17.0
EngineWebKit
OSiOS 17
DeviceMobile

Everything runs in your browser; no string is sent to a server. Because User-Agents are self-reported and can be spoofed, treat the output as a best-effort interpretation rather than proof.

Ad placeholder (rectangle)