I’ve put plenty of static sites online without spending anything, and the whole process takes a folder of files and about ten minutes of your time.
- Tiiny Host is my default recommendation for beginners: drag a ZIP into the dashboard and you get a working link within seconds, with no Git and no terminal involved.
- GitHub Pages publishes straight from a repository: ideal once your project is already version-controlled, though the terms exclude commercial sites.
- Cloudflare Pages handles bigger projects through Direct Upload (up to 1,000 files, 25 MB per file on the dashboard path).
Whichever option you choose, preparation is most of the job: index.html at the top level, relative links throughout, everything zipped. Get those details right, and hosting becomes the easy part.
What publishing a static website involves?
A static site is a set of files: HTML, CSS, JavaScript, images. When you publish it, a hosting service stores that set and serves it to visitors unchanged.
There’s no server code, no database, no application to configure.
This is the reason it can be free and nearly instant. You’re giving the internet access to your files; you’re not renting a machine and installing software on it.
If you haven’t built anything yet, how to build a static website covers the construction side, and the complete static website guide explains the underlying concept.
The rest of this guide assumes you’re starting from a folder of finished files that needs a URL.
Step 1: Get your files ready
Three checks before you touch any host. In my experience they prevent almost every beginner problem.

- Name your home page index.html: web servers look for that exact filename, lowercase, when someone opens your URL. A file called home.html or Index.html will give visitors a blank or error page.
- Put index.html at the top level: if your folder structure is mysite/index.html and you zip the whole mysite folder, the host may serve the wrong level. When you open the folder, index.html should be the first thing you see.
- Use relative paths: links to your CSS, images, and other pages should look like styles/main.css, not C:/Users/you/Documents/styles/main.css or file:///…. Absolute local paths work on your computer and break the moment the site goes live.
Then zip the folder. On Windows, right-click the folder and choose Send to, then Compressed folder.
On a Mac, right-click and choose Compress. Keep the zip flat: unzip it, and index.html should be right there.
The zipping step trips up more people than the hosting step does, so double-check it before blaming the host for a broken site.
Step 2: Pick a free publishing path
Every option below is free and gives you HTTPS plus a live URL. I’d pick based on how much setup you’re willing to do:

