Share an HTML game as a link people can play in the browser
A browser game you built by hand, in a game jam, or with Claude or ChatGPT is usually one HTML file. Here is how to turn it into a link anyone can open and play, and what to check before you send it.
Small browser games are often a single .html file: a canvas, a script tag and some CSS. Sending that file as an attachment rarely works. Email clients and chat apps download it or show the source instead of running it: why HTML files do not open from email. A link that serves the file as a web page avoids that.
Make the game one file first
A FileShare Pro link serves one HTML file. Anything the game loads from your own disk, such as sprites, sounds or a separate game.js, has to be inside that file or on a public URL:
- ✓Scripts and styles: paste them into script and style tags in the page.
- ✓Images and sounds: embed small ones as data: URLs, or load them from a public URL.
- ✓Libraries such as Phaser, p5.js or three.js: load them from a CDN script tag. The page can load scripts and images from other sites.
Step-by-step instructions are in making an HTML file self-contained. Games written by Claude, ChatGPT or Gemini usually arrive as one file already; if one works in the chat but not once hosted, see AI pages that break when hosted.
Upload and share
Drag the .html file onto the FileShare Pro dashboard and copy the link. The page loads in View mode, so clicks and key presses go to the game. The free plan hosts 50 files of up to 100 MB each.
Shared pages carry a noindex tag, so a game you are still testing does not show up in search results.
What to check before you send it
- ✓Keyboard focus: the game runs inside a frame on the share page, so players need to click the game once before arrow keys or WASD reach it. A "Click to start" screen covers this.
- ✓Fullscreen: the frame allows fullscreen, so a fullscreen button that calls requestFullscreen works.
- ✓High scores and saves: localStorage works, and the data stays in each player’s own browser.
- ✓Phones: if the game needs a keyboard, say so on the start screen or add touch controls.
Collect feedback and ship fixes
Turn on comments and players can switch to Comment mode, click a heading or paragraph on the page and leave a note after typing a name, with no account: letting people comment on a web page.
When you fix a bug, upload the new version to the same file. The link stays the same, so players reload instead of waiting for a new link: updating a shared link without changing it. You can also see when the link was opened.
A game made of several HTML pages, such as a menu page and a level page, can be published as a mini-site: a multi-page site with no build step. A game exported from an engine as a folder of assets belongs on a host that serves folders, such as itch.io or GitHub Pages.
Frequently asked
Yes. Upload the .html file to FileShare Pro and send the link. Anyone can open it in a browser and play, with no account.
The game runs in a frame, and key presses go to the frame only after the player clicks it. Add a click-to-start screen so the first click gives the game focus.
Yes. localStorage works on the share link, and each player’s scores stay in their own browser.
Yes. The free plan hosts up to 50 files with guest comments included.
Drop the file, copy the link — live in seconds, free plan included.
Start sharing free