Skip to content

User Agent Parser

Parse and detect your browser name, version, operating system, device type, and rendering engine.

User Agent Parser tool

Loading...

Example

Input: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Safari/605.1.15

Result: You are using Safari 17.1 on macOS 10.15.7 (Desktop). The browser uses the WebKit rendering engine (version 605.1.15).

Safari reports its own version in the Version/ token, the OS from the Mac OS X 10_15_7 part, and the engine from AppleWebKit/605.1.15.

How the Sample User Agents Parse

SampleBrowserOSDeviceEngine
Chrome on WindowsChrome 120.0.0.0Windows 10/11DesktopBlink
Safari on iPhoneSafari 17.0iOS 17.0MobileWebKit
Firefox on LinuxFirefox 120.0LinuxDesktopGecko
Edge on macOSMicrosoft Edge 120.0.0.0macOS 10.15.7DesktopBlink
GooglebotUnknownUnknownBot/CrawlerUnknown

Output of this parser for the five sample buttons in the tool.

  1. Your own user agent string loads and is parsed automatically.
  2. To check another one, paste it into the input field.
  3. Review the browser name and version, operating system and device type.
  4. Check the rendering engine and the one-sentence summary.
  5. Copy the string with the "Copy UA" button, or load a sample such as Googlebot or Safari on iPhone.

Reading a User Agent String

A user agent string is the line of text your browser sends with every request to say which browser, operating system and device it runs on. This parser reads that string and shows the browser, OS, device type and rendering engine, with versions. It also writes a one-line summary.

The strings look odd because of history. Almost every browser starts with Mozilla/5.0, and Chrome also calls itself Safari and says like Gecko. Browsers added those words so old sites that checked for one browser would still serve them. The parser works through the tokens in a set order. It checks Edge, Opera, Samsung Internet and other Chrome-based browsers before Chrome, and Chrome before Safari, because their strings also mention Chrome or Safari.

Some details are vague on purpose. Windows 10 and 11 both send Windows NT 10.0, so the tool reports 10/11. Chrome and Safari also freeze parts of the string to make tracking harder. A Mac is reported as macOS 10.15.7 no matter which version it runs. Device type is a best guess from words like Mobile, iPad or Tablet, so a phone set to request desktop sites looks like a desktop.

Your own string loads automatically. You can paste any other one, for example from a server log or a bug report. Or load a sample: Chrome on Windows, Safari on iPhone, Firefox on Linux, Edge on macOS or Googlebot. Parsing happens in your browser. For screen size and pixel ratio, which the user agent does not include, use the Screen Resolution Detector.

Sources

Frequently Asked Questions

In the 1990s, many sites sent their best pages only to Netscape, whose code name was Mozilla. Other browsers began to claim Mozilla too so they would get the same pages. The habit stuck, and today nearly every browser, and many bots, begin with Mozilla/5.0. It tells you almost nothing, so parsers skip it.
Windows 11 sends the same token as Windows 10, Windows NT 10.0, so no parser can tell them apart from the string alone. Sites that need the real version can ask for it through User-Agent Client Hints in Chrome and Edge. The same limit applies to macOS, which browsers report as 10.15.7.
Yes, easily. Browser developer tools, extensions and scripts can send any string they like, and many scrapers pretend to be Chrome or Googlebot. So never use the user agent for security decisions. To confirm a visitor really is Googlebot, Google suggests a reverse DNS lookup on the IP address, then a forward lookup to check it matches.
Client Hints are a newer way for Chrome-based browsers to share browser details. The browser sends a short, low-detail set of headers by default, such as the brand and major version. A site must ask to receive more, like the full OS version or device model. Firefox and Safari do not support them, so the user agent string is still the common baseline.

Related Tools

IP Address Info

Detect your public IP address and view geolocation data, ISP details, and network information.

Security and Encryption

Screen Resolution Detector

Detect your screen resolution, viewport size, pixel ratio, color depth, and display information.

Security and Encryption

SSL Certificate Checker URL Parser

Check any website SSL/TLS certificate: validity, days until expiry, issuer, SANs, TLS version, and fingerprints.

Security and Encryption

URL Encode and Decode

Encode special characters for URLs or decode percent-encoded strings back to readable text.

Developer Tools

Keycode Info

Press any key to see its JavaScript keyCode, key, code, which, and location event properties.

Web and SEO Tools

MAC Address Lookup

Look up the manufacturer or vendor associated with a MAC address using the OUI prefix database.

Network Tools