Skip to content
ToolZone

User Agent Parser

Break down a browser's user agent string into readable browser, operating system, and device details, useful for debugging analytics.

Runs in your browser. Nothing you enter or upload leaves your device.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

About the User Agent Parser

Every browser sends a user agent string with each request, describing itself, its operating system, and its engine. The User Agent Parser breaks that long string into four readable fields, and it starts with your own browser's user agent already filled in.

How it works

The parser uses pattern matching. For the browser, it finds the first token in the string that matches Firefox, Chrome, Safari, Edge, Opera, OPR, MSIE, or Trident followed by a slash and version, such as Chrome/120.0.0.0. For the operating system, it looks for the first match of Windows NT, Mac OS X, Android, iPhone OS, Linux, or CrOS and converts underscores in version numbers to dots.

Device type is Tablet if the string contains iPad or Tablet, Mobile if it contains Mobile, Android, or iPhone, and Desktop otherwise. The engine is the first of Gecko, WebKit, Blink, Trident, or Presto found in the string. Because the first match wins, the order of tokens in the string matters, which is important to understand when reading results.

How to use

  1. 1

    The User Agent string field shows your own browser's user agent when the page opens.

  2. 2

    To check a different one, paste the user agent from your log or ticket; Use my browser switches back, and Copy link shares the result.

  3. 3

    Read the Browser, Operating System, Device Type, and Engine rows below.

Worked examples

Chrome on Windows

A desktop entry from a web server log.

Input
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Result
Browser: Chrome/120.0.0.0 Operating System: Windows NT 10.0 Device Type: Desktop Engine: WebKit

Chrome reports AppleWebKit for compatibility, so the engine shows WebKit even though Chrome actually uses Blink.

Firefox on Windows

Checking a bug report from a Firefox user.

Input
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
Result
Browser: Firefox/121.0 Operating System: Windows NT 10.0 Device Type: Desktop Engine: Gecko

Safari on iPhone

A mobile visitor from analytics.

Input
Mozilla/5.0 (iPhone; CPU iPhone OS 17_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Mobile/15E148 Safari/604.1
Result
Browser: Safari/604.1 Operating System: iPhone OS 17.1 Device Type: Mobile Engine: WebKit

Safari/604.1 is a WebKit build token; the marketing version, 17.1, appears in the Version/ token instead.

Limitations
Browsers that copy Chrome's user agent exactly, such as Brave, are reported as Chrome. Bots are recognized by common words like bot, crawler or spider, so an unusual bot may show as Desktop. Newer browsers freeze parts of the string (macOS always says 10.15.7, Windows 11 says NT 10.0), so versions can be out of date.
Assumptions
The string follows the usual browser user agent format. The user agent has not been deliberately spoofed.
Privacy
Parsing happens in your browser; your user agent and any string you paste are not sent or stored.

Frequently asked questions

Where do I find my own user agent string?+

This tool shows it automatically when the page loads. You can also find it in your browser's developer tools under the Network tab, in the User-Agent request header.

Can user agent strings be spoofed?+

Yes. A user agent is just text the browser sends, and users, extensions, and testing tools can change it, so never rely on it for security decisions.

Does Chrome use WebKit?+

It doesn't: Chrome, Edge and Opera are reported as Blink, even though their user agents include AppleWebKit for compatibility. Blink is a fork of WebKit.

Is Edge detected correctly?+

Yes. Edge's user agent also contains Chrome/, but the parser checks for Edge's own Edg/ token first, and does the same for Opera and Samsung Internet.

Does Windows NT 10.0 mean Windows 10?+

It can mean Windows 10 or Windows 11. Both report NT 10.0 in the user agent string, so you cannot tell them apart from this value alone.

Related tools