Browser game file size limits
A browser game can be up to 500 MB unpacked on itch.io, with no single file over 200 MB, and up to 1 GB as a GitHub Pages site; Cloudflare Pages takes files of up to 25 MiB each, and Vercel's free Hobby plan takes 100 MB of source files from its CLI. Netlify Drop works best under 50 MB. To fit, serve the build compressed: Godot's .wasm file shrinks to around a quarter of its size with gzip, and Unity builds with gzip or Brotli. Wherever it's hosted, list the link on Foundplay for free.
Checked November 22, 2026. Written by Foundplay, a game discovery platform for free browser games.
Make the build smaller
- Godot: the .wasm file compresses to around a quarter of its size with gzip. Godot recommends serving the .pck and .wasm files compressed, Brotli where the host supports it, and an export template built with unused features turned off. Source: Godot: Exporting for the Web.
- Unity: release builds use gzip by default. Brotli files are smaller but slower to build, and Chrome and Firefox only decode Brotli natively over HTTPS. Development builds aren't compressed. Source: Unity: Deploy a Web application.
- Unity: the host has to send Content-Encoding: gzip with .gz files and Content-Encoding: br with .br files. Where you can't set that, Unity's Decompression Fallback decodes the files in the page, with a larger loader. Source: Unity: Deploy a Web application.
- itch.io sets that header itself: gzip when a file is gzip compressed, and br for a file whose name ends in .br. Source: itch.io: HTML5 games.
The limits side by side
| Host | Whole game | One file | Number of files | Also |
|---|---|---|---|---|
| itch.ioSources: HTML5 gamesChecked November 22, 2026. | 500 MB unpacked | 200 MB | 1,000 after unzipping | File names up to 240 characters with their path. Its CDN gzips html, js, css, wasm, pck and other files you upload uncompressed, and serves a .br file as Brotli. |
| GitHub PagesSources: Limits, Large filesChecked November 22, 2026. | 1 GB for the published site | 100 MiB pushed with Git, 25 MiB added in the browser | A soft limit of 100 GB of traffic a month and 10 builds an hour, unless you publish with your own GitHub Actions workflow. A deploy stops after 10 minutes. | |
| Cloudflare PagesSources: Limits, Direct UploadChecked November 22, 2026. | 25 MiB | 20,000 on the Free plan and 100,000 on paid plans. 1,000 when you drag and drop | ||
| NetlifySources: Netlify DropChecked November 22, 2026. | With Netlify Drop, deploys under 50 MB work best | With Netlify Drop, files over 10 MB may get a deploy stuck | For larger projects, Netlify points to its CLI. | |
| VercelSources: Limits, PricingChecked November 22, 2026. | 100 MB of source files from its CLI on the free Hobby plan, 1 GB on Pro | 15,000 source files from its CLI, more with --archive=tgz |
- Whole game
- 500 MB unpacked
- One file
- 200 MB
- Number of files
- 1,000 after unzipping
- Also
- File names up to 240 characters with their path. Its CDN gzips html, js, css, wasm, pck and other files you upload uncompressed, and serves a .br file as Brotli.
Sources: HTML5 games
Checked November 22, 2026.
- Whole game
- 1 GB for the published site
- One file
- 100 MiB pushed with Git, 25 MiB added in the browser
- Also
- A soft limit of 100 GB of traffic a month and 10 builds an hour, unless you publish with your own GitHub Actions workflow. A deploy stops after 10 minutes.
Sources: Limits, Large files
Checked November 22, 2026.
- One file
- 25 MiB
- Number of files
- 20,000 on the Free plan and 100,000 on paid plans. 1,000 when you drag and drop
Sources: Limits, Direct Upload
Checked November 22, 2026.
- Whole game
- With Netlify Drop, deploys under 50 MB work best
- One file
- With Netlify Drop, files over 10 MB may get a deploy stuck
- Also
- For larger projects, Netlify points to its CLI.
Sources: Netlify Drop
Checked November 22, 2026.
- Whole game
- 100 MB of source files from its CLI on the free Hobby plan, 1 GB on Pro
- Number of files
- 15,000 source files from its CLI, more with --archive=tgz
Checked November 22, 2026.
Questions
- How big can an HTML5 game be on itch.io?
- Up to 500 MB unpacked, in up to 1,000 files, with no single file over 200 MB. A file name with its path can be up to 240 characters.
- What is the file size limit on GitHub Pages?
- A published site can be up to 1 GB. GitHub blocks files over 100 MiB, and a file added in the browser can be up to 25 MiB. There is a soft limit of 100 GB of traffic a month.
- What is the file size limit on Cloudflare Pages?
- Each file can be up to 25 MiB. Drag and drop takes up to 1,000 files, and its Wrangler tool up to 20,000 on the Free plan.
- How do I make my Godot or Unity web build smaller?
- Serve it compressed. Godot's .wasm file shrinks to around a quarter of its size with gzip, and Godot suggests an export template built with unused features turned off. Unity builds with gzip by default or with Brotli, which is smaller; the host then has to send the matching Content-Encoding header.
- Does Foundplay have a file size limit?
- No. Foundplay doesn't take files: it lists the link where the game plays, for free. Where to upload your HTML5 game compares the hosts.
More for makers: Make your browser game load faster, Where to upload your HTML5 game, Make your browser game work on phones, Cross-origin isolation for browser games, Embed a browser game on your site, List your browser game for free and Submit a game to Foundplay.