Opens a third-party site. Skip anything that asks you to install a launcher or extension.
How Half-Life in browser works
Half-Life in browser runs through a web build of the engine hosted on GitHub Pages by Pixelsuft. Half-Life used Valve's GoldSrc engine, itself derived from Quake, and open-source reimplementations of GoldSrc can now be compiled to WebAssembly. The port provides that engine; you load the game data from your own copy of Half-Life, and the campaign runs locally in the tab.
Nothing is uploaded. The browser reads your files into local storage, which is also where your saves live.
What you need to play Half-Life in browser
The valve folder from an installed copy of Half-Life. If you own it on Steam, it is inside the Half-Life install directory.
Chrome or Edge on desktop. They handle large local file loads better than Safari.
Keyboard and mouse. The port uses pointer lock for aiming, so click into the game first.
A few minutes for the first load while the browser stores the data.
About Half-Life
Valve released Half-Life in 1998. Its story of Gordon Freeman, a physicist at the Black Mesa Research Facility caught in a disaster that opens a rift to the alien world Xen, was told entirely in first person without cutscenes. It changed how shooters handled narrative and spawned mods like Counter-Strike, Team Fortress Classic and Day of Defeat.
Half-Life is regularly discounted on Steam, and Valve released a 25th anniversary update in 2023. Owning it is the simple, legitimate way to get the files this port needs.
Half-Life in browser vs WebXash
The Radiant Optimizer list includes two GoldSrc-style engines. This Half-Life port focuses on the single-player campaign. WebXash runs the open-source Xash3D engine and can also run Counter-Strike 1.6. If one port fails to start on your machine, try the other with the same files. See CS 1.6 in browser for WebXash setup.
Troubleshooting
Black screen after loading: the valve folder is incomplete or the wrong one was selected.
No sound: click into the page once; browsers block audio until you interact.
Mouse not turning the camera: click the game again to re-enter pointer lock.
Saves gone: private windows and clearing site data both delete browser storage.
Black Mesa Inbound: the famous tram ride that introduces the facility.
Unforeseen Consequences: the resonance cascade and everything going wrong.
Blast Pit: a puzzle chapter built around a tentacled monster that hunts by sound.
Surface Tension: the open fights against military forces on the surface.
Xen: the alien border world where the story ends.
Controls in Half-Life in browser
The port keeps the original layout: WASD to move, Space to jump, Ctrl to crouch, E to use buttons and talk to scientists, and the mouse to aim and fire. Crouch-jumping, pressing jump and then crouch in quick succession, is needed to clear some gaps. Quick save and quick load work, but the saves live in browser storage.
Half-Life in browser vs Black Mesa
Black Mesa is a full fan remake of Half-Life on the Source engine, released commercially in 2020. It looks far more modern but needs a regular PC install. Half-Life in browser runs the original 1998 game exactly as it was, which is what many players want for nostalgia, and it works on machines where installing software is not possible.
Half-Life expansions
Gearbox Software made two official expansions: Opposing Force in 1999, which retells the incident from the view of a marine sent to cover it up, and Blue Shift in 2001, which follows security guard Barney Calhoun. Engine ports can sometimes run them when their folders are added next to the base game data, but support varies by port, so start with the main campaign.
Tips before you play
You need the game folder from an installed copy of Half-Life.
Chrome and Edge handle large local file loads better than Safari.
FAQ
Do I need to own Half-Life?
Yes. The port only provides the engine.
Is Half-Life in browser free?
The port is free, but the game data must come from a copy you own.
Can I play Half-Life mods in the browser?
Engine ports can sometimes load mods placed alongside the game data, but support varies. Start with the base game.
Does Half-Life 2 run in a browser?
Not from this list. Half-Life 2 uses the much heavier Source engine.