Cloudflare Pages Free allows up to 20,000 files per site and 25 MiB max per file. Netlify has no total file limit but caps at 54,000 files per directory. Both serve static assets free and unlimited; check per-file counts before uploading a WebGL build with many small assets.
At a glance
| Fact | Value | Source |
|---|---|---|
| Cloudflare Pages Free file count limit | 20,000 files/site | developers.cloudflare.com |
| Cloudflare Pages max single file size | 25 MiB | developers.cloudflare.com |
| Per-directory file limit | 54,000 files | docs.netlify.com |
For an HTML5 game build, the number that matters most is per-file count and size, not bandwidth. Cloudflare Pages on the Free plan allows up to 20,000 files per site, and the maximum size for any single asset is 25 MiB. Netlify does not cap total files per deploy but does limit files to 54,000 per directory. On both platforms, requests to static assets are served free and unlimited – it’s Functions/serverless requests that count against quota, not your game’s HTML, JS, WASM, textures or audio files.
If you build the game with an AI coding agent, Playgama MCP lets the agent create the game entry, upload the build, and publish a sandbox playtest link directly from the cabinet, without you leaving the editor.
What do these limits mean for WebGL exports?
- Unity WebGL and Godot web exports typically ship a handful of large files (data, wasm, framework.js) rather than thousands of small ones, so the 20,000-file cap on Cloudflare Free is rarely the binding constraint – watch the 25 MiB per-file cap instead if your data file or texture atlas is large.
- If your build unpacks thousands of loose sprite frames (for example, exported per-frame PNG sequences from a tool like Aseprite) rather than an atlas, check the file count against Cloudflare’s 20,000 limit and Netlify’s 54,000-per-directory limit before deploying.
- Both platforms deploy atomically: nothing goes live until the full upload finishes, so a partial deploy won’t leave a broken build public.
- Terms and limits change – check the official pages linked above before you rely on a specific number.
Sources
- Limits · Cloudflare Pages docs
- Pricing · Cloudflare Pages docs
- Deploy overview | Netlify Docs
- Aseprite – Docs – Exporting
- Playgama Bridge SDK – Getting started
Related questions
Does Cloudflare Pages charge for serving my game’s static files?
No – on both free and paid Cloudflare Pages plans, requests to static assets are free and unlimited. Only Functions requests count against quota, per Cloudflare’s pricing docs.
Will Netlify reject my deploy if I have many small texture files?
Netlify has no total file limit per deploy, but caps at 54,000 files in a single directory. Spreading assets across subfolders or using an atlas avoids hitting that cap.
What happens if a single game asset exceeds Cloudflare’s file size limit?
Cloudflare Pages Free rejects any single asset over 25 MiB. Compress textures, split large data files, or use an atlas to stay under the limit.
Last updated: 30 September 2026