back home

blog

why every browser claims to be Mozilla

Open your devtools right now and look at navigator.userAgent. If you're on Chrome, it starts with Mozilla/5.0. If you're on Safari, it starts with Mozilla/5.0. Edge? Mozilla/5.0. Brave, Arc, Vivaldi, Opera — all Mozilla/5.0. Even the first version of Internet Explorer that mattered, IE 4, called itself Mozilla.

firefox is the only browser whose UA string is actually honest about this.

This is a thirty-year-long game of telephone, and it's the purest example of legacy cruft on the web I can think of. The story goes like this.

1993: Mosaic ships

NCSA Mosaic is one of the first graphical browsers, and it sends a UA string like NCSA_Mosaic/2.0 (Windows 3.1). The servers note this down. Some of them start branching on it.

1994: Netscape ships

Netscape Navigator's internal codename is "Mozilla" — short for "Mosaic killer." They want servers that already do UA-sniffing to recognize them as a newer, more capable browser. So Netscape ships with:

Mozilla/1.0 (Win3.1)
the slash-version pattern itself came from mosaic. that part is also a copy.

1995: Internet Explorer ships

Microsoft writes IE from scratch, but by now half the web is sending Netscape-only HTML based on UA sniffing. If IE says "Microsoft Internet Explorer" in its UA string, it gets served the no-frames, no-JavaScript fallback. So IE lies:

Mozilla/2.0 (compatible; MSIE 3.0; Windows 95)

Mozilla first, then a parenthetical confession. Every server's if-Mozilla branch now matches.

1998 onward: everyone does it

KHTML (the engine behind Konqueror, later WebKit) sniffs as Mozilla. Safari sniffs as Mozilla and as AppleWebKit and as KHTML, just to be safe. Chrome sniffs as Mozilla and as AppleWebKit and as KHTML and as Safari. Modern Edge sniffs as Mozilla and as AppleWebKit and as Chrome and as Safari.

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0 Safari/537.36 Edg/120.0
this string claims to be five different browsers. it is one.

Why we can't fix it

Server-side UA sniffing never went away. Any browser that drops "Mozilla/5.0" from its UA breaks an unknowable amount of enterprise software, ad networks, and analytics tooling. So the string stays, frozen, as a thirty-year-old fossil.

The replacement, User-Agent Client Hints, has been in progress for years. It splits the UA into structured headers (brand, version, platform) that you can request explicitly. Adoption is slow because the old string still works fine for the sites that care.

firefox supports client hints but doesn't send any by default — on purpose. anti-fingerprinting.

So we're stuck with Mozilla/5.0 forever. It's a cargo cult. It's also the most honest piece of the entire web platform: every browser admits, every time it makes a request, that it was designed to be mistaken for the one that came before.