Getting Started · Free guide

How to make a free website you actually own (step by step)

You can build and publish an ad-free website for $0/month by storing your HTML or Astro source files in a free GitHub repository and connecting them to Cloudflare Pages. You get a free staging subdomain (*.pages.dev) right away, and you only pay wholesale registrar fees (about $11.17/yr for a standard .com on Cloudflare Registrar) if you attach a custom domain.

By StaticLaunch · Four Media Group LLC

Choose your starting format: plain HTML or Astro

For a one-page business card or temporary landing page, start with a single starter.html file that needs zero build tools. For a multi-page business site with shared headers, footers, navigation, and SEO metadata, start with Astro so global edits take seconds cleanly.

  • Download one of our free HTML or Astro starters with MIT commercial rights.
  • Edit your business name, services, city/state, contact links, and CSS variables.
  • Preview everything locally before connecting GitHub.

Store your source code in your own GitHub account

Create a free GitHub account secured with two-factor authentication (2FA), start a dedicated repository for your website, and commit your files to branch main. Keeping the repo in your own account means nobody can hold your source code hostage.

Example
git init
git add .
git commit -m "Initial website launch"
git push -u origin main

Deploy automatically to Cloudflare Pages for $0/month

Inside your own Cloudflare account, open Workers & Pages, connect only that GitHub repository, set production branch to main, build command to npm run build (or leave blank for plain HTML), and output directory to dist (or /). Within about a minute, your site goes live over HTTPS globally.

Honest trade-offs to weigh upfront

Static sites excel for marketing websites, local businesses, guides, portfolios, and documentation. Compared to drag-and-drop website builders, working with GitHub and Astro involves an initial learning curve. Dynamic member logins, live databases, or high-SKU carts also require external APIs or Worker endpoints.

  • Zero monthly platform rent, zero builder ads, and 100% file portability.
  • More initial setup than Wix or Carrd, offset by free step-by-step lessons and AI prompts.

Add a custom domain only when you are ready

Leave your site on its free *.pages.dev preview URL while polishing copy and testing mobile layouts. When ready for customers, attach your domain in Cloudflare Pages Custom Domains while backing up existing MX/SPF/DKIM email DNS records first.

Common questions

Can I really launch a free website without entering a credit card?

Yes. Creating a GitHub Free account, building locally or using starter HTML, and publishing on Cloudflare Pages *.pages.dev require $0/month hosting fees within documented free-tier limits. You only pay when buying a custom domain registration.

What if I am not comfortable coding from scratch?

Use a pre-built StaticLaunch™ starter template in Design Lab, edit copy directly in GitHub's web editor, or follow AGENTS.md prompts with ChatGPT or Claude while keeping the final code inside your own repo.

References

Provider interfaces and limits can change. Consult the original documentation before changing production settings.