←

Build and host a website in 2 hours, free

A simple, fast personal or small-business site on free hosting. No coding background needed; you copy a skeleton and fill your own words.

Time≈ 2 hours
Cost₹0 (optional .in domain ≈ ₹700–1,000 a year)

Steps

110 min
Decide the one job of the site
Who is it for and what should they do: call, WhatsApp, see your work? Write 4 sections in your notes app first: who you are, what you offer, proof, contact.
215 min
Make two files
Create a folder with index.html and style.css. Start from MDN's basic HTML page structure. Keep one column; it works on every phone.
330 min
Fill the sections
Header with your name or brand, About, Work or Services (3 cards), Contact with a mailto: and a WhatsApp link. Write short lines; one idea each.
415 min
Add light images
Compress every image under 200 KB with KitWale's image compressor and add alt text that describes it.
515 min
Put it on GitHub
Create a free GitHub account and a public repository. Use 'Add file → Upload files' in the browser; you don't need Git on your laptop.
610 min
Switch on GitHub Pages
Repository Settings → Pages → Deploy from a branch → main / root. In a minute your site is live at username.github.io/repo.
710 min
Test on a real phone
Open it on mobile data. Check text size, buttons and links. Fix, upload again; Pages updates in about a minute.
815 min (optional)
Use your own domain
Buy a .in domain, add it under Pages → Custom domain, follow GitHub's DNS steps and tick Enforce HTTPS. For a shop or SaaS, use Cloudflare Pages instead (GitHub Pages isn't for commercial sites).

Free tools used

  • Any text editor (VS Code is free)
  • GitHub + GitHub Pages (free)
  • Cloudflare Pages (free, if commercial)
  • KitWale image compressor
  • KitWale colour contrast checker

Common mistakes

  • Photos straight from the phone (5 MB each): the site crawls on mobile data.
  • No clear contact button on the first screen.
  • Copying a paid template or someone's photos without a licence.
  • Putting passwords or API keys in a public repository.
  • Running an online shop on GitHub Pages: its terms don't allow commercial sites.
🔖Save this guide: ☆ keeps it on this phone, or share it with your class group.

Watch

How to Deploy a Static Website to GitHub Pages - Free Hosting Tutorial ↗
Corey Schafer
Video 23:53 Free English
Checked 6 Dec
HTML Full Course - Build a Website Tutorial ↗
freeCodeCamp.org
Video 2:02:31 Free English
Checked 6 Dec
HTML Tutorial for Beginners | Complete HTML with Notes & Code ↗
Apna College
Video 2:06:00 Free Hindi
Checked 6 Dec

Go deeper (free courses + docs)

Learn web development ↗
MDN (Mozilla)
Guide / docs Free English
Checked 6 Dec
GitHub Pages documentation ↗
GitHub Docs
Guide / docs Free English
Checked 6 Dec
GitHub Pages limits (not for online shops / SaaS) ↗
GitHub Docs
Official policy Free English
Checked 6 Dec
Cloudflare Pages docs ↗
Cloudflare
Guide / docs Free English
Checked 6 Dec
freeCodeCamp curriculum ↗
freeCodeCamp
Course Free English
Checked 6 Dec
The Odin Project (full-stack path) ↗
The Odin Project
Course Free English
Checked 6 Dec
SEO Starter Guide ↗
Google Search Central
Guide / docs Free English
Checked 6 Dec

Related KitWale tools

On Founder Wale Lessons

Founder Wale Lessons logoShort: "Website banao 2 ghante mein, ₹0 mein" (planned)
Every guide gets a matching FWL Short; the Short's pinned comment links back here.
This guide as a carousel (auto-made from the steps; posted on FWL Instagram and LinkedIn)
1/6

Build and host a website in 2 hours, free

KitWale × FWL
2/6

Decide the one job of the site

KitWale × FWL
3/6

Make two files

KitWale × FWL
4/6

Fill the sections

KitWale × FWL
5/6

Add light images

KitWale × FWL
6/6

Save karo 🔖 kitwale.in

KitWale × FWL