Website and frontend hosting

Free and cheap places to host a website, landing page or single-page app. Read the commercial-use rules before you launch a paid product.

4 tools Prices change. Each tool shows the month its facts were checked.

The biggest trap here is not price, it is the rules. GitHub Pages and the Vercel Hobby plan do not allow commercial use. If your site sells something, pick a host whose free plan allows it, or budget for a paid plan. See Hosting your website for the full comparison.

At a glance

Website and frontend hosting compared
ToolPricingBest for
Cloudflare Pages Start hereFree tier Free plan includes 500 builds a month, one build at a time, and up to 20,000 files per site.Most indie landing pages and web apps, including commercial ones.
GitHub PagesFree Free. On free GitHub accounts the repository must be public. Soft limits of 1 GB site size and 100 GB a month bandwidth.Docs, portfolios, open-source projects and free tools. Not for selling things.
NetlifyFree tier Free plan has 300 credits a month with a hard stop. A production deploy costs 15 credits and each GB of bandwidth costs 20.Sites that want built-in form handling and easy previews.
VercelFree tier Hobby is free but limited to personal, non-commercial use. Pro is $20 per developer seat per month plus usage.Next.js projects, once you are on a paid plan for anything commercial.

Cloudflare Pages

Start hereFree tier

Static site and frontend hosting on Cloudflare's network, with builds from GitHub and a generous free plan.

Best for
Most indie landing pages and web apps, including commercial ones.
Pricing
Free plan includes 500 builds a month, one build at a time, and up to 20,000 files per site. Pricing page for Cloudflare Pages
Facts checked

Strengths

  • Static traffic is not metered on the free plan, so a launch-day spike does not cost you.
  • Custom domains, HTTPS and preview links for every branch.
  • Add server code later with Cloudflare Workers.

Trade-offs

  • Build settings can be confusing for the first project.
  • Single files above 25 MiB must live elsewhere, such as R2.

GitHub Pages

Free

Free hosting for a website straight from a GitHub repository, with your own domain and HTTPS.

Best for
Docs, portfolios, open-source projects and free tools. Not for selling things.
Pricing
Free. On free GitHub accounts the repository must be public. Soft limits of 1 GB site size and 100 GB a month bandwidth. Pricing page for GitHub Pages
Facts checked

Strengths

  • No extra account; it lives next to your code.
  • Edit and publish from the GitHub website alone.
  • Free custom domain with automatic HTTPS.

Trade-offs

  • GitHub's terms say it is not for online businesses, e-commerce or commercial SaaS.
  • You cannot set HTTP response headers such as a full Content-Security-Policy.
  • Private repositories need a paid GitHub plan.

Netlify

Free tier

Popular frontend platform with forms, functions and deploy previews, priced in monthly credits.

Best for
Sites that want built-in form handling and easy previews.
Pricing
Free plan has 300 credits a month with a hard stop. A production deploy costs 15 credits and each GB of bandwidth costs 20. Pricing page for Netlify
Facts checked

Strengths

  • Deploy previews and form submissions are not charged in credits.
  • Smooth setup from GitHub.

Trade-offs

  • Credits run out faster than you expect if you deploy often or get traffic.
  • The free plan cannot buy extra credits, so the site can stop until next month.

Vercel

Free tier

The company behind Next.js. Excellent developer experience and previews for frontend apps.

Best for
Next.js projects, once you are on a paid plan for anything commercial.
Pricing
Hobby is free but limited to personal, non-commercial use. Pro is $20 per developer seat per month plus usage. Pricing page for Vercel
Facts checked

Strengths

  • First-class support for Next.js features.
  • Preview deployment for every pull request.
  • Spend management controls on Pro.

Trade-offs

  • The free Hobby plan forbids commercial use.
  • When Hobby limits are hit, features can pause for up to 30 days.