๐Ÿ†“ Free Options

Free Static Site Hosting: When You Don't Need a Paid Host at All

Short answer: If your site is a set of finished files (HTML, CSS, JavaScript and images) with no database or server-side code, you can often host it for free on GitHub Pages, Cloudflare Pages or Netlify, custom domain and HTTPS included. Free stops making sense when you need WordPress, a database, logins, server-side forms or a store. This guide explains the difference, the limits each platform publishes, and a checklist to decide.

Key takeaways

  • A static site is a folder of ready-made files. No PHP, no database, nothing generated on the server per visit.
  • GitHub Pages, Cloudflare Pages and Netlify all offer free static hosting with custom domains and HTTPS, as of this writing.
  • Each has published limits: site size, builds, bandwidth or usage credits. Read them on the official pages before you commit.
  • GitHub Pages is not meant as free hosting for an online business, e-commerce or commercial SaaS, per GitHub's own docs.
  • WordPress, databases, user accounts and checkout all need a real host or a paid platform.

What a static site is (and isn't)

A static site is a collection of finished files. When someone visits, the server just hands over the same HTML, CSS, JavaScript and images it was given. Nothing is assembled on the fly.

A dynamic site, like a WordPress install, builds each page on request. PHP code runs, the database gets queried, and the server stitches the result together. That needs a server environment that can run code and store data, which is what traditional web hosting sells you.

Static doesn't mean boring. JavaScript still runs in the visitor's browser, so you can have animations, galleries and embedded tools. And static site generators let you write in simple text files and build them into a full site, which is how many blogs and documentation sites work. The key test: does anything need to happen on the server when a visitor shows up? If no, you're static.

When free hosting genuinely works

Free static hosting is a strong fit for:

  • Personal portfolios and resumes
  • Single-page landing pages for a project, event or launch
  • Documentation and project sites
  • Blogs built with a static site generator
  • Simple brochure sites for a club, side project or small group

It's a poor fit when the site has to remember things: who's logged in, what's in a cart, what someone submitted last week. That's server work, and free static hosts either don't do it or meter it.

Hosting marketing check: Hosting sales pages rarely ask whether your site even needs a server. If yours is, in practice, a handful of static pages, compare free static hosting against a hosting plan's renewal price before you sign up for three years.

GitHub Pages, Cloudflare Pages and Netlify compared

All three can serve a static site for free. They differ in how you deploy and in what they cap. Figures below are from each provider's official pages as of this writing. Limits change, so click through before you rely on them.

PlatformFree tier limits (as of this writing)Watch for
GitHub PagesPublished site no larger than 1 GB; source repo recommended under 1 GB; deployments time out after 10 minutes; soft bandwidth limit of 100 GB per month; soft limit of 10 builds per hour (not applied to custom GitHub Actions workflows)๐Ÿšฉ Not for online business or e-commerce
Cloudflare Pages500 builds per month; 1 concurrent build; 20-minute build timeout; 20,000 files per site; 25 MiB max per file; 100 custom domains per project; 100 projects per accountโšก Apex domain needs Cloudflare DNS
Netlify (Free plan)300 credits per month shared across production deploys, compute, form submissions, bandwidth and web requests; bandwidth metered at 20 credits per GBโšก Site pauses when credits run out

Sources: GitHub Pages limits, Cloudflare Pages limits, Netlify pricing.

GitHub Pages

You push your files to a GitHub repository and GitHub publishes them. It's simple if you already use Git. The catch is the use policy: GitHub's docs say Pages is not intended as free hosting for an online business, an e-commerce site, or any site primarily aimed at commercial transactions or commercial software as a service. They also say Pages sites shouldn't handle sensitive transactions like passwords or credit card numbers.

Cloudflare Pages

You connect a Git repository or upload a built folder, and Cloudflare serves it from its network. The free plan caps builds and files rather than listing a bandwidth cap on the limits page. If you add Pages Functions (small bits of server-side code), Cloudflare says those requests count toward your Workers plan quota, so that part isn't unlimited.

Netlify

Netlify's Free plan runs on a monthly pool of credits. Per its pricing page, deploys, bandwidth, form submissions, compute and web requests all draw from the same 300 credits. You get usage alerts as you approach the limit, and limits are hard on Free, so you won't be charged. Instead, the site pauses.

Custom domains and free HTTPS

You don't have to live on a github.io, pages.dev or netlify.app address. All three let you attach your own domain, and you don't need to buy an SSL certificate. (More on that in do you need to pay for an SSL certificate?)

  • GitHub Pages: GitHub says all Pages sites, including correctly configured custom domains, support HTTPS. After its DNS check passes, it requests a certificate from Let's Encrypt, and repo admins can turn on "Enforce HTTPS" to redirect HTTP traffic. Stray A, AAAA or CNAME records can block the certificate, and the full domain must be under 64 characters. (GitHub Docs)
  • Cloudflare Pages: A subdomain like www can point to your pages.dev address with a CNAME at any DNS provider. An apex domain (example.com with nothing in front) requires adding the site to Cloudflare as a zone and switching your nameservers to Cloudflare. CAA records that don't allow Cloudflare's certificate issuance can block setup. (Cloudflare Docs)
  • Netlify: Its pricing page lists custom domains with SSL as included on the Free plan.

Keep your domain yours. Register the domain at a registrar in your own name and point it at the free host. If you ever outgrow the platform, you change a DNS record instead of losing your address.

What happens when you go over

Free tiers fail differently, and you should know which failure you're signing up for:

  • GitHub Pages: Its limits page says GitHub may stop serving a site that exceeds the quotas, or suggest ways to reduce load such as putting a third-party CDN in front. Rate-limited requests get an HTTP 429 response.
  • Netlify: A Free site that hits its monthly credit limit is paused until the next billing cycle, unless you upgrade. Netlify's pricing page also says that if one project goes over, all projects on the account pause.
  • Cloudflare Pages: The published limits are mostly about builds and files. Check the limits page for how the monthly build cap and Functions quotas are enforced on your plan.

For a portfolio or docs site, you may never get close. For anything that could go viral or that earns money, plan for the ceiling now.

What static hosting can't do (and why WordPress needs a real host)

You needStatic host alone?Usual answer
Contact formโšก Not by itselfA form service or the platform's form feature (Netlify meters submissions in credits)
WordPressโœ— NoWordPress runs on PHP with a MySQL or MariaDB database, so it needs a host that runs both
Database, logins, member areasโœ— NoA real server or a paid backend service
Online store or checkoutโœ— NoA commerce platform or proper hosting; GitHub Pages rules it out
Email at your domainโœ— NoA separate email provider
Blog with no comments or loginsโœ“ YesA static site generator

WordPress's own requirements page lists PHP and MySQL or MariaDB. (WordPress.org Requirements) If you want WordPress without managing a server, that's a different decision. See website builder vs. web hosting for the trade-offs.

Do you need paid hosting? A quick checklist

You can probably host free if every one of these is true:

  • The site is plain files, or built into plain files by a static site generator
  • No logins, member areas, carts or checkout
  • Forms are handled by an outside service or a platform feature whose limits you've checked
  • You aren't running WordPress or any other PHP and database software
  • Your use fits the platform's terms, especially GitHub's rules on commercial use
  • You've read the free tier's limits and you're comfortable with what happens if you exceed them
  • Your domain is registered in your name, so you can move later

If any box stays unchecked, you need a host that runs server-side code. The hosting types explainer breaks down the options.

FAQ

Can I host a website for free with a custom domain?

Yes, if it's a static site. GitHub Pages, Cloudflare Pages and Netlify all support custom domains with HTTPS on their free tiers as of this writing. You still pay for the domain registration itself.

Is GitHub Pages allowed for business websites?

GitHub's documentation says Pages is not intended as free hosting for an online business, an e-commerce site, or a site primarily aimed at commercial transactions or commercial SaaS. Read GitHub's terms before using it for anything commercial.

Can I run WordPress on free static hosting?

No. WordPress needs PHP and a MySQL or MariaDB database, which static hosts don't provide. You'd need a web host that runs both, or a hosted WordPress service.

Do free static hosts include an SSL certificate?

Yes. GitHub Pages provisions certificates from Let's Encrypt for correctly configured custom domains, and Netlify lists custom domains with SSL on its Free plan. Cloudflare Pages handles certificates for custom domains, though restrictive CAA records can block setup.

What happens if my free static site gets too much traffic?

It depends on the platform. GitHub may stop serving a site that exceeds its limits, and Netlify pauses Free sites that run out of monthly credits until the next cycle. Check each platform's limits page before you launch.

Can a static site have a contact form?

Not on its own, because there's no server code to receive the submission. You can use a third-party form service or a platform feature like Netlify Forms, which draws from your monthly credits.

Not sure if your site counts as static? Ask us and we'll take a look.

Sources

  1. GitHub Pages limits โ€” GitHub Docs
  2. Securing your GitHub Pages site with HTTPS โ€” GitHub Docs
  3. Limits โ€” Cloudflare Pages Docs
  4. Custom domains โ€” Cloudflare Pages Docs
  5. Pricing and Free plan FAQ โ€” Netlify
  6. Requirements โ€” WordPress.org