# How to export a Godot game for the web

> Export a Godot 4 game to run in the browser: the settings that matter, how to test it, and the problems that stop a web build from starting.

Source: https://indiedev.games/guides/godot-web-export-for-browser-games (indiedev.games). Updated 2026-12-02. General information, not legal advice.

Godot can export a game to run in a web browser, which is the quickest way to let someone play without installing anything. Getting a clean export takes a few settings and a few checks. This guide walks through exporting a Godot 4 game for the web, the problems people hit most, and how to test before you upload to itch.io or indiedev.games. Godot changes between versions, so check the current [Godot documentation](https://docs.godotengine.org/) for the exact menu names in your version.

## Before you export

- **Check that your project can run on the web.** Web exports have limits. Native-only features, some plugins and C# projects may not work in the browser in the version you use, so confirm it in the documentation before you plan around it.
- **Turn off threads if the export offers the option.** Recent Godot 4 versions can export a single-threaded web build, which runs almost anywhere. A threaded build needs special browser headers (cross-origin isolation) that many sites, including indiedev.games, do not send, so it may not start. If your game runs fine without threads, leave them off.
- **Keep the game small.** Players wait for the download every time. See [how to make your browser game load fast](https://indiedev.games/guides/make-your-browser-game-load-fast).
- **Save progress somewhere that works.** Browser storage may be off in a sandboxed page, so do not rely on it for the only copy of a save. The upload page tells you whether saves can stay in the browser.

## Export step by step

1. Open **Project, Export** and add a **Web** preset. If Godot says the export templates are missing, install them from the same dialog.
2. Pick a **release** export, not a debug one. Debug builds are larger and slower.
3. Set the export path to a new empty folder, and name the main file `index.html`. Browsers and hosting sites look for that name.
4. Press **Export Project**. The folder will hold the page, a script, a WebAssembly file and a data file with your game.
5. Zip the **contents** of that folder, so `index.html` is at the top of the zip. A zip that holds a single folder is also accepted on indiedev.games.

## Test it the way players will see it

Opening `index.html` by double-clicking it usually fails, because browsers block the files a web game needs when they come from your disk. Run a small local web server instead, or use Godot's own **Run in Browser** button, and open the game from there. Then check:

- It starts, and the first screen is playable without errors. Open the browser's developer tools and look at the console.
- Sound plays after the first click or key press. Browsers block sound until the player does something, so give the game a title screen or a "Click to start" step.
- It works in at least two browsers, and on a phone if you say it does.
- Fullscreen and the window size look right inside a page, not only on a full monitor.

## Common problems

- **A black screen or an error about a missing feature.** Often a threaded build on a site that cannot run it. Export again without thread support.
- **The game loads very slowly.** Look at the size of the data file first, and shrink large images and audio.
- **It cannot load things from the internet.** On indiedev.games a game cannot reach other sites at all, so everything the game needs has to be in the zip.
- **Absolute links.** If you loaded anything by a path that starts with a slash, change it to a relative one so the game works from any address.

## Upload it

On indiedev.games, see [Upload and publish a build](https://indiedev.games/help/upload-a-build) for the limits (100 MB zipped, 500 files) and how versions work. For a page text, pictures and age label, follow [how to prepare your game page](https://indiedev.games/guides/prepare-your-game-page). Once it is live, you can count what players do with a small script: see [Send game events from Godot or Defold](https://indiedev.games/help/game-events-godot-defold).

Before you share the link, check the rest of your store page with the [store page readiness checker](https://indiedev.games/tools/store-page-checker).
