TExcelTAD
Home › Assets, Tools & Shipping › Publishing on itch.io

Publishing on itch.io

itch.io is the friendliest place to ship a first game: uploading is free, browser games are first-class, game jams live there, and you control pricing (free, paid, or pay-what-you-want) and the platform's revenue share (it defaults to 10%, adjustable by you; check the current terms). This lesson takes a build from a folder on your disk to a public page, then automates the upload with butler.

The project page

Create a project from Upload new project on your dashboard. The fields that matter most:

Field Advice
Kind of project Downloadable for executables; HTML for browser games (playable on the page)
Title, short description the short description appears under the title in browse lists; say what you do in the game
Cover image the thumbnail in every listing; see Store Page Assets
Screenshots / GIF / trailer above the fold; a GIF of real gameplay sells better than any text
Uploads one per platform (Windows, macOS, Linux, Android) or one HTML zip
Embed options (HTML) viewport size, fullscreen button, mobile-friendly flag, and SharedArrayBuffer support (needed by some engine web exports that use threads)
Genre, tags, controls tags drive discovery; list keyboard/gamepad support honestly
Visibility Draft while you test, Restricted (only people with the link or a key) for playtests, Public to launch

Browser games: what the zip must look like

For an HTML game, you upload a .zip whose index.html is at the top level (not inside a subfolder), with every path relative. itch.io serves it from its own servers inside an iframe, which is where most problems come from. A checker for the zip's contents catches them before upload:

python · try it yourself
import re

zip_listing = [
    "StarCatcher/index.html",
    "StarCatcher/js/game.js",
    "StarCatcher/assets/Basket.PNG",
    "StarCatcher/assets/star.png",
    "StarCatcher/audio/catch.ogg",
]
index_html = '''<!doctype html>
<script src="/js/game.js"></script>
<img src="assets/basket.png">
<audio src="audio/catch.ogg"></audio>'''

problems = []
roots = {p.split("/")[0] for p in zip_listing}
if "index.html" not in zip_listing:
    if len(roots) == 1 and f"{next(iter(roots))}/index.html" in zip_listing:
        prefix = next(iter(roots)) + "/"
        problems.append(f"index.html is inside '{prefix}': zip the folder's contents, not the folder")
        zip_listing = [p[len(prefix):] for p in zip_listing]
    else:
        problems.append("no index.html at all")

files = set(zip_listing)
lower = {p.lower(): p for p in files}
for ref in re.findall(r'(?:src|href)="([^"]+)"', index_html):
    if ref.startswith("/"):
        problems.append(f"absolute path {ref}: use a relative path ({ref.lstrip('/')})")
        ref = ref.lstrip("/")
    if ref not in files:
        if ref.lower() in lower:
            problems.append(f"{ref} only matches {lower[ref.lower()]} by case (servers are case-sensitive)")
        else:
            problems.append(f"{ref} is missing from the zip")

for p in problems:
    print("FIX:", p)
print("ready to upload" if not problems else f"{len(problems)} problem(s)")
FIX: index.html is inside 'StarCatcher/': zip the folder's contents, not the folder
FIX: absolute path /js/game.js: use a relative path (js/game.js)
FIX: assets/basket.png only matches assets/Basket.PNG by case (servers are case-sensitive)
3 problem(s)

All three are classic "works locally, broken on itch" bugs: the zip contains a folder, a leading / points at the root of itch's CDN instead of your game, and Windows doesn't care about Basket.PNG vs basket.png but the web server does. Unity WebGL builds also need the right compression setting for the host (Unity's Publishing Settings → Compression Format plus Decompression Fallback if the server doesn't send the matching Content-Encoding headers); check Unity's WebGL deployment docs if a build loads locally but not online.

butler: uploading from the command line

The browser upload form works, but butler, itch.io's command-line uploader, is faster and scriptable: it uploads only the parts of a build that changed and keeps a version history per channel.

bash
butler login                                   # once; opens the browser
butler push builds/web     yourname/star-catcher:html5
butler push builds/windows yourname/star-catcher:windows --userversion 1.4.2
butler push builds/linux   yourname/star-catcher:linux   --userversion-file VERSION
butler status yourname/star-catcher            # channels and their latest builds
  • user/game is the page's URL slug, lowercase (https://yourname.itch.io/star-catcher → yourname/star-catcher).
  • The channel name sets the initial platform tags: names containing win/windows, linux, mac/osx or android are tagged automatically. Mark an HTML channel as playable in the browser on the Edit game page after the first push (and set the page's kind to HTML).
  • --userversion (or --userversion-file) shows your version number instead of itch's internal one.
  • A directory or a .zip can be pushed; butler diffs against the previous build, so later pushes upload a fraction of the data. After the push, itch processes the build for a while; players can download it immediately.
  • In CI, set the BUTLER_API_KEY environment variable instead of butler login (the key is on your itch.io API keys settings page), and download butler from the permanent https://broth.itch.zone/butler/<platform>/LATEST/archive/default URL (GitHub Actions & GameCI). If a key ever appears in a public log, revoke it.

After launch

  • Post a devlog on the page for each update; followers get notified (Devlogs & Press Kits).
  • Use download keys or a Restricted page for press and testers.
  • Join game jams on itch.io: deadlines and an audience of other developers are the best way to finish small games.
  • Read the comments and ratings, and keep the page's version and controls up to date.

Test yourself

Your HTML game shows a blank page on itch.io but works locally. The zip contains MyGame/index.html. What's wrong?

  1. itch.io doesn't support HTML
  2. index.html must be at the top level of the zip, not inside a folder
  3. The game needs a server
  4. The zip is too small

Which butler channel name gets tagged as a Windows build automatically?

  1. html5
  2. pc-final
  3. windows-beta
  4. desktop

How does butler authenticate in a CI pipeline?

  1. butler login in the pipeline
  2. The BUTLER_API_KEY environment variable from a CI secret
  3. A password flag
  4. It doesn't need to