Skip to the content

User Agent Parser

Paste a user agent string to see which browser, system and device it describes.

Examples:

Reading your browser’s user agent…

Share this tool:TwitterFacebookLinkedInWhatsAppEmail

Why every browser claims to be Mozilla

In the mid-1990s Netscape's browser identified itself as "Mozilla", and websites started sending their newest pages only to visitors whose user agent began with that word. Internet Explorer could show those pages too, so it announced itself as Mozilla as well, with "compatible; MSIE" in brackets behind it. Every browser since has done the same.

The trick was repeated twice. Safari's engine added "like Gecko" to be served what Firefox got. Chrome, which started out on Safari's WebKit engine, added "Safari" to be served what Safari got. That is how a current Chrome ends up naming Mozilla, AppleWebKit, KHTML, Gecko and Safari while being none of them.

Reading one, piece by piece

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Safari/537.36

PartWhat it tells you
Mozilla/5.0Nothing. Everybody sends it.
Windows NT 10.0; Win64; x64Windows 10 or 11, 64-bit. Windows 11 never got a number of its own here.
AppleWebKit/537.36 (KHTML, like Gecko)A leftover. Chrome's engine, Blink, split off from WebKit in 2013 and this number has not moved since.
Chrome/158.0.0.0The actual browser and its major version.
Safari/537.36Another leftover, for sites that look for Safari.

Order matters. Edge adds Edg/ and Opera adds OPR/ after everything Chrome says, so the name to trust is usually the last one.

The string tells less every year

A precise string helps to track people, so browser makers have been taking detail out. More and more of it is a fixed value:

  • Chrome reports only its major version, followed by 0.0.0. Since 2023 the platform is fixed too: Windows NT 10.0; Win64; x64 on any Windows, and Android 10; K on any Android phone, with the K standing in for the model.
  • macOS is reported as 10.15.7 by Chrome and Safari and as 10.15 by Firefox, whatever version is installed.
  • iPhones and iPads report system version 18.6 from Safari 26 onwards.
  • Safari on an iPad sends the string of a Mac by default, so the two cannot be told apart.

The parser points these cases out instead of repeating a number that means nothing.

Client hints

Chrome's replacement for the lost detail is User-Agent Client Hints: separate, structured values in place of one long string. Every request carries the brand with its major version, the platform, and whether the device is mobile. The full version, the real system version and the device model go only to a site that asks for them. That is why the real version of Windows or Android can show up in the client hints above while the string hides it.

The list of brands contains a nonsense entry along the lines of "Not A Brand". It is there on purpose, to keep sites from depending on the exact list. Client hints exist in Chrome, Edge and other browsers built on Chromium. Firefox and Safari do not have them.

The string proves nothing

A user agent is whatever the sender types. Scrapers call themselves Chrome, and anyone can call themselves Googlebot. The parser knows the names the large crawlers publish, but it cannot tell a real one from an imitation.

That takes the visitor's IP address. Google documents the check for its crawler: the reverse DNS name of the address should end in googlebot.com or google.com, and that name should point back to the same address. The DNS lookup tool can do both lookups.

For the same reason, code should not decide what a browser can do from its user agent. Testing for the feature itself, with "share" in navigator or CSS @supports, keeps working when the string changes.