Need to share an HTML file with someone? Here are 6 practical ways to host a single HTML file and get a shareable link, no server setup required.
You have an HTML file on your computer. Maybe it's a prototype you built, a report you generated, or something an AI tool spit out. You want to send someone a link so they can see it in their browser. That's it. You don't want to set up a server, configure DNS, or create a deployment pipeline.
This is a surprisingly common problem. Developers hit it when sharing quick demos. Designers hit it when sending mockups to clients. And with AI coding tools generating full HTML pages in seconds, the gap between "I have a file" and "someone else can see it" matters more than ever.
Here are six practical ways to share an HTML file online, each with different tradeoffs.
GitHub Pages is the go-to for developers who already live in Git. You push HTML files to a repository, enable Pages in the settings, and GitHub serves them at username.github.io/repo-name.
main branch (or a gh-pages branch).GitHub Pages is excellent for ongoing projects but heavy for one-off sharing.
Tiiny.host is built specifically for this use case. You drag and drop an HTML file (or a zip), and it gives you a link. No account required for the first upload.
Tiiny.host works well for quick, disposable shares. If you need the link to last or want version history, you'll outgrow it.
Surge is a CLI tool for publishing static sites. If you're comfortable with the terminal, it's fast and free.
npm install -g surge
surge ./my-folder my-project.surge.sh
That's it. Your files are live.
Surge is a solid choice for developers who want CLI deploys without learning a platform. It's been around since 2014 and still works well for simple use cases.
Netlify Drop lets you drag and drop a folder onto the Netlify dashboard to deploy instantly. It's the manual-upload counterpart to Netlify's Git-based workflow.
Netlify Drop is a good middle ground between "just give me a link" and "I want a proper deployment." But the full Netlify experience (build settings, environment variables, deploy previews) is more than most people need for sharing a single file.
Handoff is a newer tool designed specifically for sharing HTML files, Markdown documents, and images with instant URLs. It gives you a clean shareable link with built-in version control.
Upload from the command line:
curl -X POST https://handoff.host/api/upload \
-F "[email protected]" \
-F "slug=my-page"
Or if you're using Claude Code, Handoff has a native integration that lets you upload directly from your AI coding workflow. Your page is live at handoff.host/@username/my-page.
Handoff fills a gap that other tools leave open: when you need a permanent, versioned link for a single page and don't want to set up anything.
Online code editors like CodePen, JSFiddle, and CodeSandbox let you paste HTML (along with CSS and JavaScript) and share the result via URL.
<head> elements or document-level styling.Code editors are perfect for sharing code snippets and interactive demos. They're less suitable when you want someone to see a finished page.
| Tool | Setup | Speed | Versioning | Best For |
|---|---|---|---|---|
| GitHub Pages | Git repo | Minutes | Via Git | Projects already on GitHub |
| Tiiny.host | None | Seconds | No | Quick, disposable shares |
| Surge.sh | npm install | Seconds | No | CLI-loving developers |
| Netlify Drop | None | Seconds | Deploy history | Static sites you might grow |
| Handoff | None | Seconds | Built-in | Single pages, versioned sharing |
| CodePen/JSFiddle | None | Seconds | No | Code demos and snippets |
It depends on what you're optimizing for.
If you're already using GitHub and the file is part of a project, GitHub Pages is the natural choice. You'll get version control for free through Git.
If you just need a throwaway link for five minutes, Tiiny.host or Netlify Drop will get you there with the least friction.
If you're a developer who prefers the terminal, Surge.sh is fast and straightforward.
If you're sharing prototypes or AI-generated pages and want the link to stay stable with version history, Handoff is worth a look. Its versioning model is particularly useful when you're iterating on a design and want stakeholders to always see the latest version at the same URL.
And if you're sharing code snippets rather than finished pages, the online editors (CodePen, JSFiddle) are still hard to beat.
The good news is that this problem has more solutions now than ever. The days of needing a VPS and an Nginx config just to show someone an HTML page are behind us.