WebGL Hosting

Ship your game to the browser

Export a WebGL build, upload it with one command, and let anyone play it right on your game's page — no downloads.

1. Export your game to WebGL

Unity: Build Settings → WebGL. Godot: Export → Web. You need a folder with index.html at the root. For the first try, use Gzip or Disabled compression for easiest compatibility.

2. Create an API key

In your profile → API Keys, create a key with the webgl:upload and webgl:deploy scopes. Copy it — it's shown only once.

scopes
webgl:upload   webgl:deploy

3. Get the CLI

Easiest: download the ready-to-run tool for your OS and run it — no install needed. Or, if you have the .NET 8 SDK, add it as a global tool.

or via dotnet
dotnet tool install --global TGN.CLI

4. Log in & deploy

Log in with your key, then deploy your build folder. Grab the ready-made command — with your project ID — from the Manage WebGL tab on your game's page. The CLI does the rest: zip → upload → extract → activate. (Use --precompress only for Brotli/Gzip-compressed builds.)

terminal
tgn auth login tgn_k1_xxxxx
tgn deploy ./Build --project <PROJECT_ID> --precompress

5. Publish it

In the Manage WebGL tab on your game's page, hit “Publish” → a “Play now” tab appears and any visitor plays right in the browser.

Limits

Storage per developer
300 MB
Max upload size
~500 MB
Versions kept
10
Entry point
index.html

Safe by design

  • Runs in a sandboxed iframe on a separate domain.
  • Versioned — roll back to any build instantly.
  • Any engine: Unity, Godot, or any HTML5 build.

Frequently asked questions

How do I export my game from Unity to WebGL?

+

In Unity open File → Build Settings, select the WebGL platform, hit Switch Platform, then Build. You get a folder with index.html at its root — that folder is exactly what you upload. For a first build, set compression to Gzip or Disabled in Player Settings for the easiest compatibility.

Do I need a CLI tool to upload my game?

+

It's not mandatory: you can upload a .zip directly from the Manage WebGL tab in the browser. The CLI is just the fastest path — one command handles zip, upload, extraction and activation — and it ships as a ready-to-run binary for Windows, macOS and Linux with no install, or as a dotnet global tool if you have the .NET 8 SDK.

How much free hosting storage do I get?

+

Every developer account gets 300 MB of hosting for free, and a single uploaded archive can be up to 500 MB. If you need more room, you can submit a custom-quota request from the quota management page.

Can I embed my game in another website?

+

Yes. Your game is served from a separate domain inside a sandboxed iframe, so you can embed it with an iframe tag on any site you own while it stays isolated from your parent page's cookies and data. There is no exclusivity — the same build can be published anywhere else too.

Ready to ship your game?

Start from your project page on TGN and add a WebGL build.

Browse all articles →