To host an HTML file online, upload it to a static host and send people the URL it gives you. The no-account route for free HTML hosting: drop a single HTML file on Cloudflare Drop, or a folder on Netlify Drop, and you get a live link to claim. For a page you'll keep updating, GitHub Pages and Cloudflare Pages host HTML at no cost, Vercel fits framework builds, and Hostsmith takes one HTML file or a ZIP on its Free plan. Every limit below was checked in November 2026.
Class project due in an hour, a prototype a client keeps asking about, a freeCodeCamp exercise to show off: here are five ways to get it online, and what each free tier really allows.
What Is HTML Hosting?
HTML hosting (or HTML web hosting) means a server stores your .html file, plus its CSS, JavaScript and images, and sends it to any browser that asks for the URL. Double-clicked on your laptop, the file only opens for you.
Plain HTML is a static website: it needs no database or server code, so a static host does the job. Shared hosting with FTP still works: if your domain came with a cPanel plan, upload the files to its web root, usually public_html. HTML website hosting works the same way for a multi-page site: each page is its own file, and index.html is the homepage on almost every host.
Can You Just Drop the File? Free HTML Hosting Compared
Checked November 2026, from each host's own pricing and docs pages.
| Method | Takes one .html file as is? | Sign-up | Free tier | Own domain at no cost |
|---|---|---|---|---|
| Netlify Drop | No: rename it index.html, drop its folder or a ZIP | To claim it, then make it public | 300 credits a month; all projects pause at zero | Yes, once claimed |
| GitHub Pages | As index.html at the top of the repo | Yes; public repo on GitHub Free | 1 GB per site, 100 GB a month soft cap | Yes |
| Cloudflare Drop and Pages | Drop: yes, any filename. Pages: a folder or ZIP | Drop: claim within an hour. Pages: yes | Pages serves static files with no request cap | On Pages |
| Hostsmith | Yes, named index.html, or a ZIP of the folder | Yes, when you publish | Free plan: one site, 5 MB of storage, Hostsmith watermark | No; from Pro |
| Vercel Drop | Takes a file, a folder or a ZIP | Not to drop; to keep it, claim it | Hobby: 100 GB of transfer a month, non-commercial | Yes |
Method 1: Netlify Drop - Drag a Folder, Get a Link
Steps:
- Rename the file
index.htmland put it in a folder. - Open Netlify Drop and drag the folder (or a ZIP of it) onto the drop zone.
- Copy the
.netlify.appURL, then claim the site by signing up or logging in.
What to know (Netlify's pricing, Drop quickstart, project visibility and paused projects docs, November 2026):
- No account is needed to drop, but the URL sits behind a temporary password until you claim it
- The Free plan has 300 credits a month: 15 per production deploy, 20 per GB of bandwidth, 2 per 10,000 requests. Ten deploys use 150, leaving about 7.5 GB of bandwidth.
- At zero credits, every project on the account pauses until the next billing cycle, and Free can't buy more
- Custom domains with SSL are included on Free
Best for: A link right now. Quick prototypes.
The step that trips people up comes after the claim. On Free, a new project can start private to your team, so your link may hit a login wall. Select Make public, or go to Project configuration > General > Visitor access > Project visibility, then open the link signed out.
Drop is the tutorial level. Past it, Netlify opens into the full game: build settings, deploy contexts, environment variables. One HTML file needs none of them, and there are Netlify Drop alternatives if that's too much.
Method 2: GitHub Pages - Free Hosting with Version Control
Steps:
- Create a new repository on GitHub. On GitHub Free, make it public, and toggle Add README on: an empty repo has no Add file menu yet.
- Click Add file > Upload files, add your
index.html(plus its CSS and images) and commit directly tomain. - Go to Settings > Pages. Under Build and deployment, set Source to "Deploy from a branch", pick
mainand/(root), then click Save. - Your site goes live at
username.github.io/repo-name, which GitHub says can take up to 10 minutes.
What to know (GitHub's Pages limits, Pages setup and upload docs, November 2026):
- Sites can be up to 1 GB, with a soft bandwidth cap of 100 GB a month; browser uploads are capped at 25 MiB per file
- On GitHub Free the repo is public, so your source code is too
- GitHub says Pages isn't intended or allowed as free hosting for an online business, an e-commerce site or software as a service
Best for: Student portfolios and HTML hosting with version history.
None of that needs Git. Updates are where Git pays off: a git push keeps every version. Not going to pretend Git is obvious the first time through, but once it clicks, your GitHub profile doubles as a portfolio.
Method 3: Cloudflare Drop and Pages - A Quick Link or a Site That Scales
Cloudflare Drop steps:
- Open Cloudflare Drop.
- Drop a folder, a ZIP or a single
.htmlfile with any filename. A lone HTML file is served as the home page. - Copy the
workers.devURL, then claim the deployment within 60 minutes. Miss that window, and Cloudflare deletes it.
Cloudflare Pages steps:
- In the Cloudflare dashboard, open Workers & Pages and select Create application > Get started > Drag and drop your files.
- Name the project, drag in your folder or ZIP, and select Deploy site. It goes live on a
pages.devaddress.
What to know (Cloudflare's claim deployments, direct upload, Pages limits and Pages pricing docs, November 2026):
- An unclaimed Drop holds up to 1,000 files of 5 MiB each. Once claimed, it stays a Worker, updated with Wrangler, Cloudflare's command-line tool.
- A Pages upload takes up to 1,000 files of 25 MiB each
- On Pages, static asset requests are free and unlimited on every plan, and Free includes custom domains
Best for: Real traffic, or a page you'll update often without counting credits.
The part the docs skip: a claimed Drop doesn't become a Pages project. For a site you'll keep dragging new versions into, start on Pages.
Method 4: Hostsmith - One File or a ZIP, One Steady Address
Hostsmith is the host we build. It takes one HTML file or a ZIP in the browser, with no build step. There's no claim clock and no temporary password: you sign in once, when you publish, and later versions go up from the dashboard to the same address.
Steps:
- Rename your page
index.html, or zip the project folder with its CSS and images. - Drop it on the upload box at hostsmith.net.
- Sign in to publish. The site goes live at an address like
your-site.us.hostsmith.link.
What to know (Hostsmith pricing, November 2026):
- The Free plan has 1 site, the Hostsmith watermark and 5 MB of storage, which is also the largest file you can upload. Image-heavy pages need Starter (50 MB) or Pro (500 MB).
- To host an HTML website with several pages, zip the folder as it is: a single top-level folder gets unwrapped,
/aboutservesabout.html, and folder index pages work. - Private Sites (a shared password or an email whitelist) start on Starter, $5 a month billed yearly ($9 monthly). Here's how to password protect an HTML page.
- Custom domains start on Pro, $15 a month billed yearly ($21 monthly)
Best for: Small sites and pages that should stay at one address, and client prototypes. See also drag-and-drop website hosting for how the drop tools differ.
Method 5: Vercel - For JavaScript-Heavy Projects
Sometimes the "HTML file" is really a React, Next.js or Vite project. Vercel is built for that, and Vercel Drop takes plain files.
Steps:
- For a plain static site, drop a file, folder or ZIP on Vercel Drop. No account needed; it's temporary until you claim it.
- For a framework project, sign in and import your GitHub repo. Vercel builds it and redeploys on every push.
What to know (Vercel's Hobby plan docs and Drop page, November 2026):
- Signed-out drops are limited to 100 MB per file and 1 GB in total
- The free Hobby plan includes 100 GB of Fast Data Transfer, 1,000,000 CDN requests a month and 100 deployments a day, for non-commercial, personal use only
Best for: React, Vue, Svelte or Next.js projects, once there's a package.json and a build step.
Before You Upload Your HTML File: A Checklist
Upload the whole folder. When a hosted page looks broken, a missing CSS, JavaScript or image file is usually why. Drop the folder or a ZIP, or push the whole directory.
Use relative paths, without a leading slash. C:/Users/you/project/styles.css breaks everywhere. /styles.css is the sneaky one: fine at the root of a Netlify or Cloudflare site, but a GitHub Pages project site lives under /repo-name/, so the slash points at the wrong folder. Write styles.css or ./styles.css.
Match filename case. Mac and Windows disks treat Logo.png and logo.png as one file. Many hosts don't.
On GitHub Pages, watch for underscore folders. A branch deploy runs your files through Jekyll, which skips folders whose names start with _, like _assets. An empty file named .nojekyll at the top of the repo turns Jekyll off.
A local preview won't catch all of these: your disk forgives case, and Jekyll only runs on GitHub. Click through the hosted link once before you send it. On a phone, the iPhone's own preview won't run scripts or load a page's CSS files either, as our test of opening an HTML file on iPhone showed.
Going Beyond a Single HTML File
- Adding PDFs? Here's how to embed a PDF in HTML, or create a link to a PDF on its own.
- Building a full portfolio? See how to host a portfolio website.
- Coming from Google Drive? Drive no longer hosts pages; here are Google Drive hosting alternatives.
- Exported from Webflow? Here's how to export Webflow code and host it, forms and CMS content included.
- Moving off WordPress? The free Simply Static plugin exports a whole WordPress site as a ZIP of HTML files; here's how to convert WordPress to a static site, check the export and host it.
- Built it in Claude? Here's how to export a Claude artifact as HTML, or, for a multi-page site, use Claude as a website builder.
Today's Link or a Site That Lasts
Quick version: drop tools are for a link that works today, and a Pages host or a repo is for a site that still works next month.
The trap sits in between: a claimed Cloudflare Drop stays a Worker you update from the command line, and a claimed Netlify Drop may stay private until you flip it. The quick link quietly becomes the site you keep.
Here's what we'd pick: if that class project or client prototype might get a second version, skip the drop tools and start it on Hostsmith or a Cloudflare Pages project, where a re-upload lands at the same address. Think of it as choosing your save slot before the first level.
Got the file ready? Drop it, or a ZIP of the folder, at hostsmith.net, sign in, and you'll have a link to send.
Frequently Asked Questions
Q: Can I host an HTML file online for free?
A: Yes. Netlify Drop, GitHub Pages, Cloudflare Drop and Pages, and Vercel's Hobby plan all host HTML at no cost, as of November 2026. Hostsmith's Free plan covers 1 site with 5 MB of storage on a your-site.us.hostsmith.link address.
Q: How do I share an HTML file online?
A: Host it and send the URL. An emailed .html file arrives without the images or CSS next to it on your computer. Cloudflare Drop takes a single .html file with any name; Netlify Drop takes a folder or ZIP. Claim the drop to keep it, and on Netlify, check that the claimed project is public.
Q: Is there temporary HTML hosting with no account?
A: Yes. Cloudflare Drop, Netlify Drop and Vercel Drop all publish a static upload without an account, as of November 2026. Cloudflare deletes an unclaimed drop after 60 minutes, Netlify password-protects the link until you claim it, and Vercel doesn't say how long an unclaimed drop lasts. Claiming takes a free account.
Q: Why does my HTML file look different after I host it online?
A: Usually missing files. Upload the CSS, JavaScript and images in the same folder structure, and use relative paths like styles/main.css instead of C:/Users/you/styles/main.css. On a GitHub Pages project site, a path starting with a slash breaks too, because the site lives under /repo-name/.
Q: Can I use free HTML hosting for a business site?
A: Check the terms first. GitHub says Pages isn't meant for an online business, an e-commerce site or software as a service, and Vercel's Hobby plan is for personal, non-commercial use only. For a business site, a paid plan with a custom domain is the safer choice.