Guide

What Are WASM Games? A Plain Explanation of WebAssembly Games Online

A WASM game is a game, an engine or an emulator that was compiled to WebAssembly so your browser can run it without a plugin or an installer. The code is usually the same C or C++ that shipped on PC or console, just built for a different target. That is why Quake III, Counter-Strike 1.6 and a Doom launcher can all run inside one tab.

WebAssembly in one paragraph

WebAssembly, or WASM, is a compact binary format that browsers execute inside the same sandbox they use for JavaScript. All the major browsers added support in 2017, and it became a W3C standard in December 2019. A WASM module is not source code. It is a list of low-level instructions that the browser translates to your processor's own instructions before running them.

Because the instructions are typed and already compiled, the browser skips most of the guesswork JavaScript needs. Heavy loops like physics, software rendering and audio mixing run far closer to native speed than they would as hand-written script. Nobody expects a modern AAA title out of it, but a game from the late 1990s or early 2000s fits comfortably.

How a C++ game ends up in a tab

The usual route is a toolchain called Emscripten. It takes C or C++ source, compiles it to a .wasm file, and generates a small JavaScript layer that connects the game to browser features. OpenGL calls become WebGL calls, SDL audio becomes Web Audio, and the keyboard and mouse arrive as browser events.

The game itself barely knows the difference. That is how id Software's engines travelled so well: they were released under open source licences, so ports could be built straight from the original source. Several entries on this site, including Quake III Arena (q3js), Quake II and QuakeWorld, are built that way.

Games that were never open source take a different road, covered below. In every case the result is the same thing for you: a page that loads a few megabytes of code and starts running.

Three kinds of WASM game you will run into

Not every title in a WASM directory is the same sort of project. Knowing which kind you have opened tells you what to expect from loading time, saves and controls.

  • Engine ports. Open source or source-available engines compiled directly, such as the Quake family. These start fast and usually run well on modest hardware.
  • Decompilation and reimplementation projects. Volunteers reverse engineer a finished game and write fresh source that behaves the same way. The re3 project for GTA III is the best known example. The result is compiled to WASM like any other code.
  • Emulators. A whole console or old PC is compiled to WebAssembly, and the game runs inside it. Most of the PlayStation 2, PSP and GameCube titles in the list work this way. The emulator is the WASM part, and the game is data it reads.

Why some ports ask for your own game files

A decompilation recreates the program, not the art, music and levels. Those belong to the publisher, and the port cannot legally ship them. So the page asks you to supply files from a copy you own. Zelda II (z2rs) and the WadCMD Doom launcher in our list are marked this way.

The browser never uploads your files anywhere. They are read locally, placed in a virtual file system in memory, and often cached in IndexedDB so you do not have to select them every visit.

Some ports avoid the problem by using content that is free to distribute. The Diablo entry runs the shareware demo, and the Half-Life and Counter-Strike 1.6 WebXash entry is listed as a free demo with no game files needed. If a page does not say what it needs, read it before you spend time on it.

What WebAssembly cannot do

A WASM module has no direct access to your disk, graphics card or network. Everything goes through browser APIs, and the browser decides what is allowed. That is good for safety, and it is also where most limits come from.

Memory is capped. 32-bit WebAssembly can address at most 4 GB, and in practice browsers give less. Threads need special page headers, so some ports run single-threaded. WebGL is also an older graphics interface than the DirectX 11 or Vulkan a modern engine expects, so anything that needs those has to be rewritten.

Multiplayer is limited too. A page cannot open a raw UDP socket, so old network games reach servers through WebSockets or WebRTC, which adds a little latency. Games like Quake III Arena and Counter-Strike 1.6 work online because someone built that bridge.

WASM versus the old Flash and Java plugins

Browser plugins ran outside the sandbox and needed installing. WebAssembly runs inside it, needs nothing installed and works on any device with a current browser. That includes Chromebooks, which is a big part of why these ports have an audience.

The tradeoff is that you depend on the host. If the site that serves the port goes offline, so does the game. This directory links to those hosts. We do not run the games ourselves.

How to tell a good port from a rough one

Check three things in the first minute. Does the page load without a login wall or a pile of popups? Does the game respond to the mouse with pointer lock, so the cursor does not slide off the canvas? Does it say where saves are stored?

A good port also tells you what it is: engine name, original platform and any known problems. The pages on this site list the host and the type of port for each game, so you can compare before clicking out.

FAQ

What does WASM stand for?

WASM is short for WebAssembly. It is a binary instruction format that every current browser can run, mostly used for code that was originally written in C, C++ or Rust.

Are WASM games the same as HTML5 games?

Not exactly. HTML5 games are usually written in JavaScript from the start. WASM games are compiled from another language and run next to JavaScript, which is why older 3D titles are possible at all.

Is it safe to run a WASM game?

The code runs in the browser sandbox, so it cannot read your files or install anything by itself. The usual caution about the host site and its ads still applies.

Do I need to download anything to play?

No installer is needed. Some ports download a game data file on first launch, and a few ask you to pick your own files from a copy you own.

Why are there so many Quake and Counter-Strike ports?

Those engines are open source or have well-documented reimplementations, so building a browser version is much easier than for a closed engine.

Games from this guide