Home / Guides
How to Host a Static Website for Free
A static site is just files: HTML, CSS, images. No database, no server code. That makes it the easiest and cheapest thing to put online, and often free.
What you need
- A folder with an
index.htmlfile. - A free static hosting account with any major provider.
- Optional: a domain name.
The steps
- Build the page. Start with one HTML file and a stylesheet.
- Test locally. Open the file in your browser.
- Create a hosting project with your chosen provider.
- Upload the folder, by drag and drop or a command-line tool.
- Visit the preview address they give you.
- Add your domain by pointing DNS to the host.
Make it good
- Add a title, description and a favicon.
- Compress images.
- Use clean links like
/aboutfor your pages. - Add a simple sitemap and robots file.
When static is not enough
Need logins or a database? Look at serverless functions or a small VPS.
If you mainly want to sell products, a store builder is often simpler than hosting the cart and payments yourself. Shopify offers a free trial so you can try an online store before you pay for a plan. Try Shopify free →
What you learn
Even this tiny project teaches DNS, HTTPS, deployments and caching. That is real cloud knowledge.
Gear and reading that fits this guide
Photos and links go to Amazon. Check the current price, model and seller there.

Want the whole shelf sorted by type? Browse all Top Picks →