Home › Blog › How to Host a Website for Free on Cloudflare Pages

How to Host a Website for Free on Cloudflare Pages

By Umar Hayat · Updated 30 October 2026

What is Cloudflare Pages?

Cloudflare Pages is a service that hosts static websites, meaning sites made of HTML, CSS, JavaScript and images. It has a free plan and serves files from servers near your visitors, which makes pages load quickly.

What you need

A free Cloudflare account and your website files in a folder or a zip file. The home page must be named index.html. Other pages can live in folders, for example about/index.html, which gives a clean address like /about/.

Upload your site

In the Cloudflare dashboard open Workers and Pages, choose Create, then Pages, and pick the direct upload option. Name your project, upload the folder or zip, and deploy. After a short wait you get an address ending in pages.dev.

Update the site later

When you change a file, make a new zip and create a new deployment from the project page. Each deployment keeps its own version, so you can roll back if something breaks.

Add a custom domain

A pages.dev address works, but your own domain looks more professional and is easier to remember. In the project settings open Custom domains and follow the steps. You will buy the domain from a registrar first.

What to check after it is live

Open the home page and a few inner pages on your phone. Open /robots.txt and /sitemap.xml to confirm they show the right content. Add your site to Google Search Console, and make sure you have About, Contact and Privacy Policy pages.

When static hosting is not enough

If you need user accounts or a database, you can add Cloudflare Workers and D1. For a simple guide site, tool page or portfolio, plain static files are enough and cost nothing.

Frequently asked questions

Is Cloudflare Pages really free?

It has a free plan that is enough for many small sites. Check the current limits on the Cloudflare website.

Can I use WordPress on it?

No. Pages hosts static files. WordPress needs a different kind of host.

Will my site be fast?

Usually yes, because files are served from a network of servers around the world.

Do I need to know coding?

Basic HTML helps, but an AI tool can write the files and you only upload them.

Related articles

Free tools: Free website checker in Urdu · Free website speed test · Free SEO checker in Roman Urdu

Check my website free