How to host an HTML website for free

Three free hosts for a plain HTML and CSS site: Cloudflare Pages, GitHub Pages and Netlify. Step-by-step setup and how to add your own domain.

Kitbase5 min read

A site made of HTML, CSS and a few images doesn't need a server, a database or a monthly plan. It's a folder of files, and several companies will serve that folder to the world for free, with HTTPS and a fast global network included.

This guide covers the three hosts worth using in 2026, what to check before you upload, and how to connect your own domain. Every Kitbase theme is a plain HTML and CSS site, so the steps below work for all of them.

Before you upload: check the folder

Most "my site is broken after upload" problems come from the folder, not the host. Spend two minutes on this first.

1. index.html must sit at the top of the folder. The host opens index.html when someone visits your address. If it's buried in a subfolder (my-site/site/index.html), visitors get a 404. Upload the folder that directly contains index.html.

A Kitbase archive has two versions inside: site/ (the finished demo with photos) and template/ (the same design with placeholders). Upload one of those folders, not the archive's top folder.

2. Open the site locally. Double-click index.html and click through every page. If a page or image is missing here, it will be missing online too.

3. Watch the capital letters. Windows and macOS don't care whether a file is called About.html or about.html. Web servers do. If a link says about.html but the file is About.html, the link works on your computer and fails online. Lowercase file names avoid the whole problem.

4. Use relative paths. Links like css/style.css or images/hero.jpg work everywhere. Paths that start with C:\ or file:// only work on your machine.

Option 1: Cloudflare Pages (our pick)

Cloudflare Pages is what we use for kitbase.design. The free plan has no bandwidth limit, so a post that suddenly gets popular won't cost you anything or take the site down.

  1. Create a free account at dash.cloudflare.com.
  2. Open Workers & Pages and click Create. Choose the Pages tab, then Upload assets (sometimes labelled "Drag and drop your files").
  3. Give the project a name. It becomes your address: my-studio.pages.dev.
  4. Drag in your site folder (the one with index.html) and click Deploy site.

About a minute later the site is live. To publish changes, open the project, click Create new deployment and upload the folder again. Older versions are kept, so you can roll back with one click.

The free plan allows up to 20,000 files per site and 25 MB per file. A typical theme has a few hundred files, so you're far below both.

If you later keep the site in a GitHub repository, Cloudflare can publish it automatically on every change. That's how kitbase.design itself is deployed.

Option 2: GitHub Pages

GitHub Pages is a good fit if you already use GitHub or want your site's history in version control.

  1. Create a free account at github.com and a new public repository, e.g. my-studio.
  2. Click Add file → Upload files and drag in the contents of your site folder, so index.html ends up at the top of the repository. Click Commit changes.
  3. Open Settings → Pages. Under Build and deployment, choose Deploy from a branch, pick main and / (root), then Save.

After a minute or two the site is at your-username.github.io/my-studio.

The site should stay under 1 GB, and GitHub suggests about 100 GB of traffic a month. On a free account the repository has to be public, so anyone can see your files. For a public website that's usually fine, but don't put private notes or passwords in it.

Option 3: Netlify Drop

Netlify has the quickest start of the three: no project setup, just a page where you drop a folder.

  1. Go to app.netlify.com/drop.
  2. Drag your site folder onto the page.
  3. You get a random address like jolly-otter-12ab34.netlify.app right away. Sign up (free) to keep the site and give it a better name.

Netlify's free plan comes with a monthly usage allowance. For a small business or portfolio site that's plenty, but if a page goes viral the site can pause until the next month. If you expect heavy traffic, Cloudflare Pages is the safer choice.

Which one should you pick?

Cloudflare PagesGitHub PagesNetlify
Upload in the browserYesYesYes
Free addressname.pages.devuser.github.io/reponame.netlify.app
BandwidthNo limit~100 GB / monthMonthly allowance
Own domain + HTTPSFreeFreeFree
Files can be privateYesNo (free plan)Yes

If you're unsure, start with Cloudflare Pages. It's free without traffic worries, and moving later is easy: it's the same folder on any host.

Add your own domain

A free .pages.dev or .github.io address is fine for testing, but a business site looks more trustworthy on its own domain. Domains cost roughly €10 to €15 a year from registrars such as Cloudflare, Namecheap or Porkbun.

  • Cloudflare Pages: open the project → Custom domains → Set up a custom domain. If the domain is already on Cloudflare, the DNS records are created for you.
  • GitHub Pages: Settings → Pages → Custom domain. Then add the DNS records GitHub shows at your registrar.
  • Netlify: Domain management → Add a domain, then follow the DNS steps.

HTTPS (the padlock) is set up automatically on all three, usually within minutes. If the domain doesn't load right away, wait an hour: DNS changes take a while to reach every network.

What about contact forms?

A static host serves files but doesn't process forms, so a contact form on its own won't send you anything. Two easy fixes:

  • Netlify Forms: on Netlify, add data-netlify="true" to the <form> tag and messages appear in your dashboard.
  • A form service such as Formspree or Web3Forms: you point the form's action at their address, and they email you each message. Most have a free tier for low volume.

Where to start

Pick a design from the free themes, for example the dark Ossa for a physio studio or the calm Nightjar for a sleep clinic. Change the text and photos in the template/ folder, then upload it to one of the hosts above. Your site can be live within the hour, and it won't cost you a cent.

Keep reading

All posts