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.
Last updated:
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.
Tiiny.host works well for quick drag-and-drop shares. Version history starts on Tiny. Passwords, custom domains, the API, and the Claude MCP server and Grok connector start on Solo.
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.
Signup is required. Use email or Google. There is no GitHub login. Upload from the web dashboard, or POST the file to the API. The token is under Dashboard > Settings > API token.
curl -X POST https://handoff.host/api/upload/ \
-H "Authorization: Bearer $HANDOFF_API_TOKEN" \
-F "[email protected]" \
-F "slug=my-page"
If you use Claude Code, the skill at https://handoff.host/.well-known/agent-skills/handoff/SKILL.md uploads with that token. Your page is live at handoff.host/@username/my-page. Pages do not expire.
Handoff is a fit when you want a permanent, versioned link for a single page and don't want to set up hosting. Pages do not expire.
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 | Drag and drop | Seconds | Last 5 versions (Tiny+) | Quick drag-and-drop shares |
| Surge.sh | npm install | Seconds | No | CLI-loving developers |
| Netlify Drop | None | Seconds | Deploy history | Static sites you might grow |
| Handoff | Account | 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 want the least setup, Tiiny.host or Netlify Drop will get you there. Tiiny keeps the last 5 versions on Tiny and up. On Solo ($18/month, or $13/month billed annually) it adds custom domains, a Claude MCP server, and a Grok connector. On those, Tiiny is ahead.
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.
Upload a file, get a link. Free plan, no credit card needed.
Start sharing free