Best for · Web hosting
Free HTML web hosting: where to put a static site for $0
- Last checked
- 7 sources, linked below
- By the vectaai team
We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.
Verdict Our pick
The bar guide has a call.

- Cloudflare Pages for a site you care about.
- GitHub Pages for a portfolio or project docs if you already use GitHub.
- Neocities if you want to upload files in a browser and never touch Git.
- InfinityFree only if you need PHP and MySQL for free.
Compared here
- 01Cloudflare Pages
- 02GitHub Pages
- 03Netlify
- 04Vercel
- 05Neocities
- 06InfinityFree
Short answer
For a plain HTML, CSS and JavaScript site, free hosting is genuinely good now. Cloudflare Pages is our first pick: 500 builds a month, up to 20,000 files, 25 MiB per file and 100 custom domains per project on the free plan, with no bandwidth cap listed. GitHub Pages is the classic: 1 GB sites and a 100 GB a month soft bandwidth limit, but GitHub says it is not for running an online business. Neocities is the friendliest for beginners: 1 GB storage, 200 GB bandwidth, no ads.
Pick Cloudflare Pages for a site you care about. Pick GitHub Pages for a portfolio or project docs if you already use GitHub. Pick Neocities if you want to upload files in a browser and never touch Git. Pick InfinityFree only if you need PHP and MySQL for free. When your site starts making money, a cheap paid host like Hostinger at $1.99 a month on a 48-month term is the next step.
Sponsored links. We may earn a commission; it never changes the pick.
At a glance
| Host | Upload method | Free limits (quoted) | Custom domain on free | Catch |
|---|---|---|---|---|
| Cloudflare Pages | Git or direct upload | 500 builds/month, 20,000 files, 25 MiB per file | Yes, 100 per project | One build at a time on free |
| GitHub Pages | Git repository | 1 GB site, 100 GB/month soft bandwidth, 10 builds/hour soft | Not covered on the limits page | Not for online businesses or e-commerce |
| Netlify | Git, CLI or drag and drop | 300 credits; bandwidth costs 20 credits per GB | Yes, with SSL | Credits run out on busy sites |
| Vercel Hobby | Git or CLI | 100 GB fast data transfer, 1M CDN requests, 100 deploys/day | Yes, 50 per project | Over the limit, features pause for 30 days |
| Neocities | Browser upload or CLI | 1 GB storage, 200 GB bandwidth | Listed as a feature; plan split not readable | Small storage; Supporter $5/month for more |
| InfinityFree | File manager or FTP | 5 GB disk, unlimited bandwidth, PHP and MySQL | Yes, bring your own domain | Site must get a few hits a month to stay active |
Money talk first. Hostinger pays affiliates (from 40% per its affiliate page, per our notes), and links on this page go through vectaai.com/go/. That is why we put Hostinger last, as the paid upgrade, and why every free option here comes first: for a static HTML site, you usually do not need to pay anyone. We did not stress test these hosts. We read each one's docs or pricing page on 4 December 2026 and quote them.
Why HTML sites are cheap to host
A static HTML site is just files: index.html, a stylesheet, some images, maybe a bit of JavaScript. There is no database and no server-side code to run. The host only has to hand the files to visitors, ideally from a content delivery network close to them. That costs providers almost nothing, so many give it away to win you over for their paid products.
That is the good news. The bad news is that "free" always has a catch, and each host's catch is different. Here they are.
Cloudflare Pages: our first pick
Cloudflare's Pages limits page lists, for the free plan:
- 500 builds a month, one at a time
- Up to 20,000 files per site
- 25 MiB maximum per file
- 100 custom domains per project
The page lists no bandwidth limit for free static sites. You can connect a Git repository or upload a folder directly, so you do not strictly need Git.
The catch: you are on Cloudflare's dashboard, which has a lot of buttons. Fine once you find Pages.
Pick it if you want the most headroom for $0 and a site that could grow. Our Cloudflare Pages vs Vercel page goes deeper.
GitHub Pages: the classic for portfolios and docs
GitHub's Pages limits:
- Published site: no larger than 1 GB
- Source repository: recommended under 1 GB
- Bandwidth: soft limit of 100 GB a month
- Builds: soft limit of 10 an hour (not for custom GitHub Actions workflows)
The catch, in GitHub's words: Pages "is not intended for or allowed to be used as a free web-hosting service" to run an online business, an e-commerce site, or anything that primarily facilitates commercial transactions or SaaS. A personal site, a portfolio, open source project docs: perfect. A shop: no.
Pick it if your code already lives on GitHub and the site is personal or a project page.
Netlify: the easiest drag and drop
Netlify's pricing page shows the Free plan at $0 with a 300 credit limit, where bandwidth costs 20 credits per gigabyte, and custom domains with SSL included. Paid plans: Personal $9 a month, Pro $20 a month.
Do the maths: if bandwidth were your only use, 300 credits at 20 per GB is about 15 GB a month. Plenty for a personal site, tight for anything popular. Build minutes and other usage may also eat credits; the page did not list them in the text we read.
The catch: credits run out on busy sites.
Pick it if you want to drag a folder onto a web page and have a live site with your own domain in two minutes.
Vercel Hobby: generous, made for front-end projects
Vercel's Hobby plan docs list it as free, with each month:
- 100 GB fast data transfer and 10 GB fast origin transfer
- 1,000,000 CDN requests
- 200 projects, 50 domains per project, 100 deployments a day
The catch: "if you exceed your usage limits on the Hobby plan, you will have to wait until 30 days have passed before you can use the feature again." No overage billing, just a pause. Team features and email support are Pro only, at $20 per developer seat a month.
Pick it if you build with front-end frameworks and might add serverless functions later. See Netlify vs Vercel for the head to head.
Neocities: the friendliest for beginners
Neocities is a modern take on the old GeoCities idea: a free home for personal websites. Its supporter page lists:
- Free: 1 GB storage, 200 GB bandwidth
- Supporter: $5 a month for 50 GB storage and 3,000 GB bandwidth
- No ads: "Neocities has no advertising"
Custom domains and unrestricted file types appear in the features table, but the text we read did not show which plan gets them, so check before you rely on a custom domain for free.
The catch: 1 GB fills up fast with photos.
Pick it if you want to write HTML in a browser editor, upload, and be live, with zero Git and zero command line.
InfinityFree: if you need PHP and MySQL too
InfinityFree is old-school free shared hosting, and the only one here with a database:
- 5 GB disk, unlimited bandwidth
- PHP 8.4, MySQL 8.0 or MariaDB 11.4, 400 databases, .htaccess
- Bring a domain registered elsewhere
- "We will never place advertisements on it"
The catch: a site "must receive at few hits every month to be considered active", and the page promotes premium hosting from a partner. Shared free hosting is also slower and less reliable than the CDN-based hosts above.
Pick it if your "HTML site" is really a small PHP project, a contact form script or a learning WordPress install.
Which one should you pick?
| Your site | Pick |
|---|---|
| Personal site you want to last | Cloudflare Pages |
| Portfolio or project docs, code on GitHub | GitHub Pages |
| Want a live site in two minutes, no Git | Netlify drag and drop, or Neocities |
| Front-end framework project | Vercel Hobby |
| Small PHP or MySQL project | InfinityFree |
| A shop or business site making money | Paid hosting |
How to publish an HTML site for free (the short way)
- Name your home page index.html. Every host looks for it.
- Use relative links like
images/logo.png, notC:\Users\.... - Pick a host from the table above and create an account.
- Upload: drag the folder (Netlify, Cloudflare direct upload, Neocities) or push to a Git repo (GitHub Pages, Cloudflare, Vercel).
- Check the free address the host gives you, on your phone too.
- Add your domain in the host's settings and update DNS at your registrar.
- Turn on HTTPS. Most of these do it automatically.
When free stops being enough
Move to paid hosting when:
- You need email on your domain (free static hosts do not do email).
- You want WordPress or another database-driven site. Our WordPress vs HTML page helps you decide if you need it at all.
- You sell things, especially on GitHub Pages, which forbids it.
- You need support when something breaks at 2 a.m.
The cheapest step up: Hostinger's web hosting page lists Premium at $1.99 a month on a 48-month term ($95.52 paid up front), renewing at $10.99 a month for 12 months, with 3 websites, 20 GB storage and a free domain for one year. Do not miss the renewal price; that is where cheap hosting stops being cheap.
A word on hosting from cloud drives
People ask about hosting HTML on OneDrive, Google Drive or Dropbox. These share files; they do not serve websites. Our host a web page on OneDrive page explains why, and what to use instead. Short version: use one of the free hosts above.
What we could not confirm
- GitHub Pages custom domains: not covered on the limits page we read (GitHub documents it elsewhere).
- Neocities plan split: which features are free vs Supporter did not come through in the page text.
- Netlify build minutes and other credit costs: not listed in the text we read.
- Uptime and speed: we did not measure them.
Our verdict
Free HTML web hosting is not a compromise any more. Cloudflare Pages gives the most room, GitHub Pages is perfect for personal and project sites, and Netlify or Neocities get a beginner online in minutes, all with no ads. Pay only when you need email, a database, support or a shop, and when you do, read the renewal price before the promo price.
Questions people ask
Where can I host an HTML website for free?
Cloudflare Pages, GitHub Pages, Netlify, Vercel's Hobby plan, Neocities and InfinityFree all host static HTML for $0. Cloudflare Pages has the roomiest free limits we read and allows 100 custom domains per project. GitHub Pages is simplest if your code is already on GitHub. Neocities lets you upload in the browser without Git.
Is GitHub Pages really free?
Yes, for public sites. GitHub's limits page sets a 1 GB maximum published size, a 100 GB monthly bandwidth soft limit and 10 builds an hour. The catch is use: GitHub says Pages is not intended for running an online business, an e-commerce site or commercial SaaS. A personal portfolio or project docs are exactly what it is for.
Can I use my own domain with free HTML hosting?
Yes on most of them. Cloudflare Pages allows 100 custom domains per project on the free plan, Vercel Hobby allows 50 per project, Netlify includes custom domains with SSL, and InfinityFree supports domains registered elsewhere. You still pay for the domain itself, usually around the price of a cheap lunch per year.
Will free hosting put ads on my site?
Not the ones on this page. Neocities says it has no advertising, and InfinityFree says it will never place ads on your website. Cloudflare, GitHub, Netlify and Vercel do not inject ads into static sites either. Old-school free hosts that do add ads exist, so read the terms before uploading anywhere else.
What is the easiest free host for a beginner?
Neocities: make an account, upload index.html in the browser, and your site is live. Netlify's drag-and-drop deploy is nearly as easy and gives you a custom domain. GitHub Pages and Cloudflare Pages are better long term, but they make most sense once you are comfortable with Git.
When should I move from free to paid hosting?
When you need email on your domain, a database-driven site like WordPress, guaranteed support, or you start selling. GitHub Pages bars online businesses, and free plans pause or bill when you blow past limits. Cheap shared hosting such as Hostinger's Premium plan starts at $1.99 a month on a 48-month term.
Sources
Every fact above comes from these pages. Prices change, so each one carries the date we read it.
- Cloudflare Pages limits, checked 4 Dec 2026
- GitHub Docs: GitHub Pages limits, checked 4 Dec 2026
- Netlify pricing, checked 4 Dec 2026
- Vercel Hobby plan, checked 4 Dec 2026
- Neocities supporter plan, checked 4 Dec 2026
- InfinityFree home page, checked 4 Dec 2026
- Hostinger web hosting, checked 4 Dec 2026