⌘

User Agent Parser

Inspect the browser and device details present in a user-agent string.

Choose a file or fill the fields, then click Show helper.

About User Agent Parser

Support tickets, analytics exports and server logs often include a raw user-agent string. A quick check of which browser family it names, and whether it looks like a phone, helps when triaging a bug report or deciding whether an issue is mobile-only. The field starts filled with your own browser's string, so you can inspect it immediately.

How it works

The parser checks the text against a few patterns in a fixed order. If it contains Edg/ the browser is Edge, otherwise Chrome/ means Chrome, then Firefox/ means Firefox, and otherwise any mention of Safari means Safari. Anything else is Unknown. It reports Mobile: yes when the string contains Mobile, Android or iPhone. It does not detect the operating system, version numbers, device models or bots. Browsers built on Chromium, such as Opera or Samsung Internet, are reported as Chrome. Chrome and Firefox on iPhone are reported as Safari.

How to use User Agent Parser

  1. Enter the input this tool requests in its workspace above.
  2. Select “Show helper” and check the result before copying or downloading it.

Worked example

Input: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0. Output: the same string on the first line, then Browser: Edge and Mobile: no. Edge is chosen because the Edg/ check runs before the Chrome check.

Tips for a better result

  • Copy the full string from the log without line breaks. A cut-off string may miss the token that identifies the browser.
  • iPads on recent iPadOS usually send a desktop Mac string, so they show Mobile: no even though the device is a tablet.
  • For analytics-grade results, such as OS versions and device models, use a maintained parsing library instead of these simple checks.

Frequently asked questions

Why is Opera shown as Chrome?

Opera, Brave, Vivaldi and Samsung Internet include Chrome/ in their strings, and this parser has no separate rule for them. Only Edge is checked before Chrome, so other Chromium browsers are labeled Chrome.

Can I trust a user-agent string?

Not fully. Browsers can freeze or reduce parts of it, extensions and privacy tools can change it, and bots often fake it. Treat it as a hint, not proof of the real device.

Is my user agent sent anywhere?

No. The tool reads navigator.userAgent to pre-fill the box, and all matching happens on the page. Nothing you paste is uploaded.

What to check

A formatted or parsed result is not proof that code is secure, correct or production-ready. Never paste production secrets.

Read the Privacy Policy for information about local processing, connected services and advertising.