How to Host a Free Website on GitHub Pages in 3 Easy Steps (Free Hosting)

Tired of wondering how to show your coding projects to the world without paying for hosting? ๐Ÿค” Whether it’s a portfolio, a tiny project, or just your test site, GitHub Pages makes it ridiculously easy to host websites for free ๐ŸŒˆ. No servers, no subscriptions, no headaches — just 3 simple steps and your website is live. ๐Ÿš€

This is perfect for coders, students, hobbyists, or anyone who loves instant results. You’ll go from a local HTML file to a live, shareable website in minutes. Let’s jump in! ๐Ÿ’ป✨

1️⃣ Create a Repository

  1. Sign in to GitHub.
  2. Click the + icon in the top-right corner and select New repository.


  3. Name your repository username.github.io (replace username with your GitHub username).


  4. Click Create repository. ๐ŸŽ‰

2️⃣ Create the Site

  1. Open your new repository and click Add file → Create new file.


  2. Name the file index.html.


  3. In the content box, type your HTML. For example:
  4. <!DOCTYPE html>
    <html>
    <head><title>My Test Site</title></head>
    <body>
    <h1>This is my site</h1>
    </body>
    </html>
  5. Scroll down and click Commit new file. ✅

3️⃣ Visit Your Site

Go to https://username.github.io/mee (replace username with your GitHub username) to see your simple site live! ๐ŸŒ✨

That’s it — your website is up and running in no time. Share the link with friends, add it to your portfolio, or just admire your handiwork ๐Ÿ˜Ž.

here is my github website for reference https://khansaad1275.github.io/me/  (Follow me if you like my github)

✨ Pro Tips

  • Always use index.html as your main file — GitHub Pages looks for this by default.
  • Want a custom domain? Add a CNAME file with your domain name.
  • Update your site anytime by editing files or adding new ones — changes go live immediately.
  • Use folders to organize CSS, JS, and images for bigger projects.
  • Check GitHub Pages settings if your site doesn’t appear immediately — sometimes it takes a few minutes.

๐Ÿ’ป๐ŸŒ Conclusion

And there you have it! From zero to live website in just 3 steps. ๐Ÿš€ GitHub Pages is the ultimate free hosting tool for coders and hobbyists. No servers, no payment, no hassle — just upload your files and go live instantly. ๐ŸŒˆ

Whether it’s a personal project, portfolio, or just a test, this method is quick, fun, and perfect for showing off your coding skills. So go ahead, create your repo, type your HTML, commit, and boom — your site is online for the world to see. ๐Ÿ’ป๐Ÿ”ฅ

Don’t just code for yourself — host it, share it, and flex it! Your free website awaits. ๐ŸŒŸ

๐Ÿ”— Useful Links

How to Host a Free Website on GitHub Pages in 3 Easy Steps (Free Hosting) How to Host a Free Website on GitHub Pages in 3 Easy Steps (Free Hosting) Reviewed by Saad Maqsood on October 01, 2025 Rating: 5

No comments:

Powered by Blogger.