PEERLESS
All learning guides
PEERLESS FIELD GUIDE / PUBLISHING

How to list a single-HTML-file browser game

If your game is one HTML file, here is what official itch and Peerless docs actually say about uploading it, when you still need a ZIP, and how to submit a listing.

A surprising number of jam games and vibe-coded prototypes are just one .html file: markup, styles, and scripts in the same document. That is a real, shippable browser game, as long as you host it correctly and do not pretend it is more than it is. This guide sticks to official docs for two places you might list it: itch.io and Peerless.

In short: itch will accept a single HTML file on its own. If the game needs images, audio, or other scripts beside that file, itch wants a ZIP with index.html at the root. Peerless will take either a self-contained browser export or an HTTPS play link, and the listing still needs a cover, a hero, a screenshot, and a short pitch.

First, check whether it is really one file

Open the HTML and look for other resources: <img>, <audio>, <link rel="stylesheet">, fetch(), or new Image(). If every asset is inlined (for example, as a data URL or as text inside the same file) and every request it makes is either unnecessary or already HTTPS, you have a true single-file game.

If it loads ./sprites.png or /sounds/jump.wav, it is not a single-file game yet. itch's official HTML5 guide is strict about this: a lone HTML file "will not be able to reference any other files you've uploaded on itch.io." Those extra files have to travel inside a ZIP with the HTML, or the game has to stop requesting them.

How itch handles a single HTML file

Uploading HTML5 games describes two upload paths:

  • A ZIP that contains all project files and an index.html entry point.
  • "Upload a single HTML file that contains your entire game," with no ZIP.

To use the second path, create or edit a project, set the kind to "HTML Game," and upload the .html file. itch embeds it in an iframe on the project page.

The same official guide is the source for the usual hosting traps, and they still apply to a one-file game if it talks to the network:

  • itch.io is HTTPS only. Requests to other domains must also use HTTPS, or the browser will block them.
  • Paths are case-sensitive on the host, even if they were not on your laptop.
  • Absolute paths that start with / can miss the file, because the project is served from a subdirectory.
  • A missing file often shows up as a 403, not a 404, in that environment.

If you later add a second file, switch to a ZIP. itch does not support rar, tar.gz, or 7z for this, and uploading loose extra files next to the HTML is not enough, according to that guide.

How to offer the same game on Peerless

The live publishing page gives two ways to make the game playable: "Upload a self-contained browser export or provide an HTTPS play link."

A single-file game fits both:

  • Play link. Host the file on any HTTPS URL that actually runs the game (including an itch HTML5 page). Point the listing at that URL.
  • Uploaded build. Package the file as a self-contained export. If you ZIP it, put the playable HTML at the root, usually as index.html. Standard Peerless browser upload limits, from the same publishing docs, are 100 MB compressed, 500 MB expanded, and 5,000 files.

The game file is not the whole listing. How Peerless reviews games repeats the submit checklist: a cover, a hero image, at least one screenshot, a title, a pitch, a description, a genre, and a way to play. Creator studio caps the pitch at 160 characters. Images should be real gameplay, in PNG, JPEG, or WebP, up to 10 MB each. Staff review the listing before it goes live. Review does not certify security, and there is no promised approval date.

If AI tools helped you write the file, say so in plain language on the listing. That is a disclosure, not a shortcut through review.

A short packing checklist

  1. Play the file from a private window on the public HTTPS URL, not from file:// or localhost.
  2. Confirm it does not request missing local files.
  3. Confirm any third-party APIs or CDNs are HTTPS.
  4. If you have more than one file, make a ZIP with index.html at the root.
  5. Add a cover, a wide hero, and a real screenshot, then submit.

Frequently asked questions

Can I upload a game that is only one HTML file?

Yes, on itch.io. Official HTML5 docs say a self-contained single .html file can be uploaded directly, without a ZIP. If the game needs other files, itch requires a ZIP that contains index.html.

Does Peerless require a ZIP?

For an uploaded browser build, Peerless publishing docs describe a self-contained browser export. Standard upload limits are 100 MB compressed, 500 MB expanded, and 5,000 files. You can also skip the upload and provide an HTTPS play link instead.

Why did my one-file game break after I hosted it?

itch's HTML5 guide lists common causes: absolute paths, mismatched file-name case, missing files, and HTTP (not HTTPS) requests to other domains. A single file still has to obey those rules if it loads anything from the network.

What else does a Peerless listing need besides the game file?

A cover, a hero image, at least one real screenshot, a title, a one-sentence pitch, a description, and at least one genre, plus an HTTPS play link or a build that passed upload checks.

TEST YOUR WORK

Before you move on

  • Confirm the game is truly a single file, or switch to a ZIP with index.html at the root.
  • Play the public HTTPS URL in a private window.
  • Gather a cover, a hero, a real screenshot, and a short pitch before you submit.

If either platform changes its upload rules, use the live docs, not this page. Start a Peerless listing · Getting your vibe-coded game ready for players.

Official references

Use these for current platform requirements and a deeper technical reference.

KEEP MAKINGGetting your vibe-coded game ready for players: a pre-launch checklistWhat a store handles for your vibe-coded gamePublish a browser game on Peerless: export, test, and submitHow Peerless decides what gets listed