▦ PIXEL-DECK
← All Guides

Game Development · EN

How to Upload an HTML5 Game to itch.io (Step-by-Step)

Publish your HTML5 browser game on itch.io. Learn the correct ZIP structure, embed settings, mobile support, and fixes for black screens and 403 errors.

By JedimeisterX ·

How to Upload an HTML5 Game to itch.io (Step-by-Step)

**Want to publish your first browser game on itch.io but keep getting upload errors, black screens, or broken assets?**

You're not alone. Publishing an HTML5 game sounds easy: export your project, upload the files, and let people play. But a single misplaced `index.html` file or an incorrect asset path can prevent an otherwise perfectly working game from launching.

Fortunately, the process becomes straightforward once you understand how browser games are packaged and hosted.

In this complete beginner-friendly guide, you'll learn how to upload an HTML5 game to itch.io, prepare the correct ZIP file, configure your playable embed, troubleshoot common errors, and make your game easier for players to discover.

**Updated November 2026.** Based on itch.io's official HTML5 publishing documentation.

## Quick Answer: How Do You Upload an HTML5 Game to itch.io?

To publish a browser game on itch.io, first export it as an HTML5 project. If it has multiple files, put your `index.html`, JavaScript, CSS, and required assets together in a ZIP archive. Create a new project on itch.io, select **HTML Game** as the project type, upload the ZIP, configure the embed settings, and test the published game.

If your game consists of one fully self-contained HTML file, itch.io also supports uploading that file directly.

The most important rule is simple: **your game's entry point must be accessible as `index.html`, and its referenced files must load correctly.**

## 1. What Is an HTML5 Browser Game?

An HTML5 game runs directly in a web browser rather than requiring players to download and install a traditional desktop executable.

Most browser games combine three web technologies:

**HTML** provides the page structure and the element where the game appears.

**JavaScript** handles gameplay logic, input, movement, animations, and interactions.

**CSS** controls the layout, appearance, and responsiveness of the page.

Some browser games also use WebAssembly, WebGL, audio files, image assets, or data files generated by a game engine.

Common ways to create browser games include vanilla JavaScript, Phaser, and engines with web export support such as Godot.

The great advantage is accessibility. Players can open a link and start playing without a complicated installation process.

This makes browser games particularly useful for small indie projects, game jams, quick prototypes, and experimental games.

## 2. Prepare Your HTML5 Game Files

Before uploading anything, make sure your exported game works locally.

A typical browser game might have this structure:

MyBrowserGame/ ├── index.html ├── game.js ├── style.css └── assets/ ├── player.png ├── enemy.png ├── background.png └── music.ogg


Your actual file structure may differ depending on the game engine you use.

The important part is that your HTML file can find all the resources it needs.

For example, if your JavaScript loads `assets/player.png`, that path must match the actual filename and folder structure.

**Important:** Filenames are case-sensitive on itch.io's hosting system.

`Player.png` and `player.png` are not interchangeable.

A game that works on a Windows computer may fail online because of this difference.

## 3. Create the Correct ZIP File

One of the most common itch.io HTML5 upload mistakes is putting your entire project folder inside another folder in the ZIP.

For the simplest and most reliable setup, the archive should open directly to your entry point and resources.

**Correct:**

MyGame.zip ├── index.html ├── game.js ├── style.css └── assets/


**Avoid:**

MyGame.zip └── MyGame/ ├── index.html └── assets/


While working with exported game files, always package the contents of your export folder rather than accidentally adding unnecessary parent folders.

### How to create the ZIP on Windows

Open your exported game folder, select the required files and folders, right-click, and create a ZIP archive using Windows' compression feature.

Open the finished ZIP to verify that `index.html` appears at the top level.

Also check that you didn't accidentally omit image, audio, or data folders.

Don't include unnecessary development files such as source backups, temporary screenshots, editor caches, or unused assets.

Smaller and cleaner builds are usually easier to test and distribute.

## 4. Create Your itch.io Project

