On January 7, 2003, Steve Jobs announced Safari at Macworld in San Francisco. Apple called it the fastest browser ever made for the Mac, and the last bullet of the press release said what was underneath: a rendering engine based on KHTML, from KDE's Konqueror.
The obvious choice would have been Gecko, the engine Netscape had opened up and Mozilla was building in public. Apple took the small one from a desktop project instead. Don Melton, who led the Safari team, told the KDE developers it came down to "the size of your code and ease of development within that code."
Twenty-three years later, two of the three engines that run the web come from that code.
Engine, not browser
A browser is the window around a page: tabs, the address bar, bookmarks,
sync, the settings screen. The engine is what turns HTML, CSS and
JavaScript into pixels and behaviour — the part that decides whether
:has() matches or a grid lines up. Strictly speaking it's two engines,
one that lays out the page and one that runs its scripts.
Gecko comes with SpiderMonkey, WebKit with JavaScriptCore and Blink with V8. Almost everything else people call a browser is a shell around one of those pairs.
Browsers and the engines under them
Chrome, Edge, Opera, Brave and Vivaldi differ in what they block, what they sync and where they put the tabs. They barely differ in how they read a stylesheet. Testing a page in all five tests one engine five times, give or take a version. Testing it in Chrome, Safari and Firefox tests three.
Netscape's heir
SpiderMonkey is where JavaScript started. Brendan Eich wrote the first version at Netscape in 1995, when the language was still called Mocha.
On March 31, 1998, Netscape published the source code of its browser and the Mozilla project began. The old layout code didn't survive the move. A new engine, developed internally as NGLayout, took its place and became Gecko. Firefox 1.0 shipped on November 9, 2004.
Gecko is the odd one out twice. It's the only one of the three that doesn't descend from KHTML, and the only one not made by a company with an operating system of its own. Apple ships WebKit with macOS and iOS, Google ships Blink with Android and ChromeOS. Mozilla has a browser and no platform underneath it. In 2025, its CFO testified that Google, which pays to be the default search engine in Firefox, had accounted for about 85% of Mozilla's revenue the year before.
One fork, then another
KHTML grew out of an earlier HTML widget and shipped as the engine of Konqueror with KDE 2.0 in 2000. Apple forked both of its halves: KHTML for layout became WebCore and KJS for JavaScript became JavaScriptCore. Together they're WebKit, which Apple opened up as a project of its own in 2005.
When Google launched Chrome in September 2008, it rendered pages with WebKit and brought its own JavaScript engine, V8. For the next five years, Safari and Chrome shared an engine.
On February 13, 2013, Opera announced it would drop Presto, the engine it had built itself, and move to WebKit. Seven weeks later, on April 3, Google forked WebKit into Blink. Chrome's multi-process architecture had pulled it too far from the rest of the project. Opera said the same day it would follow.
Who forked whom
The ones that didn't make it
Trident ran Internet Explorer from version 4 in 1997. With Windows 10 in 2015, Microsoft forked it into EdgeHTML, cut the legacy code and shipped a new browser on top of it. Three years in, Microsoft gave up on its own engine. The new Edge, built on Chromium, reached general availability on January 15, 2020. The old one was renamed Microsoft Edge Legacy.
Every engine that dropped out made the web easier to build for. One fewer engine is one fewer column in the compatibility table and one fewer place a bug can hide. It also made the list shorter.
Like Gecko
All of this history still travels with every request Chrome sends from a Mac:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Safari/537.36Read left to right, it's a list of browsers Chrome isn't. Mozilla/5.0 is
Netscape — Mozilla was its codename, sites in the nineties sent the good
pages to browsers that claimed it and every browser since has kept the
claim. AppleWebKit and Safari are there because sites later learned to
look for Safari. (KHTML, like Gecko) is the same trick in one phrase: it
puts the word Gecko in the string for sites that checked for it and tells a
human reader where the engine actually came from.
The rest is frozen. Chrome capped the macOS version at 10_15_7 in Chrome
90 after sites broke when it read 11. It says Intel on Apple Silicon too.
Since
user agent reduction, even
the version number is just the major one followed by zeros. The string
stopped describing the browser long ago. What it describes now is what
sites used to look for.
Every iPhone browser is WebKit
On iOS, the App Store guidelines settle the question in one sentence: apps that browse the web "must use the appropriate WebKit framework and WebKit JavaScript." Chrome, Firefox and Edge on an iPhone are WebKit with a different interface. A rendering bug in Safari on iOS can show up in all of them.
The rule has two exceptions now. Since iOS 17.4 in March 2024, the Digital Markets Act lets browsers in the EU bring their own engine. Japan's Mobile Software Competition Act did the same from December 2025, with iOS 26.2.
On paper the rule is gone in both places. In practice, Mozilla said in November 2026 that no browser with its own engine has shipped on iOS yet. A browser with a different engine has to ship as a separate app, available only in those regions, so Firefox would have to ask its users to move to a second Firefox. It also can't share cookies or any other state with other apps without the user's permission, not even apps from the same developer.
The cost of one engine
Fewer engines is good news for anyone who writes CSS. The three that are left work on it together: since 2022, Apple, Google, Microsoft, Mozilla, Igalia and Bocoup have run Interop, a yearly list of features they all agree to fix and measure. Baseline turns the result into a label on MDN: newly available once a feature works in all the major browsers, widely available 30 months later.
The cost is less visible. A web standard is supposed to have more than one independent implementation, because a spec written against a single codebase ends up describing that codebase. When one engine has most of the users, what it ships becomes the standard in practice and what it doesn't ship doesn't matter. Brave can change what a browser blocks. It can't change how the platform behaves without patching Blink and carrying the patch through every Chromium release.
The third engine is the one that keeps the other two honest, and it's paid for by the company behind one of them.
Three, for now
Two projects are trying to build the fourth. Servo started at Mozilla in 2012 as a test bed for Rust, moved to the Linux Foundation in 2020 after Mozilla's layoffs and has been under active development again since 2023.
Ladybird started as the browser of SerenityOS, a hobby operating system, and its engine is written from scratch — no code from Blink, WebKit or Gecko. Its first alpha came out on November 23, 2026, for macOS and Linux. Some sites don't work yet and it still crashes. It ships on a rolling channel with automatic updates.
In 2003, the engine nobody expected came out of a desktop environment. The next one is coming out of a hobby operating system.
Three is where the web ended up, not where it has to stay.
