Translate the CPU
The PlayStation 2 Emotion Engine code is statically translated into C++ and compiled to WebAssembly.
A PlayStation 2 recompilation project
PS2 Web Recomp translates a game’s original CPU code into WebAssembly, then pairs it with a browser runtime. This site explains the project, its known demos, and what you need to build locally.
Bring your own legally acquired game disc image. Builds happen on your machine; this site does not host games or game files.
Gran Turismo 4 — project recording
A demonstration published by the upstream project
Under the hood
Instead of interpreting a console instruction every time it runs, static recompilation translates the game’s main CPU code ahead of time. A purpose-built runtime handles the console systems that remain.
The PlayStation 2 Emotion Engine code is statically translated into C++ and compiled to WebAssembly.
A WebAssembly runtime supplies the supporting PS2 systems and connects graphics work to WebGPU.
You provide your own game data and build the project locally, then run the result in a compatible browser.
WebAssembly is not the same as a complete, universal PS2 emulator. The project is experimental and compatibility depends on each game and its use of console systems.
Compatibility, in progress
The upstream README currently calls out these games. That is a snapshot of project testing, not a promise that every level or feature works.
GT4 / PAL
Gran Turismo 4 (PAL) is one of the project’s showcased test titles. Check the upstream notes for the current build status.
PAL
PROJECT REFERENCE
GOW II
God of War II is also listed among the project demos. Compatibility is still work in progress.
DEMO
PROJECT REFERENCE
Other games may fail because required CPU instructions, IOP behavior, graphics features, or file access are not yet implemented.
No. This site is an information guide. You need to build the project on your own machine and supply your own game data.
No. The project does not distribute game data. Use only a disc image you are legally entitled to use, and check the laws that apply where you live.
The project relies on WebGPU, so you need a browser and graphics setup that support it. The upstream README has the current build and runtime requirements.
No. This is an experimental, game-by-game effort. The upstream demos are a small set, and other games may depend on unimplemented hardware behavior.
Start with the source
The project changes quickly. Use its current README and build scripts as the source of truth for supported systems and game-specific steps.
See how to get started