User agent parser

Paste any user agent string to break it into browser, rendering engine, operating system and device type. Your own user agent is filled in to start. Everything runs in your browser.

Anatomy of a user agent string

A modern user agent looks cryptic because it carries decades of compatibility baggage. It almost always begins with Mozilla/5.0, then lists the platform, the rendering engine, and finally the real browser and version. Once you know which token means what, the string reads cleanly. Here are the pieces you will meet most often.

TokenWhat it means
Mozilla/5.0Legacy compatibility prefix, present on nearly all browsers.
Windows NT 10.0Windows 10 or 11 (the version is frozen for privacy).
Macintosh; Intel Mac OS XA Mac running macOS.
X11; Linux x86_64A 64-bit Linux desktop.
iPhone; CPU iPhone OSAn iPhone running iOS.
Linux; AndroidAn Android device.
AppleWebKit/537.36The WebKit-derived engine used by Chromium browsers.
KHTML, like GeckoCompatibility token kept for historical sniffing.
Gecko/20100101Firefox's rendering engine token.
Chrome/120.0.0.0Google Chrome, major version 120.
Edg/120.0.0.0Microsoft Edge, major version 120.
OPR/The Opera browser.
Version/17.1 SafariSafari, with its version in the Version token.
Mobile SafariA mobile build, used by Android Chrome and iOS Safari.

Why parsing is fiddly

The hard part is that browsers impersonate each other. Chrome, Edge and Opera all include Safari and like Gecko in their strings, so a naive check for Safari matches almost everything. The reliable approach, which this parser uses, is to look for the most specific marker first (Edge before Chrome, Chrome before Safari) so you land on the true browser rather than a compatibility alias.

Frequently asked questions

Is server-side parsing more accurate?

The logic is the same; the difference is where it runs. This tool parses in your browser for privacy. For code, the free API gives you the same result to build on.

What is my own user agent?

It is prefilled above, and the what is my user agent page shows it big with a full explanation of what it reveals.