How to host a website for free, step by step
Kofi Agyem, Founder and CEO, CloudzyroPublished · 6 min read
On this page
How to host a website for free: check what kind of site you have, get it ready, put it online on a free plan, add your domain and stay within the limits.
1. The short answer
To host a website for free, make sure it's a static site or a small JavaScript app, sign up with a host that has a free plan, upload the folder or connect its Git repository, and use the free address the host gives you or connect your own domain. The hosting can cost nothing; your own domain is the one part you pay for, and it's optional.
This guide is the step-by-step. If you're still choosing a host, free hosting with no ads compares six free plans side by side, and how to host a website explains every kind of hosting, paid ones included. The steps below use Cloudzyro's free Launch plan.
2. Step 1: check your site can be hosted free
Free hosting works well for most modern sites, but not all. Find yours:
- A static site (HTML, CSS and JavaScript files, or a site generator's output): ideal. It's the cheapest kind of site to serve, and on Cloudzyro it never sleeps, free plan included.
- A single-page app built with React, Vite, Vue or Svelte: also files once built, so also ideal.
- A Node.js app such as Next.js with server rendering, or an Express API: runs free on Cloudzyro with 512 MB of memory and 1 CPU. It rests after an hour without visitors and wakes in a few seconds.
- WordPress or PHP: needs PHP and a database. There's no good free option; see the FAQ below.
- An app that saves data: host the site free and keep the data in a database with its own free tier, such as Supabase or Neon.
Not sure which you have? Static vs dynamic websites explains the difference.
3. Step 2: get the site ready
If you don't have a site yet, the quickest free start is a template. Our free website templates are complete static sites, open source under the MIT license, that deploy in a click and never sleep. Or describe your site to Cloudzyro Agent: the Free plan includes 50 credits a month and your first build free.
If you have a site, put it in one folder with an index.html at the top, or a package.json with a build script for a site with a build step (and a start script if it runs a server). Keep the folder under 100 MB and 20,000 files, the free plan's limit for each version. Big videos and image libraries load faster from storage such as Supabase Storage or S3 anyway.
Remove any secret keys from your files. We leave .env files out of uploads and warn about keys we spot, but the safest key is one that was never in the folder.
4. Step 3: create a free account
Sign up at the Cloudzyro console with your email, Google, GitHub, GitLab or Bitbucket. There's no card to enter and no trial that runs out: the Launch plan has no time limit.
5. Step 4: put the site online
Pick whichever way matches how you built it:
- Upload: on Home, under Upload a folder, drop the folder or choose a .zip. Choose an address and select Continue.
- From Git: under Import from a repository, choose GitHub, GitLab, Bitbucket or Another Git host, pick the repository and branch, and deploy. Every push after that goes live by itself.
- From your AI tool: connect Cloudzyro to Claude, ChatGPT, Cursor or Codex and ask it to put the site online.
Your address is yourname.cloudzyro.app, using 4 to 63 lowercase letters, numbers and hyphens, with HTTPS from the start. Once the build starts it usually takes about a minute, and you can leave the page: we email you when it's live, or if something goes wrong.
6. Step 5: add your domain (optional)
A free address is fine for a side project. For a business, your own domain looks more trustworthy and is easier to remember, and connecting it is free on every plan.
- Buy a domain from any registrar, or search for one with us.
- Open your site's Domains tab and add the address visitors will use, such as
www.example.com. - At your DNS provider, add a CNAME record:
wwwpointing todomains.cloudzyro.app. - Add an A record for the bare domain pointing to
173.234.137.167, soexample.comreaches the site too. - Wait for the status to show Live, usually 5 to 15 minutes. HTTPS is set up for you.
If you buy the domain from us and choose your site as what it's for, we add the records ourselves. Stuck? See how to connect a domain to a website.
7. Step 6: stay within the free plan
Every free plan has limits; what matters is what happens when you reach them. Cloudzyro's Launch plan, for each site:
- Traffic: 100 GB a month. Past that, the site is slowed to 2 Mbit/s until the month resets, never paused and never billed. Traffic Cloudflare blocks as an attack isn't counted.
- Memory and CPU: 512 MB and 1 CPU for apps with a server. Plenty for most small apps; the Usage tab shows how close you get.
- Sleeping: static sites never sleep. An app with a server rests after an hour without visitors, and the next visitor sees a short Waking up page for a few seconds.
- Versions: your last 5 deploys can be restored in a click, and any version can be downloaded.
- No permanent disk: files your app writes while running are cleared on each deploy, so keep data in a database.
To keep a static site fast for free, compress your images and serve them at the size they're shown. Images are most of a typical site's traffic.
8. When it's worth paying
Move a site to Boost, $20 a month for that site (or $150 a year), when an app shouldn't make its first visitor wait, or when a site regularly needs more than 100 GB of traffic, 512 MB of memory or 100 MB of files. Boost has 2 GB of memory, 2 CPUs, 1 TB of traffic and 10 versions, and team members stay free. Your other sites can stay on Launch. Plans are compared on pricing.
9. Other free routes
For a static site in a public GitHub repository, GitHub Pages publishes straight from the repository, though GitHub doesn't allow it to be used to run an online business or e-commerce site. Cloudflare Pages is generous for static sites with a lot of traffic. Both, and four other free plans, are compared with their limits in free hosting with no ads. For the full set of things to check on a free plan, see free website hosting.