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.
| Token | What it means |
|---|---|
| Mozilla/5.0 | Legacy compatibility prefix, present on nearly all browsers. |
| Windows NT 10.0 | Windows 10 or 11 (the version is frozen for privacy). |
| Macintosh; Intel Mac OS X | A Mac running macOS. |
| X11; Linux x86_64 | A 64-bit Linux desktop. |
| iPhone; CPU iPhone OS | An iPhone running iOS. |
| Linux; Android | An Android device. |
| AppleWebKit/537.36 | The WebKit-derived engine used by Chromium browsers. |
| KHTML, like Gecko | Compatibility token kept for historical sniffing. |
| Gecko/20100101 | Firefox's rendering engine token. |
| Chrome/120.0.0.0 | Google Chrome, major version 120. |
| Edg/120.0.0.0 | Microsoft Edge, major version 120. |
| OPR/ | The Opera browser. |
| Version/17.1 Safari | Safari, with its version in the Version token. |
| Mobile Safari | A 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.