Test store. Prices are the planned list prices stored as test data, license terms are drafts, and payments go to a Stripe test-mode account. No real money moves.

HTML5 Games for Your Website: Your Domain, Your Branding, No Portal Ads

There are two ways to put HTML5 games on your website: embed free games from a game portal, which come with the portal's ads, branding and terms, or license games and host them yourself. Our 50 games are the second kind: static builds you upload to your own hosting and embed with an iframe, with no third-party ads and a one-time license.

The six games above suit most general audiences: three puzzles, a football shootout, a drift racer and a farm sim. Whichever you choose, the build is a folder of static files. You upload it to the hosting you already use, embed it in a page, and players stay on your domain. This page compares that with free embeds, explains how it works and which license fits a blog, a school, a brand or a small portal.

Two ways to add HTML5 games to your website

Embed a free game from a portalLicense a game and host it yourself
Who hosts itThe portal's serversYour hosting, on your domain
AdsThe portal's ads, if its terms include themNone, unless you add your own
BrandingOften the portal's logo and links backYours: rename, reskin, recolor
AnalyticsThe portal'sYours, through your own provider
StabilityThe portal can change or remove the gameThe version you deploy stays as it is
Changing gameplayNot possibleFull TypeScript source
CostFree to embedA one-time license per game

Neither option is wrong. Free embeds are the fastest way to add a few games to a hobby site. Licensing makes sense when the games carry your brand, sit next to your own ads or sponsors, or need to keep working for years without surprises.

Free HTML5 games to add to your website: what to know

Many game portals and distributors publish embed codes: you copy an iframe snippet and their game runs inside your page from their servers. It costs nothing and takes minutes. The trade-offs are in the terms, so read them for each portal:

  • The portal usually decides the ads, and keeps the ad revenue.
  • Some terms limit commercial sites, require attribution or forbid removing branding.
  • You can't change the game, its language or its look.
  • Games can be updated, moved or taken down without notice to you.

Our games are not free embeds: we sell HTML5 games with full source code that you license and host yourself. If you need something free that you control, our free HTML game code gives you complete one-file games under the MIT license that you can host and change, and our list of free and open-source HTML5 games covers bigger projects (check each one's license).

Why self-host licensed HTML5 games on your website

  • No third-party ads. Ads appear only if you add them. Both licenses allow monetizing, and no ad network is built in, so you connect the one you already use.
  • Your branding. Rename, reskin, change colors and text. Many games keep content and balance in JSON data files, so a lot of changes need no code edits.
  • Your analytics. Analytics is an adapter you connect to your own provider, so play data lands in the tool you already use.
  • Your visitors stay yours. Players stay on your domain, with no outbound links you didn't choose.
  • No moving parts. The version you deploy doesn't change unless you update it. Under the draft terms, licenses include 12 months of updates and 6 months of integration support.

How it works with our static builds

  1. Try it. Play the demo on the product page and choose a license.
  2. Download. You get a ZIP with the TypeScript source, game data, tests, the shared packages it uses and a README with install, build, test and deploy steps.
  3. Build once. With Node.js and pnpm installed, run the build described in the README. The result is a folder of static files.
  4. Upload. Put that folder on your hosting: a static host or a folder on your existing site. There is no backend or database to run.
  5. Embed. Show the game in a page with an iframe, or link to it full-screen.

Step 3 needs someone comfortable running a Node.js build. A setup and launch service is planned, but it is not on sale yet. The buyer quick start shows the steps in full.

HTML5 game embed code for a self-hosted game

Once the build is on your server, the embed code is a plain iframe that points at it. This example assumes you uploaded Liquid Lab to /play/liquid-lab/:

embed.html
<iframe
  src="/play/liquid-lab/index.html?lang=fr&mute=1"
  title="Liquid Lab"
  style="border:0; width:100%; aspect-ratio:3/2"
  allow="fullscreen"
  loading="lazy"></iframe>

The query string uses our host parameters: lang picks the game's language, mute starts it silent and quality (auto, low or high) asks for a rendering level. For portrait games, change the aspect ratio to something like 9/16. MDN's iframe reference explains each attribute, and our guide to embedding an HTML5 game in a website covers WordPress, Wix and Google Sites.

Which license fits your website

Your siteLicenseWhat it covers
One website: a blog, a school site, a brand or campaign pageStandardOne end product with one production web deployment plus staging; reskinning and monetizing allowed
A games portal your company runsExtendedUp to 3 portal domains your company owns; no syndication to third-party portals
Websites you build for clientsExtendedUp to 5 end products, with source handoff for each client's own product

These are draft terms until legal review, and neither license allows redistributing or publicly uploading the source. Each license is one price per game, paid once, with no royalties. Compare them on the licensing page, see prices, or build a bundle for a volume discount. Portal operators will find more detail on games for publishers, and agencies on white-label games.

Compare Standard and Extended

Games for different kinds of websites

  • Sports sites: Penalty Clash is a 3D football shootout. Swipe to shoot with power and curl, then read the taker and dive to save.
  • Food, lifestyle and brand sites: Bakery Blast pairs match puzzles with bakery decorating, and Merge Café Story has players restore a café.
  • Schools and learning sites: calm logic puzzles such as Arrow Grid Escape, Cable Untangle and Liquid Lab. Our guide to HTML5 educational games covers the wider options.
  • Car and motoring sites: Drift District and Tiny Rally, both 3D racers built on Three.js.
  • Word search, trivia and quiz games: not in our catalog. Our free word game and quiz game code is MIT-licensed, so you can host and customize it.
  • Christmas and seasonal games: we have none today. Both licenses allow reskinning, so you can give a game a holiday theme yourself, or suggest a game for the catalog.

Frequently asked questions

Are there free HTML5 games I can embed on my website?

Yes, from game portals and distributors that publish embed codes. Those games are free to embed under each portal's terms, usually with its ads or branding, and they run from its servers. Our games are licensed, not free embeds: you host them yourself and decide the ads and branding. For free code you can host and change, see our MIT-licensed games.

How do I add an HTML5 game to my website?

Upload the game's build folder to your hosting, then add an iframe that points at its index.html, or link to it full-screen. Our embed guide shows the steps for common site builders.

Can I download HTML5 games and host them on my own website?

Yes, once you buy a license. The download is the full source project; you run the build once and upload the static files. No server-side code or database is needed, so it works on ordinary web hosting.

Can I show my own ads in the games?

Yes. Both licenses allow monetizing the game. No ad network is built in, so you connect your own provider. If you run a games portal on several domains, Extended is the license that covers it.

Is there a soccer game with embed code for my site?

Yes: Penalty Clash, a 3D penalty shootout with swipe controls. After licensing it, you host the build and embed it with an iframe like the one above.

Do you have word search, trivia or Christmas games for websites?

Not in the catalog today. Our free word and quiz game code is MIT-licensed and easy to restyle, and you can suggest a game on our roadmap. If you need a game built only for you, see exclusive game requests.