A support ticket says "your site is broken on my browser", and the only technical detail attached is a long string of text the user copied from somewhere. An analytics export has the same problem at scale: thousands of rows, each one a user agent string, none of them readable at a glance. The string does contain the answer, but it also contains several wrong answers, because nearly every browser's string names browsers it is not.
This guide shows how to read one properly with the free User Agent Parser on Ovatly, which breaks the string into browser and version, engine, operating system and device type. It also covers why the raw text misleads, and the honest limit of the exercise: a user agent is self-reported, so the result is an indication, not proof.
Contents
- Quick answer
- Why the string names browsers that are not there
- What the parser reads out of a string
- How to identify a browser and OS, step by step
- Worked example: a desktop Chrome string
- The Windows 10 / 11 problem, and other frozen details
- Limitations
- Common mistakes
- FAQs
- Conclusion
Quick answer
Paste the user agent string into the User Agent Parser and read the breakdown: browser and version, engine, operating system and device type. You can also press the button on the page to load your own browser's string. Do not identify the browser by spotting a familiar name in the raw text, because a Chrome string also contains the words Mozilla and Safari. The parser checks the tokens in the right order so those historical names do not fool it.
Why the string names browsers that are not there
User agent strings grew by imitation. In the early web, servers sent their best content to browsers they recognised, so new browsers started claiming to be Mozilla, the codename of the dominant browser of the time, to avoid being locked out. The habit never died. Later, browsers added WebKit heritage tokens for the same reason. The result is that a modern string is a stack of compatibility claims with the real browser's name somewhere in the middle.
That is why reading a string by eye fails. A string that says Safari in it is usually Chrome. A string that says Mozilla is almost never the historical Mozilla browser. The names are real text in the string, but they are historical, not descriptive.
The fix is order. A parser that knows the history checks the tokens in a deliberate sequence: Edge and Opera are detected before Chrome, because both are built on Chromium and their strings also contain the Chrome token, and Chrome is detected before Safari, because Chrome's string carries a Safari token while a genuine Safari string does not carry a Chrome one. Get the order wrong and every Edge user in your analytics becomes a Chrome user.
What the parser reads out of a string
The parser breaks the string into four reported fields. The browser and version come from the browser's own token once the impostor tokens have been ruled out by the checking order. The engine is the rendering engine behind the browser, which matters when you are reproducing a layout bug, because two browsers with different names can share an engine and render a page the same way. The operating system comes from the platform text in the string, and the device type separates desktop from mobile.
The parsing uses the page's own token rules, not a third-party library. Those rules cover Edge, Opera, Samsung Internet, Chrome, Firefox, Safari, Internet Explorer and major bots. Anything the rules do not match, including a browser released after the rules were written, shows as Unknown rather than being guessed into a wrong match. An honest Unknown is more useful than a confident wrong answer, because it tells you to ask a follow-up question instead of chasing the wrong bug.
How to identify a browser and OS, step by step
- Copy the full user agent string from the support ticket, log line or analytics row. Take the whole string, not a trimmed version, because the identifying tokens can sit anywhere in it.
- Open the User Agent Parser and paste the string in. If you are checking your own browser instead, press the button on the page to load your own browser's string.
- Read the breakdown: browser and version, engine, operating system and device type.
- Note anything reported as Unknown instead of filling the gap yourself. An Unknown field is the parser telling you the string does not say, which is itself a finding.
- Keep the honesty note in view while you use the result: a user agent is a claim the client makes, and it can be spoofed.
Worked example: a desktop Chrome string
Here is the example string from the tool's own documentation:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Read by eye, it looks like Mozilla, or AppleWebKit, or Safari. The parser reports what it actually is: browser Chrome 120.0.0.0, engine Blink, operating system Windows 10 / 11, device Desktop. The Chrome token is the one that counts, the Windows NT 10.0 token gives the operating system, and the absence of a Mobile token gives the device type.
The same parser reads phone strings differently. An iPhone string carrying Version/17.2 and Mobile in it parses as Safari on iOS 17.2, device Mobile. On iOS the meaningful version token is the Version/ one, another reason a parser beats skimming the text for the biggest number.
The Windows 10 / 11 problem, and other frozen details
Some details a string simply cannot give you. Windows NT 10.0 is reported as "10 / 11" because the user agent alone cannot distinguish Windows 10 from Windows 11; browsers froze that token deliberately. If your support process genuinely needs to separate the two, the user agent is the wrong source and you will have to ask the user.
Phone models are similarly partial. Sometimes the model token is in the string, mostly on Android, so an Android string may name the handset. iPhones and iPads only identify their family, never the exact model, and newer Android versions reduce this detail too. Modern browsers deliberately trim what the string reveals, so expect strings to say less over time, not more.
Limitations
The deepest limitation is built into what a user agent is. User agents are self-reported and trivially faked, and modern browsers reduce their detail on purpose. Treat results as a good indication, never as proof. For a support ticket or an analytics segment, an indication is exactly what you need. For anything adversarial, a parsed user agent should never be the only evidence.
The parser's coverage is also finite by design. Its token rules name the browsers and major bots listed above, and anything outside those rules is Unknown. A brand new browser, or a heavily customised client, may report fields as Unknown until the rules catch up.
Common mistakes
- Identifying the browser by the first familiar name. The first names in the string are the historical ones. Mozilla and Safari tokens appear in strings from browsers that are neither.
- Reporting Windows 10 when the string cannot say that. Windows NT 10.0 covers both Windows 10 and Windows 11. Writing "Windows 10" in a bug report adds a fact the string never contained.
- Treating the parsed result as proof of the visitor's setup. The string is a claim. A mismatch between the claim and the reported problem is possible, especially with spoofed or privacy-reduced strings.
- Guessing a model the string does not name. An iPhone string identifies the family only. Recording a specific model from it is inventing data.
FAQs
Why does a Chrome string contain Safari and Mozilla? History. Every major browser claims Mozilla compatibility and includes WebKit heritage tokens so old server sniffing code keeps working. The parser checks tokens in the right order: Edge and Opera are detected before Chrome, and Chrome before Safari.
Why does the parser report Windows 10 / 11 instead of one version? The string carries the token Windows NT 10.0 for both systems, and browsers froze that token deliberately, so the user agent alone cannot distinguish Windows 10 from Windows 11.
Can the parser tell me the exact phone model? Sometimes the model token is in the string, mostly on Android. iPhones and iPads only identify their family, and newer Android versions reduce this detail too.
What does the parser show for a browser it does not recognise? Unknown. Unknown or future browsers show as Unknown rather than being guessed into a wrong match.
Is my user agent string sent anywhere when I parse it? No. Loading your browser's string and parsing it both happen locally on the page, so nothing is uploaded.
Conclusion
A user agent string is a small historical document: a stack of compatibility claims with the real browser identified by one token among several impostors. Paste it into the parser, read the browser, version, engine, operating system and device type, and respect the two honest answers it sometimes gives: Unknown, and Windows 10 / 11. If your question is not which browser sent a string but whether the sender was automated at all, read the companion guide on how to tell if a visitor is a bot from its user agent. More tools and guides like this one live in the developer tools guides archive.