Go to [itch.io](https://itch.io/) and sign in to your account.

Create a new project and choose a clear, recognizable name.

In the project editor, set the project type to **HTML Game**.

Upload your ZIP file.

itch.io will process your archive and host its contents so your game can run directly in a browser.

Once the upload is ready, you'll have access to settings that control how your game appears on the project page.

Use a title that describes the game, rather than relying entirely on a vague name.

For example, a project named *Dungeon Spark* could use a description such as:

"A fast-paced pixel art dungeon crawler where every room gets more dangerous."

That single sentence immediately tells visitors what kind of experience they're about to play.

## 5. Configure Your HTML5 Embed Settings

itch.io offers two main display modes for browser games.

### Embed in page

The game appears directly inside your itch.io project page.

You can configure the viewport dimensions to match your game's intended display area.

This works well for fixed-size pixel art games, arcade projects, and compact browser experiences.

For example, a game built for a 960×600 display area could use a similar embed size if it fits the project's page layout.

### Click to launch in fullscreen

The player clicks a launch button, and the game opens in a fullscreen-style viewing experience.

This is particularly useful for responsive games that can adjust their layout to different screen sizes.

### Which option should you choose?

For a simple pixel art arcade game with fixed dimensions, embedding directly on the page often provides a convenient experience.

For a larger or fully responsive game, click-to-launch may be more appropriate.

Regardless of the option, test it on different screen sizes.

A game that looks good on your personal monitor may not fit correctly on a smaller laptop.

## 6. Why Is My itch.io HTML5 Game Showing a Black Screen?

A black screen doesn't necessarily mean your entire game is broken.

It often indicates that a required file failed to load or that JavaScript encountered an error during startup.

### Check the browser console

Open your game's itch.io page and press F12 in a desktop browser.

Select the **Console** tab.

Look for errors involving missing files, JavaScript exceptions, WebAssembly, or blocked resources.

If a file cannot be found, check the name and path inside your uploaded archive.

### Verify your JavaScript imports

If your game uses JavaScript modules, make sure the import paths match the actual directory structure.

For example:

import { startGame } from "./game.js";

startGame();


This requires `game.js` to exist at the expected relative location.

A single missing or incorrectly named module can prevent your game from starting.

### Check external resources

If your game depends on external scripts, APIs, or assets, make sure those resources support HTTPS and can be accessed from your game's hosted environment.

Browser security policies can block certain external requests.

Whenever practical, include essential game assets in the upload rather than depending on unreliable external hosting.

## 7. How to Fix 403 Errors on itch.io

You might encounter an error such as:

`net::ERR_ABORTED 403`

This can happen when the game requests a resource that itch.io's file hosting system cannot serve.

Several common causes are worth investigating.

### Incorrect filename capitalization

If the asset is named `Hero.png`, loading `hero.png` can fail.

Match the capitalization exactly.

### Absolute file paths

This is a particularly important problem.

**Potentially broken path:**

const image = "./assets/player.png";


This path is actually relative and is usually appropriate. The problematic form would be:

const image = "/assets/player.png";


The leading slash points to the root of the hosting origin rather than your game's project directory.

For locally packaged game resources, prefer appropriate relative paths.

### Requesting folders instead of files

A request for an asset directory does not automatically point to a valid game resource.

Make sure your game requests the correct file rather than a folder path.

**Troubleshooting tip:** Change one thing at a time and upload a new build after confirming which error you fixed.

## 8. Make Your HTML5 Game Mobile-Friendly

Mobile compatibility can expand the number of people able to try your game.

However, checking a box in your publishing settings does not automatically make a game mobile-friendly.

Your actual game must support the device.

Consider the following:

**Touch controls:** A keyboard-only game may be difficult or impossible to play on a phone.

**Responsive layout:** The viewport should adapt to the available display area without cutting off important UI elements.

**Performance:** Large textures, excessive effects, and heavy scripts can cause problems on less powerful devices.

**Audio:** Mobile browsers may require a user interaction before allowing audio to start.

If your game genuinely supports mobile browsers, enable itch.io's **Mobile Friendly** option.

If it doesn't, avoid labeling it as mobile-compatible simply to attract more visitors.

## 9. How Large Can an itch.io HTML5 Game Be?

As of November 2026, itch.io's published default ZIP requirements include the following limits:

| Requirement | Default limit |
|---|---|
| Extracted files | 1,000 |
| Total extracted size | 500 MB |
| Largest extracted file | 200 MB |
| Filename including path | 240 characters |

These are platform requirements, not performance recommendations. They may change over time.

A browser game far below those limits can still load slowly.

Optimize your game by removing unused files, compressing suitable images and audio, and testing loading performance.

For the latest requirements, see the [official itch.io HTML5 documentation](https://itch.io/docs/creators/html5).

## 10. How to Get More Players for Your itch.io Game

Uploading a game is only the beginning.

If nobody knows your game exists, even an excellent project can struggle to find an audience.

Start by giving your game a useful title and a short description that accurately explains its genre and gameplay.

Add relevant tags, such as pixel art, arcade, platformer, puzzle, horror, or roguelike, when they genuinely describe the game.

Test your game thoroughly before inviting people to play.

A broken launch screen can turn away potential players immediately.

You can also share your project with indie game communities and game development groups.

Another option is to introduce your game to players on a separate indie platform.

At [Pixel-Deck](https://pixel-deck.com/games), players can discover free indie games, browser experiments, and community-created projects.

Sharing your finished game in relevant communities creates more opportunities for feedback and discovery.

Focus on a good playing experience first. Promotion works much better when the game itself is worth recommending.

## 11. Common HTML5 Publishing Mistakes

Before announcing your game, check for these issues:

- The ZIP contains unnecessary parent folders.
- The required `index.html` file is missing.
- File paths use incorrect capitalization.
- Assets reference inaccessible external locations.
- The game has only been tested on your development computer.
- The embed dimensions hide important parts of the UI.
- The game is marked mobile-friendly without functioning touch controls.
- The project description does not explain what the player actually does.

Fixing these problems can improve the experience for everyone who opens your game.

## Frequently Asked Questions

### Can you upload a JavaScript game to itch.io?

Yes. JavaScript games can run on itch.io when packaged as an HTML5 project with the necessary HTML, CSS, scripts, and assets.

### Does itch.io require index.html?

For multi-file HTML5 ZIP projects, itch.io uses `index.html` as the entry point. A single self-contained HTML file can also be uploaded directly.

### Can I publish a free browser game on itch.io?

Yes. itch.io supports free HTML5 games that players can open directly in their browsers.

### Why does my game work locally but not on itch.io?

Common causes include case-sensitive filenames, incorrect relative paths, unavailable external resources, and JavaScript errors.

### Can Godot games run on itch.io?

Yes, if your Godot project is exported to a compatible web build and configured correctly for browser hosting.

### Can I update my HTML5 game after publishing it?

Yes. You can upload a new version of your game through the project's editing interface.

### Do players need to download my HTML5 game?

Not when the project is configured to run directly in their supported web browser.

## Final Checklist Before Publishing

Before making your game public, confirm that:

- Your HTML5 build launches successfully.
- All required assets are included.
- File paths use correct capitalization.
- The ZIP has the expected structure.
- The itch.io embed is configured correctly.
- Your controls and audio work.
- Your project description accurately represents the game.
- You've tested at least one complete playthrough in the hosted version.

## Keep Building and Sharing Games

Your first browser game doesn't need to be huge.

Some of the most memorable indie games begin as tiny ideas with a simple gameplay loop.

Finish a small project, let people play it, collect feedback, and use what you've learned to build something better.

Explore more [free indie browser games on Pixel-Deck](https://pixel-deck.com/games), discover [game development tutorials](https://pixel-deck.com/guides), or find [free pixel art assets for your next project](https://pixel-deck.com/free-pixel-art-assets).

**Small games. Great adventures.**

---

### References

[Official itch.io HTML5 Uploading Documentation](https://itch.io/docs/creators/html5)

*This is an independent educational guide. itch.io is a third-party platform and is not affiliated with Pixel-Deck.*

Explore more Pixel-Deck Guides, free game assets and browser games.