User Agent Parser

Break a User-Agent string into browser, engine, platform and version, and see why the string is such a mess.

117Characters
NoMobile

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the User Agent Parser does

Use this user agent parser to break a User-Agent string into browser, engine, platform and version, and see why the string is such a mess. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for reading a User-Agent from a server log. There are more free online tools on FreeToolStation.org.

How to use it

  1. Paste a User-Agent string from a log or a browser.
  2. Read the browser, engine and platform it claims to be.
  3. Note which legacy tokens are present and why.

How it works

The User-Agent string is an archaeological record of browsers misrepresenting themselves to get served the better version of a page. Every browser still begins with Mozilla/5.0 because sites in the 1990s checked for it. Chrome includes both AppleWebKit and Safari because sites had started checking for those. Edge includes Chrome for the same reason. None of these claims are true and all of them are load-bearing.

Windows NT 10.0 covers both Windows 10 and Windows 11 — Microsoft did not change the token, so the User-Agent cannot distinguish them. iPadOS reports itself as a Mac in desktop mode. Chrome has frozen parts of its string and reduced the version precision deliberately.

The practical conclusion is that User-Agent parsing is unreliable for anything that matters. For capabilities, test for the feature rather than guessing from the browser. For layout, use media queries rather than device detection. Where you genuinely need platform hints, the User-Agent Client Hints API provides them in a structured, permissioned form instead.

Parsing is still useful for one thing: reading your own analytics and server logs, where an approximate breakdown is all you need.

When to use it

  • Reading a User-Agent from a server log.
  • Identifying which browser reported an error.
  • Checking what a crawler identifies itself as.
  • Understanding why User-Agent strings look the way they do.

Common mistakes to avoid

  • Branching application behaviour on parsed User-Agent instead of feature detection.
  • Trying to distinguish Windows 10 from Windows 11, which the string cannot do.
  • Trusting the string at all — it is trivially spoofed and routinely is.

Frequently asked questions

Why does every browser say Mozilla/5.0?

Because sites in the 1990s served a degraded page to anything that did not claim to be Netscape. Every browser since has kept the token to avoid being downgraded, and now nobody can remove it.

Can I tell Windows 10 from Windows 11?

Not from the User-Agent. Both report Windows NT 10.0 — Microsoft did not change the token. User-Agent Client Hints can distinguish them.

Should I use User-Agent detection?

Rarely. Test for the feature you need instead. The string is unreliable, trivially spoofed, and increasingly frozen by browser vendors on purpose.

Related tools

See all developer tools →