Blog · Technology

HTML5 Web Games: How Playing Without a Download Works

By the ImagineGames team · · 6 min read

In short. A web game, or HTML5 game, is a game that runs directly in the browser, on a phone or a computer, without going through an app store. You click a link and play. Long seen as inferior to apps, these games now match their quality for casual genres. That is what allows a media or brand website to offer games to its visitors without asking them to install anything.

What is an HTML5 game?

HTML5 is the common name for the set of standard technologies behind the modern web: HTML for structure, CSS for appearance, JavaScript for behavior. An HTML5 game is a game built with these technologies. It needs no extra software. Any recent browser can run it.

In practical terms, a web game is a page. It has an address, it can be shared with a link, and it can be opened from a search engine, a social network or another website.

What has happened since Flash?

In the 2000s, browser games relied on Flash, a plugin you had to install. Thousands of small free games made the fortune of dedicated gaming portals. Flash had two major flaws: recurring security vulnerabilities, and a total absence from the iPhone, which never supported it.

Its maker, Adobe, discontinued it on December 31, 2020. In the meantime, web standards had caught up:

TechnologyWhat it does in a game
CanvasDraws two-dimensional images and animations
WebGLUses the device's graphics chip for smooth rendering, in 2D and 3D
Web AudioPlays sound effects and music precisely
WebAssemblyRuns code almost as fast as a native app
Local storageSaves the player's progress on their device

The result: for a puzzle, card or logic game, nothing visibly separates a web version from an app anymore.

Web game or app: what's the difference?

Web gameApp
AccessOne link, game running in secondsStore search, download, install
UpdatesInstant, for everyoneDownloaded by the player
DiscoveryLinks, search engines, host websitesApp stores, advertising
FeesNo app store commissionUp to 30% on in-app purchases
NotificationsPossible, but less widely acceptedFully integrated with the phone
PerformanceExcellent for casual, limited for heavy gamesThe best possible
Offline playPossible, if planned forCommon
Home screen presenceAt the player's requestAutomatic

Neither one wins outright. Apps keep the edge for demanding games and for retaining players who are already hooked, thanks to their icon and notifications. The web wins at first contact: it is the shortest path between a person and a game.

Why does first contact matter so much?

Because every step loses players. To play an app, you have to open the store, find the game, start the download, wait, open the app and sometimes create an account. Some of the curious drop off at each step.

A web game removes every one of those steps. That makes all the difference in one specific situation: when the person did not come to play. A reader browsing a news site will not leave the article to install an app. They will happily play if the game is already there, on the page. Wordle proved it in 2021: a simple website, with no app, played by millions of people within a few weeks.

Can a web game be just as good?

For casual genres, yes, as long as it is designed for phones. Here are the criteria we apply:

  1. Fast loading. The game must be playable in under three seconds on an ordinary mobile network. That means compressed images, lightweight code and progressive loading: the first level first, everything else after.
  2. Smoothness. Animations must hold 60 frames per second, including on a four- or five-year-old entry-level phone.
  3. Touch-first design. Large tap targets, simple gestures, and a game that fits on the screen without scrolling, in portrait mode.
  4. Resume. A player who closes the tab and comes back must find their game where they left it.
  5. Efficiency. A game that drains the battery or heats up the phone will get closed.

The difference between a bad web game and a good one is not the technology. It is the care that goes into it: most mediocre web games are desktop games that have simply been shrunk down.

What are the limitations?

They exist, and it is better to know them.

What is a progressive web app?

A progressive web app, often shortened to PWA, is a website that can behave like an app: it can be added to the home screen, open in full screen, work offline and, under certain conditions, send notifications. It is a way to close part of the gap with apps without going through a store.

For a daily game, it is a good compromise: the player discovers the game through a link, then installs it in one tap if they want to come back to it every morning.

Why are media companies and brands interested in web games?

Because a web game can live inside another website. It plugs into an existing page, under the address and in the colors of the site hosting it. Visitors never leave the site, never switch universes, never go through a store.

Three practical consequences:

The game can later be brought into the outlet's own app, as long as this is planned for: advertising and consent work differently there than in a browser. We explain why media companies are doing this in Why media companies are launching their own games.

How does a web game make money?

Mostly through advertising: interstitials between levels and rewarded videos that players opt into. Ad networks offer formats designed for web games. Revenue per impression is generally lower than in an app, but a web game has no store commission and no install costs to recoup. See How a casual game makes money.

Frequently asked questions

Do HTML5 games work on iPhone?

Yes. They work in Safari and in every browser on the iPhone, just as they do on Android and on computers.

Do you need an internet connection?

For the first load, yes. A game can then be designed to work offline.

Is a web game less secure than an app?

No. It runs inside the browser, which isolates it from the rest of the phone. It has no access to your contacts or files.

Can you have both a web game and an app?

Yes. The same game can be offered on the web for discovery and as an app for regular players.

Are web games indexed by Google?

The page hosting the game is, like any page. That is an advantage: a web game can be found through a search, an app cannot.

What is the difference between a web game, an HTML5 game and a browser game?

In everyday usage, none. All three terms refer to a game you can play without installing anything.

Further reading

All articles