Home FAQ New Contact Mock Test About

Put any website online for free

Push your code to GitHub, then host it on Cloudflare, Vercel or Render. This guide shows the steps for each and which host fits which type of site.

Put your code on GitHub

All three hosts deploy from a GitHub repository, so every push to main updates your live site.

1

Create a repository

  1. Sign in at github.com, press New and name the repo, for example my-site.
  2. Keep it Public or Private. All three hosts can read private repos after you allow access.
2

Upload your files

Easiest: on the empty repo page press uploading an existing file, drag your project files in and commit. With Git on your computer, run this inside the project folder:

git init git add . git commit -m "first commit" git branch -M main git remote add origin https://github.com/USERNAME/my-site.git git push -u origin main
Never commit API keys or a .env file. Add them later as environment variables in the host's dashboard. For Node projects add node_modules to a .gitignore file.
3

Optional: GitHub Pages

For a plain static site you can stop here. In the repo open Settings, then Pages, choose Deploy from a branch, pick main and / (root), and save. Your site appears at username.github.io/my-site. It serves static files only, with no server code.

Which host for which site

Find your type of site, then follow that host's steps below.

Type of siteBest hostWhy
Plain HTML, CSS and JS (portfolio, tools, landing pages)Cloudflare, or GitHub PagesStatic requests are free and unlimited on Cloudflare, with a fast global CDN.
React, Vite, Vue or Svelte appCloudflare or VercelBoth build from GitHub and give a preview link for every change.
Blog or docs (Astro, Hugo, Jekyll, Docusaurus)Cloudflare or GitHub PagesPure static output, so the cheapest and fastest option fits.
Next.js with server renderingVercelMade by the Next.js team. Free plan is personal and non-commercial only.
Site plus small API or Telegram bot webhookCloudflare Workers or Vercel functionsServerless code runs only when called, so nothing sleeps.
Node, Python, Flask, Django or any always-on serverRenderRuns a real server from your repo. The free one sleeps after 15 idle minutes and takes about a minute to wake.
Needs a databaseRender Postgres, Cloudflare D1, or SupabaseStatic hosts cannot store data. Free Render Postgres expires after 30 days, so check before relying on it.
Shop, ads or paid client workCloudflare, or a paid planVercel's free Hobby plan does not allow commercial use.
Free limits change often. Verify on each host's pricing page before you launch. Last checked November 2026.

Host on Cloudflare

Best default for static sites and front-end apps. Free static traffic with no bandwidth cap.

1

Connect the repository

  1. Open dash.cloudflare.com and go to Workers & Pages.
  2. Press Create, choose to import a Git repository and connect your GitHub account.
  3. Select my-site and press Begin setup.
Cloudflare now recommends Workers static assets for new projects, and Pages still works. The screens differ slightly, but both ask for the same build settings.
2

Set build settings

Use the values for your project type.

ProjectBuild commandOutput folder
Plain HTMLleave empty/ (or the folder with index.html)
Vite / React / Vuenpm run builddist
Astronpm run builddist
Hugohugopublic
Docusaurusnpm run buildbuild
3

Deploy and open your site

Press Save and Deploy. After the build finishes you get a link like my-site.pages.dev or a workers.dev address. Every push to main redeploys automatically. Files must be 25 MiB or smaller each.

Host on Vercel

Best for Next.js and front-end apps with serverless functions. Free Hobby plan is for personal, non-commercial use.

1

Import the project

  1. Sign up at vercel.com with GitHub.
  2. Press Add New, then Project, and import my-site.
2

Check the settings and deploy

Vercel detects most frameworks and fills the Framework Preset, build command and output folder for you. For plain HTML choose Other and leave the commands empty. Add secrets under Environment Variables, then press Deploy.

You get a my-site.vercel.app link. Each pull request gets its own preview link.

If the site takes payments, shows ads or is built for a paying client, the free Hobby plan does not cover it. Use Cloudflare or Vercel Pro.

Host on Render

Best when you need a real server such as Node, Python or Docker. Static sites are free and always on.

1

Create a service

  1. Sign up at render.com with GitHub and press New.
  2. Choose Static Site for HTML or front-end builds, or Web Service for a backend.
  3. Select your repo and branch main.
2

Fill in the commands

TypeBuild commandStart command / publish folder
Static Sitenpm run build or emptypublish folder dist or .
Node web servicenpm installnode server.js
Python web servicepip install -r requirements.txtgunicorn app:app

Choose the Free instance type, add environment variables, and press Create.

A free web service sleeps after 15 minutes without traffic and takes about a minute to wake. Its local files are erased on every restart, so keep user data in a database, not on disk.

Connect your own domain

The steps are the same idea on every host: add the domain, then create the DNS record it shows.

1

Add the domain in the host

  • Cloudflare: open your project, then Custom domains, then Set up a domain. If the domain is on Cloudflare the record is added for you.
  • Vercel: Settings, then Domains, then add the domain.
  • Render: Settings, then Custom Domains, then add the domain.
2

Create the DNS record

In your DNS provider add exactly the record type, name and value the host shows. It is usually a CNAME for a subdomain such as www, and an A record or CNAME for the root domain. If the domain is on Cloudflare, set the record to DNS only (grey cloud) for Vercel and Render until the host reports it as verified.

HTTPS is issued automatically within a few minutes on all three hosts.

Common questions

Which free host is best for a beginner?

Cloudflare for static sites and front-end apps. Use Render only when you need a backend server, and Vercel for Next.js on personal projects.

Can I host a Telegram bot for free?

Yes. A webhook bot fits Cloudflare Workers or Vercel functions well because it runs only when Telegram calls it. A polling bot needs an always-on server, which means a paid Render instance.

My site shows a blank page after deploy. What now?

The output folder is usually wrong. Check that it matches where your build writes index.html, such as dist or build, and read the build log in the dashboard for errors.

Do I need to pay for the domain?

Hosting can be free, but a custom domain such as yourname.com is bought from a registrar each year. Free addresses like pages.dev and vercel.app work without one.