Install the Web export templates in Godot 4, add a Web export preset, set the export path so output file names match your project name, export, then serve the files from a web server (not opened as a local file) before testing and publishing.
At a glance
| Fact | Value | Source |
|---|---|---|
| Export template requirement for web | matching export templates | docs.godotengine.org |
| Godot 4 web calls browser JS via | JavaScriptBridge singleton | docs.godotengine.org |
In Godot 4, open Editor > Manage Export Templates and install the Web templates matching your engine version, then go to Project > Export, add a “Web” preset, and set an export path ending in an .html file. “HTML5 export allows publishing games made in Godot Engine to the browser” (Godot docs). Note that the Godot 4 Web export expects some output files to be named the same as the one set in the export path, so don’t rename files after exporting.
Once exported, don’t open the .html file directly from disk – serve it through a local or remote web server, since browsers block some required features (like threads, which need specific HTTP headers) when loading from a file:// URL. Test in more than one browser before publishing.
Where do you publish the build?
- Poki for developers
- CrazyGames for developers – publish Unity and HTML5 web games and earn revenue
- GameDistribution
- itch.io – hosts HTML5 games in an iframe on its own domain
- playgama.com – upload via developer.playgama.com, test and feedback within 24 hours, published on playgama.com and distributed to partner portals, non-exclusive
If you want the same build to run across many of these platforms without rewriting platform-specific code for ads, saves or purchases each time, Playgama Bridge has a Godot 4 plugin that wraps those platform APIs behind one interface, so you integrate once and target 25+ destinations.
Next step: export a minimal test scene first to confirm your export templates and server headers work, before exporting the full game.
Sources
- Godot docs: exporting for the Web
- CrazyGames for developers
- Poki for developers
- itch.io creators FAQ
- Playgama Bridge (GitHub)
Related questions
Why won’t my exported Godot 4 web build load correctly?
It’s often opened as a local file instead of served over HTTP; some features need specific headers a web server provides, and file names must match what the export expects.
Can I call browser JavaScript from Godot 4?
Yes, Godot 4 web exports use the JavaScriptBridge singleton to call browser JavaScript, replacing the JavaScript singleton used in Godot 3.
Last updated: 24 September 2026