How to build a website for free
Make your own website for free in an afternoon: pick a free website template, publish it on a free host, and add a contact form that really sends. No coding course, no server, no monthly bill.
Step 1: Pick a free website template
Free HTML templates give you a finished, professional design in minutes. Download one, open the folder and change the texts and images in index.html with any text editor.
- Plain HTML and CSS, no build step needed
- Responsive, so it works on phones too
- Keep the credit line if the license asks for it
Pick by purpose: a simple website template or a free one page website for a small personal page, a personal website template or a portfolio theme to show your work, and a landing page for a product or an event.
Step 2: Publish your website for free
Cloudflare Pages and GitHub Pages both offer free website hosting for static sites, with HTTPS and a free web address right away. Cloudflare Pages takes a folder by drag and drop, GitHub Pages suits you if you already use GitHub.
- Create a free Cloudflare accountSign up at dash.cloudflare.com and confirm your email.
- Open Workers and PagesChoose Create application, then Get started next to Drag and drop your files.
- Upload your folderName the project, drag in the template folder with index.html at the top and press Deploy site.
- Open your linkYour site is live at your-project.pages.dev. Visit site opens it in a new tab.

- Optional: use your own domainOpen Custom domains and choose Set up a custom domain, then follow the DNS steps.

Screenshots: Cloudflare Docs, CC BY 4.0, cropped and highlighted
- Create a repositoryOn github.com, create a new public repository. Name it username.github.io for a site at that address, or pick any name like my-website.

- Upload your filesChoose Add file, then Upload files, drop in the template with index.html at the top and commit.

- Turn on PagesIn Settings, open Pages, choose Deploy from a branch, select main and the root folder, then Save.

- Open your linkAfter a minute the Pages settings show Your site is live, with a Visit site button.

Screenshots: GitHub Docs, CC BY 4.0, cropped and highlighted
Step 3: Collect messages from your site
Free hosting cannot send emails on its own. Point your HTML contact form at SendForm and every message is checked for spam, emailed to you and kept in your inbox.
- Create a free SendForm accountThen create a contact form in the dashboard.
- Copy your endpointIt looks like https://sendform.net/!yourFormId.
- Paste it into your formSet it as the action of the form in your template, then publish again.
<!-- your template's contact form --> <form action="https://sendform.net/!yourFormId" method="POST"> <input name="name" placeholder="Your name"> <input type="email" name="email" required> <textarea name="message"></textarea> <button>Send</button> </form>
No form in your template?
Build an online form in the SendForm builder and embed it with one iframe, or simply link to it.
Free address or your own domain?
When you create a free website, the host gives it a free address right away, such as your-project.pages.dev or username.github.io. A domain of your own, such as yourname.com, costs a small yearly fee and can be added at any time.
| Free address | Your own domain | |
|---|---|---|
| Web addressWhat visitors type | A name on pages.dev or github.io | Any name you register |
| CostPer year | Free | A small fee |
| SetupBefore it works | None | Add it under Custom domains |
| HTTPSThe padlock in the browser | Included | Included |
| Contact formWith SendForm | Works | Same endpoint |
What a free website can and can't do
A free static host serves your files and nothing else: HTML, CSS, JavaScript and images. It runs no server code, so there is no PHP, no database and no email sending. That still covers most small sites.
Shops with payments, member logins and anything that saves data need a server of their own. A contact form is the exception: SendForm receives the messages for you, as in Step 3.
- A portfolio website free of monthly fees
- A small business website free to host, with your prices, hours and a contact form
- A personal page, a CV or an event page
- Docs, or a landing page for a product
How to create a website: common questions
Download a free HTML website template, change the texts and images, then upload the folder to a free host like Cloudflare Pages or GitHub Pages. That is how to make a website for free: the site costs nothing, and only a custom domain name has a small yearly fee.
Mostly. A template is finished code, so you change the texts and image paths in index.html with any text editor instead of writing anything new. That is also the quickest way to learn how to make a website with HTML: change a line, reload, see what it did. The contact form needs no code of its own, only your SendForm endpoint pasted into its action.
Yes. Buy a domain from any registrar, then add it under Custom domains in Cloudflare Pages or in the Pages settings of your GitHub repository.
Free hosts do not run server code, so a form cannot send email by itself. Create a free SendForm endpoint and put it in the action of your form. Messages land in your SendForm inbox and you get an email for each one.