| Path | Effort | What you need | Best for |
| Tiiny Host drag-and-drop | Lowest | A ZIP file, free account | Getting live in under a minute, no Git ever |
| GitHub Pages | Medium | A GitHub repository | Sites already in Git, docs and portfolios |
| Cloudflare Pages Direct Upload | Low-medium | Free Cloudflare account | Larger sites, more files, custom domains |
Free-tier limits and pricing change often, so check each host’s own site before committing to anything.
Path 1 (easiest): Drag-and-drop ZIP upload with Tiiny Host
I’d normally start here, and for beginners it’s the route I recommend first. You go from folder to URL without Git, a command line, or build tools of any kind.
- Create a free Tiiny Host account.
- On the dashboard, drag your ZIP file (or a folder) into the upload area.
- Tiiny Host names your site after the file and hands you a live link immediately.
- Open the link and click through your pages to confirm the CSS and images load.
Your site is now public, served over HTTPS, and shareable as a simple link.
Updating later: re-upload your new ZIP with the same site name. The URL stays the same, so any link you’ve shared keeps working.
I’ve found this path suits quick client previews, prototypes, and side projects particularly well: it’s how most people get into static website hosting in the first place.
Path 2: GitHub Pages
When the site already lives in a Git repository, GitHub Pages publishes it straight from the repo. I use it for documentation and portfolios that I’m maintaining alongside code.
- Push your site files to a repository on GitHub.
- In the repository, open Settings, then Pages.
- Choose your publishing source: a branch (usually main), or a GitHub Actions workflow if you build the site first.
- Save, then wait. GitHub notes it can take up to 10 minutes for changes to publish.
- Your site appears at yourusername.github.io/repo-name.
A few GitHub-specific gotchas:
- On GitHub’s free plan, the repository must be public, and the published site is public even if you later upgrade the repo, per GitHub’s Pages documentation.
- GitHub’s Pages limits page states the site may be no larger than 1 GB, with a soft 100 GB monthly bandwidth limit, and that Pages is not allowed as hosting for an online business, e-commerce site, or commercial SaaS. Fine for portfolios and docs; not for your online shop.
- If your site builds into a subfolder (like dist or build), point the publishing source at that folder, not the repo root, or your CSS will 404.
Path 3: Cloudflare Pages Direct Upload
Bigger sites are where Cloudflare earns its place. Its drag-and-drop Direct Upload takes a ZIP or a single folder and deploys it to their network.
- Create a free Cloudflare account.
- In the dashboard, go to Workers & Pages.
- Choose Create application, then Drag and drop your files.
- Name your project and drag in your build output folder or ZIP.
- Select Deploy site. Your project will be reachable at yourproject.pages.dev.
Cloudflare’s Direct Upload documentation lists the drag-and-drop limits: 1,000 files and 25 MB per file.
Anything larger requires the Wrangler command-line tool, which falls outside the no-Git scope of this guide.
One caution from the same docs: once you choose Direct Upload, that project can’t be switched to Git integration later.
Updating later: open the project and create a new deployment by dragging in the updated folder. The pages.dev URL stays the same.
Step 3: Connect a custom domain (optional)
Each path above gives you a free subdomain, like mysite.pages.dev. A custom domain, like mysite.com, costs the price of the domain itself, usually around 10 dollars a year, and works with all three hosts, though custom domains may sit behind a paid plan on some providers, so check each host’s terms.
The process is similar everywhere:
- Buy the domain at any registrar.
- In your host’s dashboard, add the domain to your site.
- Add the DNS records the host shows you, usually a CNAME record for a subdomain or an A record for the root domain, at your DNS provider, usually your domain registrar, though some hosts (Cloudflare, for example) also manage DNS for you, in which case the records go in that dashboard instead.
- Wait for DNS to spread, often minutes but sometimes a few hours. The host then issues your SSL certificate automatically.
Here are some DNS mistakes I see most often:
- Adding records in the wrong place: DNS records belong with whoever manages your DNS, usually your domain registrar, not just anywhere a DNS editor appears.
- Conflicting records: an old A record pointing somewhere else blocks the new one. Delete duplicates first.
- Editing the record name: for a CNAME, the name is the subdomain (like www), not the full URL.
If you’re on Tiiny Host and want the exact record values, Tiiny Host’s guide to setting up custom domains for static sites walks through them.
Free plan limits to check before you publish
Every free tier comes with ceilings, and they shift often, so verify each on the vendor’s own site before you go live:
- File size and count caps: Cloudflare’s drag-and-drop allows 1,000 files up to 25 MB each, per its docs. Check the host’s pricing page for anything bigger.
- Bandwidth: GitHub Pages has a soft 100 GB monthly limit, per GitHub’s docs. Check your chosen host’s plans page for its own caps.
- Commercial use: GitHub Pages’ terms rule out online businesses, e-commerce sites, and commercial SaaS outright. Check whether your chosen host’s free tier allows commercial use.
- Subdomain vs custom domain: custom domains are often reserved for paid plans; check your host’s current terms.
- Longevity: some free tiers expire inactive sites. I’d pick a host that keeps free sites live, and re-check before you rely on a link.
For a broader market view, the Tiiny Host blog covers free web hosting services for students and the best static website hosting providers in depth.
Troubleshooting: the four problems everyone hits
- Blank page: almost always index.html missing, misnamed, or buried one folder too deep. Re-zip so the file sits at the top level.
- CSS or images not loading: look for absolute local paths like C:/Users/… or file:///…. Change them to relative paths such as styles/main.css and re-upload.
- 404s on your links: links are case-sensitive on real servers, even when they work locally. Make About.html and about.html match exactly.
- Changes not showing: your browser cached the old page. Hard-refresh with Ctrl+Shift+R (or Cmd+Shift+R on a Mac) before assuming the upload failed.
What to do next?
A live site can grow without you changing hosts: watch visitor numbers with basic analytics, gate access with a password for private previews, and send the link with a QR code for print or offline sharing.
If you want the simplest possible start, create a free Tiiny Host account, drag your ZIP in, and you’ll have a shareable link in under a minute.