Skip to content
FormSubmit
Static hosting

GitHub Pages Limits in 2026: Bandwidth, Size and Usage Rules

GitHub Pages limits explained: 1 GB site size, 100 GB soft bandwidth, 10 builds an hour, public repo rules on GitHub Free and what's not allowed.

FormSubmit Team

6 min read

GitHub Pages limits table showing site size, bandwidth and build limits

GitHub Pages limits published sites to 1 GB and has a soft bandwidth limit of 100 GB a month and a soft limit of 10 builds an hour. Deployments time out after 10 minutes. On GitHub Free, Pages only works with public repositories, and GitHub's policy says Pages isn't for running an online business. Going over a soft limit can mean rate limiting, not a bill.

This post covers each limit, the difference between soft and hard limits, the usage policy wording and the workarounds worth knowing. For alternatives, see our guide to free static page hosting.

Limits checked 14 October 2026 against each provider's official docs. Free plans change often; check the linked pages before you commit.

What are the GitHub Pages limits?

These come from GitHub's GitHub Pages limits page and what is GitHub Pages.

LimitValueType
Published site size1 GBHard
Source repository size1 GB recommendedGuidance
Bandwidth100 GB per monthSoft
Builds10 per hour (not with custom Actions workflows)Soft
Deployment timeout10 minutesHard
User or organisation sites1 per accountHard
Project sites1 per repositoryHard
Repository visibility on GitHub FreePublic onlyPlan rule
Custom domain + HTTPSIncluded, with Enforce HTTPSFeature

GitHub Pages only serves static files. There are no serverless functions or built-in form handling, so anything dynamic needs a third-party service.

Soft limits vs hard limits on GitHub Pages

A hard limit is enforced automatically. A site over 1 GB won't publish, and a deployment that runs longer than 10 minutes fails.

A soft limit is a guideline GitHub uses to spot sites that are outgrowing the service. If you go over the 100 GB bandwidth or 10 builds per hour limits, rate limits may apply, in which case visitors can get an HTTP 429 response.

There's no billing for overages and no automatic pause. That makes GitHub Pages one of the more forgiving free hosts: a busy month doesn't take your site offline the way Netlify's credit limit does (see Netlify free plan limits).

What is the GitHub Pages bandwidth limit in practice?

100 GB a month is a lot for a static site. A documentation page or blog post with optimised images might be 1 to 2 MB, so 100 GB covers tens of thousands of page views, more with caching.

Sites that hit it usually serve large files: videos, datasets, installers or high-resolution image galleries. Those belong on a file host or release download service, with the Pages site linking to them.

What is the GitHub Pages size limit?

The published site can't exceed 1 GB, and GitHub recommends keeping the source repository under 1 GB as well. These are separate: a repo can hold source files, drafts and history that never get published.

If you're getting close:

  • Compress and resize images before committing.
  • Keep large binaries out of the repo.
  • Use a GitHub Actions workflow so only the build output is published, not the whole repo.

Can you use GitHub Pages with a private repo?

Only on a paid plan. According to GitHub's plans page:

PlanPages from public reposPages from private reposAccess-controlled private site
GitHub FreeYesNoNo
GitHub Pro / TeamYesYesNo
GitHub Enterprise CloudYesYesYes

Even when the repository is private on Pro or Team, the published site is still public to anyone with the URL. Only Enterprise Cloud can restrict who sees the site. Never put anything confidential in a Pages site.

What does GitHub's usage policy prohibit?

The limits page is direct about this. GitHub Pages is:

"not intended for or allowed to be used as a free web-hosting service to run your online business"

It also says Pages shouldn't be used for sensitive transactions, such as sending passwords or credit card numbers.

In practice, a personal site, portfolio, open-source project docs or a blog is exactly what Pages is for. A shop, a SaaS product or a site whose main purpose is selling is not. If your project is commercial, read free static hosting for commercial use before choosing a host.

How do you work around GitHub Pages limits?

Use GitHub Actions to publish. The 10 builds per hour soft limit doesn't apply when you build and publish with a custom GitHub Actions workflow. If you push often, switch the Pages source to GitHub Actions. Actions also lets you use any static site generator, not just Jekyll.

Keep deployments under 10 minutes. Cache dependencies in your workflow and avoid processing large media during the build.

Move heavy files elsewhere. Big downloads and videos are the main reason sites approach the bandwidth and size limits.

Use a different host when you outgrow it. If you need private repos on a free plan, previews for pull requests or serverless functions, compare GitHub Pages vs Netlify, or look at Cloudflare Pages free plan limits, which has no static bandwidth cap.

How do GitHub Pages limits compare with other free hosts?

GitHub PagesNetlify Free (credits)Cloudflare Pages Free
Bandwidth100 GB/month (soft)20 credits per GB from 300 creditsStatic requests unlimited
Built-in formsNoYes (unlimited)No
Preview deploymentsNot built inUnlimitedUnlimited
Over the limitPossible rate limitingAll sites pausedFunctions return Error 1027
Business sitesNot allowedNo restriction foundNo restriction found

GitHub Pages is the most forgiving at the limit, but the strictest on what the site may be used for.

Is GitHub Pages a good free host?

For personal and open-source projects, yes. It's free, stable, supports custom domains with HTTPS, and the soft limits are generous. The weak points are the public repo requirement on GitHub Free, the lack of previews and functions, and a usage policy that rules out business sites.

New to it? Our step-by-step guide shows how to host a website on GitHub Pages for free.

Add a working contact form to your static site

GitHub Pages only serves files, so a form that posts to your own page won't send anything. Point the form's action at a FormSubmit endpoint instead and submissions arrive by email, with spam filtering included. The free plan includes 1 form and 50 submissions a month, and our GitHub Pages contact form guide has copy-paste code.

Frequently asked questions

What is the GitHub Pages bandwidth limit?

GitHub Pages has a soft bandwidth limit of 100 GB per month. It is a soft limit, so going over it may lead to rate limiting rather than a bill or switch it off automatically.

What is the GitHub Pages size limit?

Published GitHub Pages sites can be no larger than 1 GB. GitHub also recommends keeping the source repository under 1 GB.

Can I use GitHub Pages with a private repository?

Not on GitHub Free. Free accounts can publish Pages sites only from public repositories. Publishing from private repositories needs GitHub Pro, Team or Enterprise, and access-controlled private sites need GitHub Enterprise Cloud.

How many times can GitHub Pages build per hour?

There is a soft limit of 10 builds per hour. It does not apply when you build and publish with a custom GitHub Actions workflow.

Can I use GitHub Pages for a business website?

Not if the site is the business. GitHub's limits page says Pages is not intended for or allowed to be used as a free web-hosting service to run your online business. Personal sites, portfolios and project documentation are fine.

What happens if I exceed GitHub Pages limits?

For the soft limits, rate limits may apply and visitors may get HTTP 429 responses. There is no billing and no automatic pause. Deployments that run longer than 10 minutes time out.

Related resources

Keep reading

Your form backend is 60 seconds away

Sign up with Google or email, create a form, paste the endpoint. Free forever for small sites — no credit card.