A clean and beginner-friendly explanation of Cloudflare Pages upload limits, deployment rules, WebP optimization, and website hosting tips. Learn how to build lightweight websites without worrying about storage limits.
Cloudflare Pages stores all files required for your website: HTML, CSS, JavaScript, images, fonts, and other static assets.
You can either:
| Category | Limit | Notes |
|---|---|---|
| Single File Size | 25 MiB | Large videos may require Cloudflare R2. |
| Total File Count | 20,000 Files | Large image collections may approach this limit. |
| Browser Upload | 1,000 Files | Drag & drop uploads have additional restrictions. |
| Total Deployment Size | 25 GiB | Total size per deployment. |
| Monthly Builds | 500 | Automatic deployment limit. |
Converting PNG or JPEG images into WebP can dramatically reduce file size while maintaining visual quality.
Recommended tools:
Image compression reduces file size — but it does NOT reduce the number of files.
If your website contains thousands of images, you may eventually reach the 20,000-file limit even if all images are compressed.
For beginners, Cloudflare Pages is one of the easiest ways to publish fast and secure static websites for free.
If you optimize your images and keep your project lightweight, you can comfortably run personal websites, AI tools, generators, blogs, and portfolios without major limitations.