# itch.io (/start/distribution-itchio)



You can distribute your game on [itch.io](https://itch.io/). It is a platform that allows you to upload your game and distribute it to the public. It is a great platform to distribute your game and get feedback from the community.

## Game playable in browser [#game-playable-in-browser]

On itch.io you can enable the "This file will be played in the browser" flag for an uploaded file to make it playable in the browser.

<Accordions>
  <Accordion title="Uploading the dist folder does not work" id="dist-folder-does-not-work">
    Only a single html or js file can be executed and not a directory. So, uploading a zip of the generated `dist` folder from a build will not work. For example, if you try, you will see a result of something like this:

    ![image](https://github.com/user-attachments/assets/0482a6fa-8c21-4fa6-b4e1-04f05bc4315d)
  </Accordion>
</Accordions>

Instead, you need to <DynamicLink href="/start/distribution-website#hosting-and-deploying">host the game on a server</DynamicLink> and then upload to itch.io a single html file containing an iframe that points to the URL where the game is hosted.

For example, after hosting the game on a server, you can create a index.html file with the following content:

```html title="index.html"
<!doctype html>
<html lang="en" style="height: 100%; width: 100%;">
  <head></head>
  <body
    style="height: 100%; width: 100%; display: flex; overflow: hidden; margin: 0; background-color: #242424;"
  >
    <div id="root"
      style="height: 100%; width: 100%;"
    >
      <iframe
        src="https://pixi-vn-visual-novel-example.pages.dev/"
        style="height: 100%; width: 100%; border: none;"
        allowfullscreen
      >
      </iframe>
    </div>
  </body>
</html>
```

Then you can upload the index.html file to itch.io.
