How to publish an HTML5 game online for free

From a folder on your computer to a link anyone can play: preparing your build, choosing where to host it, and getting your first players.

PublishingBy the Halftone teamUpdated 5 min read

Key takeaways

  • Any HTML5 game is a folder with an index.html; publishing means putting that folder somewhere people can open it.
  • You can host it yourself for free, put it on a game portal, or both. Portals bring players; self-hosting brings control.
  • Prepare the build first: relative paths, a small first download, phone controls and no external dependencies.
  • Your cover, a short gameplay clip and a clear one-line summary decide whether people press Play.
  • Ship early, watch how people play, and update. Browser games can be improved the same day.

What "publishing" an HTML5 game means

An HTML5 game, whether you wrote it by hand or exported it from Unity, Godot, Construct, GDevelop, Phaser or another engine, ends up as a folder: an index.html plus scripts, images and sounds. Publishing simply means putting that folder on a web server so anyone with the link can play. The question is which server, and how players will find it.

Step 1: Prepare your build

Most "it worked on my computer" problems are fixed before you upload anything.

  • Relative paths only. Load files as assets/hero.png, never /assets/hero.png or C:\..., so the game works from any address and inside an embed.
  • Everything in the folder. Bundle libraries and fonts instead of loading them from other sites.
  • A small first download. Aim to be playable within five seconds; load extra levels and music in the background.
  • Works on phones. Touch controls, the right orientation, and nothing important under the notch.
  • Test the exported build, not the editor: open it from a local web server, because many games do not run from a double-clicked file.
# serve the build folder locally, then open http://localhost:8000
cd my-game-build
python3 -m http.server 8000
Unity users: enable Decompression Fallback if you use compression, so the build loads on any host. More in our Unity WebGL optimization guide.

Step 2: Choose where to host it

There are two broad routes, and many developers use both.

Host it yourself (free static hosting)

Static hosting services such as GitHub Pages, Cloudflare Pages and Netlify can serve an HTML5 game folder for free, usually from a Git repository or a drag-and-drop upload. You get your own link and full control.

  • Good for: a portfolio, a game jam entry, a link to share with friends or testers.
  • The catch: nobody finds it unless you bring the players yourself.

Publish on a game portal

Game portals host your game and put it in front of people who are already looking for something to play. Each has its own rules about ads, size, review and revenue, so read them before you upload.

  • Good for: reaching players without a marketing budget, and getting feedback fast.
  • The catch: you follow the portal's quality rules, and your game sits among many others, so its page needs to be good.

Step 3: Publish on Halftone (free)

  1. Create a free account and confirm your email.
  2. Open Upload a game and add your build: a single .html file or a .zip with index.html at the top level, up to 64 MB.
  3. Add a cover image, a description, one to six categories, and whether the game is played in portrait, landscape or both, on phones and on computers.
  4. Add a short gameplay clip. It is what plays in the feed when people swipe past your game.
  5. Submit. Every game is scanned automatically and played by a person; most reviews take a day or two.

Halftone games carry no ads or trackers, players need no account, and your game appears in a swipeable feed where people discover new games. Before you submit, run through our HTML5 game quality guidelines.

Step 4: Make a game page people click

  • Title: short, memorable and searchable. Avoid names that are hard to spell.
  • One-line summary: what you do in the game, in plain words. "Dodge the falling ink for as long as you can" beats "An experimental journey".
  • Cover: show the real game, readable at small sizes, with one clear focal point.
  • Gameplay clip: 5 to 15 seconds of the most exciting moment, no intro screens.
  • Description: how to play in a sentence or two, then what makes it different. Use the words people would search for, naturally.

Step 5: Get your first players

  • Share the direct link with friends, communities you belong to, and anywhere you posted your devlog.
  • Post a short clip on social video; a few seconds of gameplay travels further than a screenshot.
  • Join game jams. They bring players and feedback, and every jam entry is a finished game for your portfolio.
  • Watch real people play, even two or three. Where they get stuck is your next update.

Step 6: Update after launch

The great advantage of browser games is that an update reaches every player the next time they open the link. Fix the first problems quickly, upload the new version, and mention what changed in your description. On Halftone a new version is reviewed before it goes live; changing only the text and images goes live straight away.

Frequently asked questions

Can I publish an HTML5 game for free?

Yes. Free static hosts such as GitHub Pages, Cloudflare Pages and Netlify can serve your game folder, and portals like Halftone host and list your game at no cost.

What file do I upload for an HTML5 game?

A single .html file, or a .zip of your build folder with index.html at the top level. Use relative paths so it works from any address.

Can I publish a Unity game in the browser?

Yes. Build for the Web (WebGL) platform, test the build from a local server, enable Decompression Fallback if you use compression, and upload the build folder as a zip.

How do I get players for my browser game?

Publish on a portal that already has players, share the direct link and short gameplay clips, join game jams, and improve the game based on how real people play it.

Do I need my own website to publish a game?

No. A game portal gives your game its own page and link. A personal site is useful later, for a portfolio or a devlog.

Keep reading