Skip to main content

Repo static hosting · Static & Jamstack

No cardNo end date

GitHub Pages free tier

Publishes a static site straight from a GitHub repository.

Checked against GitHub Pages's official pages on 1 Nov 2026. Free tiers change, so confirm before you commit.

What GitHub Pages's free plan gives you

Free for public repositories, with HTTPS, custom domains and builds through Jekyll or GitHub Actions.

GitHub Pages free plan limits
LimitFree plan
Published site size1 GB
Bandwidth100 GB / month (soft)
Builds10 / hour (soft, branch builds)
Deploy timeout10 minutes

The catch

On a free account the repo must be public, and GitHub says Pages is not meant for online shops or SaaS.

Pros and cons

Good

  • Completely free
  • Lives next to your code
  • Simple custom-domain setup

Watch out

  • Static files only
  • Private repos need a paid plan
  • Not allowed for commercial stores

How to start on GitHub Pages

  1. 1

    Create a public repository

  2. 2

    Add an index.html or a site generator project

  3. 3

    Open Settings, then Pages

  4. 4

    Pick a branch or GitHub Actions as the source and save

GitHub Pages compared

GitHub Pages: questions

Is GitHub Pages free?

Free for public repositories, with HTTPS, custom domains and builds through Jekyll or GitHub Actions. Free plan ends: Never.

Does GitHub Pages need a credit card?

No, you can sign up for GitHub Pages's free plan without a card.

What is the catch with GitHub Pages's free plan?

On a free account the repo must be public, and GitHub says Pages is not meant for online shops or SaaS.

Can I use my own domain on GitHub Pages for free?

Yes, you can connect your own domain on the free plan. You also get a free address at *.github.io.

What are the best free alternatives to GitHub Pages?

Cloudflare Pages, Netlify, Codeberg Pages. Compare their limits on this page or open each one for details.

Alternatives to GitHub Pages

  • Cloudflare Pages

    Edge static hosting

    100

    Static and full-stack sites served from Cloudflare's network, with no bandwidth charge.

    Bandwidth
    Unlimited
    Builds
    500 / month, 1 at a time
    Files per site
    20,000

    The catch: A site cannot hold more than 20,000 files or any single file over 25 MiB on the free plan.

    No cardNo end date
    Paid from $5/mo (Workers Paid)
  • Netlify

    Static + serverless

    100

    Git-based hosting for static and Jamstack sites, with functions, forms and edge features.

    Monthly credits
    300
    Production deploy
    15 credits each
    Bandwidth
    Charged at 20 credits per GB

    The catch: Every production deploy costs 15 credits, so about 20 deploys a month uses the whole free allowance before any traffic.

    No cardNo end date
    Paid from $9/mo (Personal)
  • Codeberg Pages

    Non-profit pages

    93

    Static hosting from a Codeberg repository, run by a German non-profit.

    Price
    Free, donation funded
    Repo
    Must be public
    Publish method
    Webhook on a pages branch or Forgejo Actions

    The catch: New users must use the new git-pages setup, which needs a webhook; the old v2 server is closed to new users.

    No cardNo end date
    Paid from Usage-based
  • GitLab Pages

    Repo static hosting

    93

    Static sites built by GitLab CI/CD and served from a GitLab project.

    Max site size
    1 GB (artifact limit)
    Custom domains
    150 per site
    CI/CD minutes
    400 / month (Free tier)

    The catch: Builds run on the shared 400 CI/CD minutes a month, which other pipelines also use.

    No cardNo end date
    Paid from $29/mo (Premium (per user, billed yearly))
  • Sevalla Static Sites

    Static hosting

    93

    Static hosting from the team behind Kinsta, deployed from Git.

    Sites
    100 per account
    Bandwidth
    100 GB / month
    Build minutes
    600 / month

    The catch: Only static sites are free; app hosting starts at $5 a month after a trial.

    No cardNo end date
    Paid from $5/mo (Application hosting)
  • Surge

    CLI static hosting

    93

    Publishes any local folder as a website with one terminal command.

    Projects
    Unlimited
    Project size
    450 MB
    Files per project
    10,100

    The catch: Redirects, rewrites and password protection are only on the $30 Pro plan.

    No cardNo end date
    Paid from $30/mo (Pro)

Tools for your new site