User Agent Parser

The box starts with your own browser's user agent — the exact string this page received... in fact, the string your browser offers to every site you visit. Paste any other to parse it instead.

In short: any user agent broken into browser, engine, OS and device — starting with your own, the calling card you show every website.

Anatomy of a user agent

Read the default string in the box and you can watch the whole history of the web's most durable lie. It begins 'Mozilla/5.0' — almost certainly not Mozilla — because in the 1990s sites served their good content to Mozilla browsers only, so every rival claimed to be Mozilla, and the claim fossilised. 'AppleWebKit' appears in Chrome's string because Chrome's engine descends from WebKit; 'KHTML, like Gecko' is a claim of compatibility with two more engines; and the string ends with 'Safari' in browsers that are not Safari, because sites once gated features on that token too. A modern user agent is less an identity card than a stack of compatibility costumes worn simultaneously, which is why parsing one is an exercise in ordering: the parser must ask about Edge before Chrome (every Edge string contains 'Chrome'), about Samsung Internet before Chrome, about the iOS variants (CriOS, FxiOS) before Safari, because the true token is always hiding inside a crowd of inherited ones.

How to use a parse well

Three jobs justify this tool's existence. Debugging: a user reports your site broken 'on my phone', and their UA — pasted from a support email or pulled from your logs — tells you it is Samsung Internet on Android 13, a browser your testing forgot, and the mystery halves. Log analysis: a traffic spike resolves, on parsing a sample of its strings, into a botnet wearing last year's Chrome on Windows — or into genuine humans on current Safari, and the two spikes demand opposite responses. And development: knowing that your real audience still carries a measurable slice of Firefox/Gecko or iOS 15 WebKit is what turns browser support from a guess into a budget. In all three jobs the parse is a starting hypothesis to verify, not a verdict — which is exactly the spirit the string itself was never designed for, and the one its replacement, Client Hints, is trying to formalise.

What a user agent cannot tell you

The honest limits matter as much as the parse. Windows 10 and 11 send the identical 'Windows NT 10.0' — Microsoft froze the token, so any tool claiming to distinguish them from the UA alone is guessing from other signals. iPads since iPadOS 13 often send a Macintosh string and pose as desktop Safari unless they add 'Mobile'. Android model names appear in many strings and are absent from others by the manufacturer's choice. And the whole string is a claim, not a proof: any client can send any UA, bots routinely impersonate browsers, and browsers are actively reducing what the string reveals — Chrome's User-Agent Reduction freezes version details and moves them to Client Hints headers precisely because the UA became a fingerprinting goldmine. Parse it for compatibility decisions and log analysis; never for identity, security or truth.

Frequently asked questions

What is a user agent string?

A line of text your browser sends with every request, identifying — in a loose, historical sense — the browser, its rendering engine, the operating system and sometimes the device. The parser above breaks one into those parts: browser and version, engine (Blink, WebKit, Gecko), OS and version, device class (desktop, mobile, tablet, bot) and architecture hints. The box is prefilled with your own, which is worth a look: it is the calling card you present to every website, every time, and it is more detailed — and more costume-laden — than most people expect.

Why does my Chrome user agent mention Mozilla and Safari?

Compatibility archaeology. In the browser wars, websites sniffed the user agent and served advanced content only to the browsers they recognised, so each new browser claimed to be its predecessors to get the good pages: Internet Explorer claimed Mozilla, WebKit claimed KHTML and Gecko, Chrome claimed Safari, and everyone kept the earlier claims as new gates appeared. The result is that a modern string names five browsers to describe one. It is also why parsers must check tokens in a strict order — Edge's string contains 'Chrome' and 'Safari' too, and only the 'Edg' token at the end tells the truth.

Can a user agent distinguish Windows 10 from Windows 11?

No — and any tool that claims otherwise from the string alone is misleading you. Both report 'Windows NT 10.0'; Microsoft deliberately froze the token at the Windows 10 launch, partly to stop websites breaking on a new version number. Windows 11 can be detected through the User-Agent Client Hints API (Sec-CH-UA-Platform-Version 13+ indicates 11) where the browser offers it, but that is a separate header, not the classic string. This parser reports '10 / 11' for NT 10.0 and says why, rather than printing a confident guess — the correct behaviour for log analysis and debugging, where a wrong certainty costs more than an honest range.

How accurate is user agent parsing?

Good for browsers and operating systems, rough for devices, worthless for identity. Browser and OS detection from the major tokens is reliable because the vendors keep them stable; device model detection works only when the string volunteers a model (many Androids do, iPhones never do — an iPhone string says 'iPhone' and nothing more specific). Device class is heuristic: 'Mobile' in the string is a strong hint, its absence on a tablet string is a known trap, and iPads posing as Macs defeat string-only detection entirely. And since any software can send any string, treat parsed results as 'what this client claims to be' — the right basis for serving a mobile layout, the wrong basis for trusting anyone.

What is replacing the user agent?

User-Agent Client Hints: a set of structured headers (Sec-CH-UA, Sec-CH-UA-Mobile, Sec-CH-UA-Platform and friends) where the browser reveals details in layers — brand and major version freely, full versions and model only when the server asks and the browser agrees. Chrome has frozen parts of the classic string under its User-Agent Reduction programme, so a modern Chrome UA reports a fixed device token and a reduced version, with the real detail moved to the hints. The string is not disappearing, but its long career as an accidental fingerprint — one study made it part of what identified most users uniquely — is being deliberately ended, and parsers like this one are becoming tools for reading legacy logs as much as live traffic.

Related tools

Parser last verified in Node against nine real user agent strings: 24 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.