Godot Web Export to itch.io: Settings, Fixes and Black Screens
Godot web export for itch.io: the Web preset settings, threads and SharedArrayBuffer, local testing, smaller builds, and fixes for black screens.
Updated · 10 min read · For developers
A Godot web export to itch.io should take ten minutes, and most of the time it does. When it doesn't, you get a black screen, a spinning loader, a game with no sound, or saves that vanish between sessions. This guide covers the Godot 4 settings that matter for a browser build on itch.io, how to test locally so you never debug by re-uploading, and a troubleshooting list for the problems that fill the forums. It's based on the current Godot web export documentation and itch.io's HTML5 docs, read in November 2026.
If you just need the general upload flow (project page, Kind of project, embed options), our itch.io upload guide covers it for every engine. This one goes deep on Godot.
Before you export: three things that decide whether it can work
1. GDScript, not C#
The Godot docs are blunt: projects written in C# with Godot 4 currently can't be exported to the web. An official pull request to add .NET web export has been open since May 2025 and is still a draft. Community builds with experimental C# web support exist, but they come with missing features (no globalization, some .NET APIs like crypto not working, no GDExtensions). If your game is C# and the browser matters, you have three honest options: ship downloadable builds on itch.io instead, port the game to GDScript, or accept the risk of an unofficial build and test it hard.
2. The Compatibility renderer
Godot 4 on the web only targets WebGL 2.0 through the Compatibility rendering method. Forward+ and Mobile aren't supported in the browser. If your project uses Forward+, switch the rendering method to Compatibility (or at least play the project in Compatibility on desktop) before you export, because lighting, glow and some shader effects look different. Better to find that in the editor than in an itch.io comment.
The docs also note that Safari has more WebGL 2.0 issues than other browsers, so test in Chrome or Firefox first, then check Safari separately.
3. Export templates that match your editor exactly
Open Editor, then Manage Export Templates, and click Download and Install. The templates must match your editor version exactly, down to the patch number. A 4.x.1 editor with 4.x.0 templates is one of the classic causes of a build that exports fine and never starts.
The Web export preset, setting by setting
Open Project, then Export, click Add and choose Web. The defaults are mostly right. Here is what each setting means for itch.io.
- Variant: Thread Support. Leave it off. Since Godot 4.3, single-threaded export is the default and the docs call it the preferred way to export for the web. It runs on itch.io with no extra headers and works better on macOS and iOS. Turn threads on only if you have measured a real performance need.
- Variant: Extensions Support. Off, unless your project uses GDExtension. Each extension then needs its own web build, and like threads, this requires cross-origin isolation headers.
- VRAM Texture Compression. For Desktop is on by default. If you expect phone players and use VRAM compression, also tick For Mobile. The docs say enabling both makes the export bigger but more compatible.
- HTML: Canvas Resize Policy. Adaptive (the default) fills whatever frame itch.io gives the game. Project makes it behave closer to a native export using your project's window settings. None leaves sizing to custom JavaScript in your own HTML shell.
- Custom HTML Shell and Head Include. Leave empty unless you know why you need them. Never hand-edit the exported HTML file; the docs warn that changes are lost on the next export. Use a custom shell if you need a different loading page.
- Progressive Web App. Not needed for itch.io. It's useful when you host the game yourself and want offline play or a home screen icon.
- Export path. Use
index.html, in an empty folder. itch.io requires a file named index.html, and the Godot docs warn that renaming exported files afterward can break things, because the export expects the names it was created with.
Two habits from developers who ship a lot of Godot web builds (MEKAI Games wrote up their presets): keep a separate preset named something like "Web (itch.io)" so a browser build never borrows store settings by accident, and either export outside the project folder or drop an empty .gdignore file into the build folder, so the editor doesn't import the exported icons back into your project. They also use the preset's exclude filter to leave out folders the browser never needs, like tests and tools.
Exporting from the command line
Once the preset exists, you can export without opening the editor:
godot --headless --export-release "Web (itch.io)" builds/web/index.html
The preset name must match exactly. Combined with butler, this gives you a one-command deploy. Our itch.io butler tutorial shows the push side, including GitHub Actions.
What you get, and how to zip it
A typical export is a handful of files: index.html, index.js, index.wasm (the engine), index.pck (your game), audio worklet scripts and a few icons. Zip the files, not the folder around them, so index.html sits at the top of the zip. itch.io limits HTML zips to 1,000 files, 500MB extracted and 200MB per file, and file names are case sensitive.
Do you need to compress the .wasm?
Not for itch.io. itch.io's HTML5 docs say its CDN automatically applies gzip to uncompressed files with extensions including .wasm, .pck, .js and .html. The Godot docs say the WebAssembly module compresses to around a quarter of its original size with gzip, so this matters a lot for load time, and itch.io handles it for you. Upload the files as Godot exported them.
Making the download smaller
The engine itself is most of the download. One developer measured the official web release template's .wasm at about 33MB before compression in 2025. If load time on phones matters, the real fix is a custom export template:
- Open Project, then Tools, then Engine Compilation Configuration Editor.
- Click Detect from Project to switch off features your game doesn't use, then save the build profile.
- Compile a web template with that profile:
scons platform=web target=template_release build_profile=path/to/profile.gdbuild. For 2D games,disable_3d=yesremoves the 3D engine; the Godot docs estimate about 15% smaller binaries from that flag alone. - Rename the result to
web_release.zipand set it as the custom release template in your Web preset.
The docs are clear that unchecking features in the editor doesn't shrink anything on its own. You only get the savings by compiling the template. On your side of the build, cut unused assets and keep audio compressed (Ogg Vorbis for music) so the .pck stays small.
Test locally before you upload
You can't double-click index.html. Browsers block the files from loading from disk, and you get a black screen that has nothing to do with itch.io.
- Fastest: once a Web preset exists and templates are installed, a browser button appears in the editor's top bar. It exports, starts a local server and opens the game.
- For an exported folder: with threads off, any static server works. Run
python -m http.server 8000inside the build folder and openhttp://localhost:8000. - For threaded builds: the Godot repository includes a
serve.pyscript that sends the cross-origin headers. Put it next to index.html and runpython serve.py --root ..
If the local run shows an older version of your game, that's the service worker cache from one-click deploy. The docs' fix: open DevTools (F12), go to Application, and either tick Update on reload or click Unregister on the service worker, then reload.
itch.io settings that matter for Godot
- Set Kind of project to HTML, upload the zip and tick This file will be played in the browser.
- Embed in page with a viewport matching your game's aspect ratio. A 640x360 pixel art game looks clean at 1280x720, exactly double.
- Leave Click to play on. Browsers restrict audio autoplay, and that first click also unlocks sound.
- Tick Fullscreen button if your game has no fullscreen option of its own.
- Tick Mobile friendly only after you've actually played it on a phone.
- Leave SharedArrayBuffer support unticked for a single-threaded build. You only need it if you turned on Thread Support or Extensions Support.
About that checkbox: itch.io labels it experimental. It moves the game to a different CDN domain (html.itch.zone), so existing browser saves won't carry over, requests to other domains fail by default, and iframe embeds on the page, including YouTube videos, can stop working. Old tutorials told everyone to tick it because Godot 4.0 to 4.2 needed threads. Since 4.3 that advice is out of date for most games.
Browser limits that surprise Godot developers
These come straight from the limitations section of the Godot web docs. Plan for them before testers find them.
- Saves.
user://is stored in the browser's IndexedDB. Players must allow it, private browsing doesn't keep it, and when the game runs in an iframe (as on itch.io) third-party cookies must also be allowed.OS.is_userfs_persistent()tells you whether saving will stick, though it can give false positives. For longer games, consider a save export or import option so a cleared browser doesn't wipe 10 hours. - Fullscreen and mouse capture. Browsers only allow these in response to an input event. Trigger fullscreen from
_inputor_unhandled_inputwhen the player presses a button. Checking the Input singleton in_processisn't enough. - Audio. Since 4.3, web exports play audio as samples through the Web Audio API by default. That keeps latency low without threads, but audio effects, reverb and doppler aren't supported in this mode. If you rely on bus effects, set Playback Type to Stream on those players (or change the project's default for web), and accept higher latency.
- Gamepads. A controller isn't detected until the player presses a button, and mappings can be wrong on some browser and OS combinations. Show a "press any button" prompt and offer rebinding.
- Tab switching. The browser pauses the game when its tab isn't active, so
_processand_physics_processstop. Networked games can disconnect. - Networking. Only HTTP requests, WebSocket clients and WebRTC are available. No raw UDP or TCP, and HTTPS is required because itch.io is HTTPS only.
- Mobile. It works, but WebAssembly on a phone is far slower than a native export. Use feature tags to apply lighter settings on web.
Black screen and other fixes
Open the browser console first (F12, or the browser's menu if Godot captures the shortcut). The error almost always points at one of these:
- Error mentions SharedArrayBuffer or crossOriginIsolated: you exported with Thread Support or Extensions Support on. Turn them off and re-export, or tick SharedArrayBuffer support on itch.io.
- Black screen locally: you opened index.html from disk. Use a local server.
- Black screen on itch.io only, 404s in the console: index.html is inside a folder in the zip instead of at the top, or files were renamed after export.
- Loader stalls or the engine fails to start: export templates don't match the editor version. Reinstall the matching templates.
- Works in Chrome, broken in Safari: check Safari's WebGL 2.0 issues and test the Compatibility renderer settings, especially shaders.
- Graphics look different from the editor: your project uses Forward+ and the web runs Compatibility. Switch and adjust.
- No sound: the browser blocked autoplay. Keep Click to play on or add a "click to start" screen. If only effects are missing, see the sample playback note above.
- Saves disappear: private browsing, blocked third-party storage, or you toggled SharedArrayBuffer support and moved domains.
- C# project won't export to web at all: that's expected in official Godot 4. If your team also ships Unity games, our Unity WebGL on itch.io guide covers the same steps for Unity 6 builds.
Ship a test build, then get people playing it
A browser build is the easiest thing in the world to playtest: one link, no install, nothing for a stranger to be nervous about. If you are shipping a jam game or an early demo, put it up as a Restricted or password-protected page first (our itch.io playtest guide walks through the privacy options), and check it in at least two browsers and on one phone.
Then get it in front of players who didn't build it. You can post the itch.io link as a playtest on Get Playtests for free, no credit card needed, and players who choose your game send written, video or livestream reviews. Browser games also show up on the web playtests page, so players who want something they can open in a tab can find yours. Ask reviewers which browser and device they used, so a "it didn't load" report comes with what you need to fix it.
For the page itself, from cover image to screenshots, see how to make a good itch.io page. If you're building for a jam, our OpenGame game jam guide covers that jam's dates, prizes and rules.
Godot web export checklist
- Project uses GDScript (or you've accepted the C# limitation).
- Rendering method checked in Compatibility.
- Export templates installed and matching the editor version.
- Thread Support and Extensions Support off.
- VRAM compression For Mobile on if phones matter.
- Exported to index.html in an empty folder, nothing renamed.
- Tested on a local server, not from disk.
- Zipped the files, index.html at the top.
- itch.io: HTML, played in browser, embed size matches aspect ratio, SharedArrayBuffer off.
- Tested in Chrome, Firefox and Safari, plus one phone.
- Saves, fullscreen, audio and gamepad checked in the browser.
Sources
- Exporting for the Web (Godot Engine documentation)
- Uploading HTML5 games (itch.io creator docs)
- Experimental SharedArrayBuffer Support (itch.io Developer Updates)
- Optimizing a build for size (Godot Engine documentation)
- Using the engine compilation configuration editor (Godot Engine documentation)
- [.NET] Add web export support, PR #106125 (godotengine/godot on GitHub)
- Godot 4 web export for itch.io: our settings (MEKAI Games)
- Optimize Size of Godot Releases (amann.dev)