GTA San Andreas is a 4.5 GB PS2 game. Yet you can run it inside a browser using an emulator that's only around 15 MB.
No virtual machine in the cloud. No video streaming. The game runs on your own hardware.
But San Andreas is arguably not even the most technically interesting example.
Need for Speed Underground runs its original Windows executable translated into WebAssembly. Counter-Strike 1.6 connects to real multiplayer servers from a browser tab. And some developers are now using AI agents to port entire game engines.
Here's how these projects actually work.
- Translating an executable without its source code
The browser port of Need for Speed Underground takes the original Speed.exe and translates its x86 instructions into WebAssembly ahead of execution.
The harder part is everything surrounding the executable. The game expects Windows, DirectX 9, audio devices and input APIs.
The port recreates these dependencies using WebGPU, Web Audio and browser input APIs.
This is called static recompilation. Unlike traditional emulation, the original CPU instructions don't need to be translated continuously while you play.
- Reconstructing source code from a binary
LEGO Island takes a fundamentally different approach.
Its community reconstructed the original 1997 executable into matching C++ source code, meaning that the reconstructed code can compile back into the original machine code.
The Windows dependencies were then replaced with portable alternatives, and Emscripten compiled the result into WebAssembly.
The same general approach enabled browser ports of GTA III and Vice City.
- Playing multiplayer without raw network sockets
Browsers cannot open arbitrary UDP sockets.
So how does Counter-Strike 1.6 connect to existing multiplayer servers?
Its browser port uses Xash3D, an open-source GoldSrc-compatible engine. Browser multiplayer requires bridging the gap between browser-supported networking protocols and the protocols older games expect.
This makes networking another engineering challenge entirely separate from rendering or game execution.
- How do several gigabytes fit into a browser?
They don't necessarily need to arrive all at once.
The PS2 version of San Andreas streams its 4.5 GB disc image as the emulator requests data.
Other ports use IndexedDB, Cache Storage or the Origin Private File System to retain downloaded assets and saved progress between sessions.
One browser build of Need for Speed Most Wanted starts streaming its disc after an initial download of approximately 10 MB.
- AI is changing the economics of porting
Some 2026 projects use AI coding agents for much of the translation work.
Mario Kart 64 was ported from its community decompilation to JavaScript and Three.js. No One Lives Forever took another approach: rebuilding the engine with AI assistance and comparing its behaviour against the original game frame by frame.
The interesting distinction is that AI accelerates implementation, but the original game remains the reference for correctness.
What actually gets played?
At INXANITY Labs, we recorded 964,208 plays during November 2026 across games built using these different approaches.
We published a comprehensive breakdown covering original repositories, porting methods, graphics APIs, memory limitations, multiplayer, game data streaming and real player behaviour.
"Full research, technical explanations and original source material" (https://www.inxanitylabs.com/articles/how-pc-games-run-in-a-browser).





