Netlify (300 Credits), GitHub Pages & GitLab Pages 2026 Static Hosting Guide

Compare Netlify 2026 credit-based Free plan (300 credits/month), GitHub Pages (1 GB repo / 100 GB soft bandwidth), and GitLab Pages (400 CI minutes).

Table of contents
  1. 1.Netlify Free Plan (300 Monthly Credits Model)
  2. 2.GitHub Pages: The Undisputed Archive Standard
  3. 3.GitLab Pages: Private Repos Allowed for Free
  4. 4.Comparison Table
  5. 5.FAQ
Netlify (300 Credits), GitHub Pages & GitLab Pages 2026 Static Hosting Guide

When Cloudflare Pages or Vercel isn’t the fit, Netlify, GitHub Pages, and GitLab Pages remain foundational free hosts. Note that Netlify shifted to a credit-based Free plan starting late 2025/2026.

Netlify Free Plan (300 Monthly Credits Model)

Netlify replaced rigid legacy “100 GB + 300 build minutes” buckets with a unified 300 monthly credits allowance on its Free tier (automatically stops rather than auto-charging on Free):

  • How Credits Are Consumed: Production deploys, bandwidth GBs, edge/serverless compute invocations, and web requests each draw from your 300 credits/month pool.
  • Best Features: Built-in Netlify Forms (useful for quick static contact forms without setting up an email backend), instant branch previews, and easy one-click headers/redirects via _redirects.
  • Caveat: Heavy build frequency or media-rich sites drain credits noticeably faster than on Cloudflare Pages.

GitHub Pages: The Undisputed Archive Standard

  • Published Site Size: Soft limit 1 GB per site (individual files <= 100 MB inside Git).
  • Bandwidth Soft Limit: 100 GB/month soft cap; 10 builds/hour limit.
  • Commercial Constraint: GitHub Pages is designed for static personal, project, and documentation sites—never run e-commerce storefronts or password-protected SaaS portals there.
  • Custom Domain HTTPS: One-click Let’s Encrypt HTTPS for custom domains, pairing nicely with Cloudflare DNS in front.

GitLab Pages: Private Repos Allowed for Free

Unlike GitHub Free (which historically gated GitHub Pages on private repos behind Pro), GitLab Pages lets you keep source repositories completely Private while publishing the generated static site publicly (and even supports access-controlled Pages):

  • CI Build Quota: 400 compute minutes/month of shared Linux CI/CD runners + 10 GiB storage per project.
  • Bandwidth: Generous unbilled community hosting for static HTML/JS/CSS builds (subject to GitLab acceptable use limits).

Comparison Table

Feature Netlify Free GitHub Pages GitLab Pages
Monthly Allowance 300 Credits/month 100 GB/month (soft), 1 GB site 400 CI mins/month, 10 GiB repo
Private Repo Support Yes Public on Free (Pro for Private) Yes (Free!)
Built-in Dynamic Features Functions, Edge Functions, Forms Static only Static only
Hard Overage Protection Pauses on Free plan Soft throttling/warnings Pauses CI runners at 400m

FAQ

Why does Netlify use “credits” instead of a flat 100 GB bandwidth limit now?

Credits unify compute, deploys, requests, and bandwidth into one meter. For pure static HTML with small JS bundles, 300 credits goes far; for heavy CI rebuilds or large media downloads, Cloudflare Pages remains safer.

Which host is best if I want my Markdown drafts hidden in a private repo?

Use GitLab Pages, Cloudflare Pages, or Netlify—all three support private GitHub/GitLab repositories on $0 free plans while publishing public websites.

Spotted outdated pricing, stock, or expired coupons?See methodology & report an update →

Related articles