Yes, you can play the original Half-Life in a browser through fan-made ports and emulation projects, though it is not an official Valve release. These browser versions let you run the full single-player campaign or tech demos directly in a web page, with no install, and they work on most modern computers.
Formula
Molarity (c) is the amount of solute in moles divided by the volume of solution in liters. The formula is:
c = m / (M × V)
where:
- m = mass of solute in grams (g)
- M = molar mass of the solute in grams per mole (g/mol)
- V = final solution volume in liters (L), converted from mL by dividing by 1000
- c = molarity in moles per liter (mol/L)
The second output, millimolar concentration, is simply the molarity multiplied by 1000: cmM = c × 1000.
Worked Example
Using the default values from the calculator: dissolve 2.922 g of sodium chloride (NaCl, molar mass 58.44 g/mol) in enough water to make 250 mL of solution.
Step 1: Convert volume to liters.
V = 250 mL ÷ 1000 = 0.250 L
Step 2: Calculate moles of solute.
moles = 2.922 g ÷ 58.44 g/mol = 0.05000 mol
Step 3: Divide by volume.
c = 0.05000 mol ÷ 0.250 L = 0.2000 mol/L
Step 4: Convert to millimolar.
cmM = 0.2000 × 1000 = 200.0 mM
The calculator shows 0.2 mol/L and 200 mM, matching the rounded result.
Assumptions
- The solute is pure and fully dissolves without volume change.
- The final volume is measured after dissolution, not the volume of solvent added.
- Temperature and pressure do not affect molarity (they affect concentration only through volume changes).
- The molar mass is the formula weight of the anhydrous compound unless otherwise stated.
How to Play a Half-Life Browser Game
Several projects have recreated or ported Half-Life to run in a web browser. The most well-known is Half-Life: Web Edition, a fan-made port that runs the original GoldSrc engine using WebAssembly and WebGL. It includes the full single-player campaign, the original AI, and most of the game’s physics and scripted sequences. To play, you visit the project’s website, wait for the game files to load (they are streamed from the server), and then control Gordon Freeman with the same keyboard and mouse controls as the desktop version.
Another option is Xash3D, an open-source reimplementation of the GoldSrc engine. While Xash3D itself is a native application, some web builds have been made that compile it to WebAssembly. These are less polished and often require you to provide your own game files, since they do not include Valve’s copyrighted assets.
There are also browser-based tech demos and fan-made levels that use the original Half-Life assets but are not the full game. These are often hosted on sites like itch.io and are smaller, simpler experiences.
None of these are official Valve products. Valve has not released a browser version of Half-Life. The fan ports are legal gray areas because they use copyrighted assets, but they have remained online for years without takedowns, likely because Valve tolerates non-commercial fan projects.
What You Need to Run It
Browser-based Half-Life ports are surprisingly light. Here are the typical requirements:
- A modern browser: Chrome, Firefox, Edge, or Safari (recent versions).
- WebAssembly support (all modern browsers have it).
- WebGL 1.0 or 2.0 for rendering.
- At least 2 GB of RAM, though 4 GB is safer.
- A stable internet connection, because the game files are streamed and can be several hundred megabytes.
- A keyboard and mouse; touch controls are not implemented.
Most mid-range laptops from the last decade can run it at 30–60 frames per second at 720p. The original game was designed for 1998 hardware, so the browser port is not demanding.
Common Problems and Fixes
Players often encounter a few issues when running a browser port:
- Game won’t load: Usually a slow connection or browser cache issue. Refresh the page, clear the cache, or try a different browser.
- No sound: The browser may block audio autoplay. Click anywhere on the page after it loads, and check your browser’s site settings for sound permissions.
- Low frame rate: Close other tabs, disable hardware acceleration in your browser, or lower the resolution in the game’s video settings (if available).
- Controls feel laggy: This is often due to input latency in the browser. Try using a wired mouse and a direct connection (not Wi-Fi).
- Game crashes mid-level: Out-of-memory errors can happen on 32-bit browsers. Use a 64-bit browser and close other heavy tabs.
If the port you are using requires you to upload your own game files (like the Xash3D web build), make sure you own a legitimate copy of Half-Life and follow the site’s instructions for placing the files.
Comparing Browser Ports to the Original
The browser versions are not perfect clones. Here is how they compare to the 1998 desktop release:
- Graphics: The browser port renders at your screen resolution, so it can look sharper than the original’s default 640×480, but it lacks the software-rendering quirks and may have slight texture filtering differences.
- Performance: On a modern PC, the browser port often runs faster than the original did on 1998 hardware, but it can stutter when loading new areas because of streaming.
- Bugs: Some scripted sequences, like the famous “G-Man” elevator scene, may glitch or skip in browser ports. The AI is generally intact, but pathfinding can fail in rare spots.
- Mods: The browser port does not support mods, custom maps, or the multiplayer mode. You only get the single-player campaign.
- Save games: Browser ports typically do not allow manual saves. They use checkpoints, and closing the tab loses your progress.
If you want the full experience with mods, multiplayer, and reliable saves, buy the original on Steam. The browser version is best for a quick nostalgia trip or to test the game before buying.
Is It Legal and Safe?
The legality of browser Half-Life ports is murky. The code (Xash3D) is open-source and legal, but the game assets—the maps, models, sounds, and textures—are copyrighted by Valve. The fan ports do not have permission to distribute these assets. That said, Valve has not issued takedowns for these projects, and they have been up for years. This is likely because they are non-commercial and do not compete with Valve’s sales (the original game is very cheap).
Safety-wise, playing a browser port is generally safe if you use a reputable site. The main risks are:
- Malicious ads on the hosting page—use an ad blocker.
- Fake sites that claim to offer the game but actually serve malware. Stick to well-known projects like Half-Life: Web Edition or the official Xash3D site.
- Uploading your own game files to a suspicious site could expose your files. Only upload to sites with HTTPS and a clear privacy policy.
Always download from the project’s official page, and never enter personal information on a game site.
Frequently Asked Questions
Can I play Half-Life 2 in a browser? No, there is no functional browser port of Half-Life 2. The Source engine is far more complex, and no one has successfully compiled it to WebAssembly with playable performance. You need the desktop version for that game.
Do I need to own Half-Life to play the browser version? No, the fan ports include the game assets, so you can play without owning a copy. However, this is the legal gray area mentioned above. If you want to support Valve, buy the game on Steam—it’s often on sale for a few dollars.
Will the browser port run on my Chromebook? Yes, if your Chromebook has a modern browser and at least 4 GB of RAM, it should run. The game is old enough that even integrated graphics can handle it.
Can I use a gamepad? The browser port does not have built-in gamepad support. You can use third-party browser extensions that map gamepad inputs to keyboard keys, but it is clunky. A mouse and keyboard are the intended way to play.
Is the browser port the same as the original game? It is very close but not identical. The core gameplay, levels, and story are the same, but you may notice minor graphical differences, occasional glitches, and no mod support. For most players, it is a faithful recreation.
Why does the game stop loading at 99%? This is usually a network issue. The streaming server may be overloaded, or your connection is dropping. Refresh the page and try again, or wait a few minutes. If it persists, try a different browser or disable your VPN.
Related
Formula used
in m | Mass of solute | g | 2.922 | 0 in mm | Molar mass | g/mol | 58.44 | 0.001 in v | Final solution volume | mL | 250 | 0.001 out c | Molarity | mol/L | m / mm / (v / 1000) | 4 out cmm | Concentration in millimolar | mM | c * 1000 | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- How to Find the Continuous Decay Rate
- Total Constant of Decay: How to Calculate It0.000121 1/s
- How to Calculate Decay Constant0.000121 1/s
- Half Life GitHub: What It Is and How to Use It
- Decay Constant: How to Calculate It0.000121 1/s
- Half-Life Games in Order: Full Release Timeline