← All guides

🌱 Getting started🟢 Beginner⏱ 5 min read · 21 steps

How to put your AI-made browser game online for free (itch.io, GitHub Pages, Netlify Drop)

Your AI tool gave you an index.html game. Here are three free ways to get it a public link people can play: itch.io, GitHub Pages and Netlify Drop, with the gotchas that break uploads.

N
Nick May 🏅 Founding Member
@nickmay · 21d ago

Quick answer

If ChatGPT, Claude, Cursor or another AI tool built you a browser game, you can put it online for free in a few minutes. Pick one:

  • itch.io: best if you want a game page, players and comments. Upload a ZIP (or a single HTML file) as an "HTML" game.
  • GitHub Pages: best if your game already lives in a GitHub repository. Free accounts need a public repository.
  • Netlify Drop: fastest. Drag your game folder onto a web page and get a link ending in netlify.app.

All three need the same thing from you: a folder with an `index.html` file at the top level. That file is the page players land on.

Before you upload: get your files ready

  1. Put everything in one folder. Your index.html, scripts, images and sounds all go in it.

  2. Make sure `index.html` is at the top of that folder, not inside a subfolder.

  3. Use relative paths. Load files as images/ship.png, not /images/ship.png or C:\Users\.... itch.io says absolute paths (starting with /) fail because your game is hosted in a subfolder.

  4. Match capital letters exactly. Web servers are case-sensitive, so Hello.png and hello.png are different files. A game can work on your computer and break online because of this.

  5. Use https for anything outside your folder, like fonts or APIs.

  6. Open it locally first. If it doesn't run on your computer, it won't run online.

If your AI tool made a project that needs a build step (React, Vite and similar), ask it how to build it, and upload the output folder (often called dist or build).

Option 1: itch.io (game page + players)

From itch.io's HTML5 upload docs:

  1. Create a free itch.io account, then start a new project (or edit an existing one).

  2. In the kind-of-game list, pick HTML.

  3. Upload your game:

    • one self-contained .html file can be uploaded directly, or
    • for anything with more than one file, upload a ZIP that contains index.html. itch.io doesn't accept .rar, .7z or .tar.gz.
  4. After the upload, set the Embed options that appear on the edit page: play in the page at a size you choose, or "click to launch in fullscreen".

  5. If it works on phones, tick Mobile friendly.

  6. Save, view the page, and play it once yourself before you share it.

Limits to know: at most 1,000 files and 500MB unzipped, with no single file over 200MB. HTML5 games on itch.io take payments only as donations.

If something doesn't load: a 403 error usually means a wrong path or wrong capital letters, not a permissions problem.

Option 2: GitHub Pages (if you use GitHub)

From GitHub's Pages docs:

  1. Create a repository and add your game files, with index.html at the top level of the folder you publish.

  2. On a free GitHub account, the repository must be public.

  3. In the repository, open Settings → Pages and choose your publishing source. Publishing straight from a branch is the simplest for a plain HTML game. GitHub's guide to configuring a publishing source shows each option.

  4. Wait a few minutes. GitHub says changes can take up to 10 minutes to appear. Then use Visit site on the same Pages screen to get your link.

Good to know: the site is public even if the repository is private (on plans that allow that), so keep keys and passwords out of your files. GitHub Pages hosts static files only. It can't run PHP, Python or other server code.

Option 3: Netlify Drop (no account needed to try)

From Netlify's Drop quickstart:

  1. Sign in to Netlify (recommended, so the site is saved to your account). You can also drop first and claim the site by signing up afterwards.

  2. Drag your game folder onto the drop zone. If you have a ZIP, unzip it first.

  3. Your game goes live at a link ending in netlify.app.

  4. To update it later, drag the updated folder onto the deploy drop zone on your site's Deploys page.

Good to know: Netlify says drag-and-drop deploys work best under 50MB, with no single file over 10MB, and you need an index.html at the top of the folder. If you're signed in, Netlify can build a project that still needs a build step. If you're not, it publishes the files exactly as they are.

Which one should I pick?

| You want... | Use | |---|---| | A game page, players and comments | itch.io | | Your game in the same place as your code | GitHub Pages | | A playable link in under a minute | Netlify Drop |

You can use more than one. Many makers put the game on itch.io and keep a backup link on GitHub Pages or Netlify.

Next step: post it and get feedback

Once you have a public link, post your game on AI Game Universe with the link and a screenshot, and ask for notes on the playtesting page. Other makers can play it and leave feedback, and you can return the favor on their games.

Frequently asked questions

Is it really free? All three have free options for a small browser game. Check each site's current plans if your game gets big or popular.

My game works on my computer but shows a blank screen online. Why? Usually a path problem: an absolute path (starting with / or C:\), a missing file, or a capital-letter mismatch. Open the browser's developer console (F12) to see which file failed.

Can I sell my browser game? On itch.io, HTML5 games take donations only. To sell access, itch.io says to make it a downloadable game instead. Browse our publishing guides for store rules.

Do I need to say it was made with AI? itch.io has a Generative AI disclosure field on the project page. Fill it in honestly.

Related on AI Game Universe

Stuck on a step?

Ask the community — answers earn credits, so people do help.

✋ Ask a question about this guide

💬 0 comments

No comments yet. Tried this guide? Say how it went.

Log in or join free to comment and track progress.

Built something with this guide?

Add your game in a minute, free. Paste a link and we fill in the rest.

➕ Add your game