Sharing & hosting

5 ways to turn an HTML file into a shareable link

10 August 2026 · 3 min read

You've got a single HTML file, a landing page an AI tool generated, a prototype, an invite, a resume built as a webpage, and you don't need a hosting account or a build pipeline. You need one thing: a link that opens it in a browser, looking exactly like it did on your machine. Not every “free file sharing” option delivers that. Here's how the common ones compare.

What “hosting a file” requires

For an HTML file to open as a working page rather than downloading or showing raw code, it needs to be served over HTTP(S) with the right content type. A file storage link alone doesn't guarantee that. That distinction is why some “free” options below produce a real live page and others produce a download prompt or a code viewer instead.

How the five options behave

A Google Drive “share” link is built to preview a file inside Drive's own interface, not to serve it as a standalone page. Recipients see Drive's chrome around it, and depending on the file type it may prompt a download instead of rendering. It's fine for handing a file to one person; it's not a link you'd put in a bio or a pitch deck.

GitHub Pages gives you a real, working URL and keeps your styling and JS intact, but it expects a repository, a push, and Pages enabled in settings — a reasonable amount of setup for something that's supposed to take thirty seconds.

CodePen and JSFiddle are excellent for demos and are built specifically to preview HTML/CSS/JS — but the page always lives inside their editor's embed or preview frame, on their domain, with their branding around it. Great for showing code to other developers; less ideal as a page you'd send a client.

An email attachment isn't a link at all — the recipient has to download the file and open it locally, which most people won't do from a phone, and it can't be updated once sent.

The fastest path: microsites

A MakeMySiteLive microsite is built for exactly this case: one HTML file, one upload, and a live yourname.makemysitelive.com link with free HTTPS. No repository or build step, and microsites are included with every account. It's the option in the table that's both a real live page and fast to set up.

Five ways to share a single HTML file

OptionOpens as a live page?Keeps your CSS/JS?Custom link?Setup
MakeMySiteLive micrositeYesYesyourname.makemysitelive.comUpload the file, done
Google Drive share linkNo — opens Drive's preview or downloadsPartially, in preview onlyNoUpload + set sharing
GitHub PagesYesYesusername.github.io/repoRepo, push, enable Pages
CodePen / JSFiddleYes, inside their embed/preview frameYesNo — their domainPaste code into editor
Email attachmentNo — recipient must download and open locallyYes, once downloadedNoAttach and send

Key takeaways

  • A file-storage share link (Drive, Dropbox) usually opens a preview or a download, not a live page.
  • GitHub Pages and CodePen both produce real live pages, but with more setup or someone else's branding around it.
  • A microsite is the option built specifically for “one file, one link”: upload and it's live, with no size-of-project overhead.
  • Microsites are free for normal single-file use; you only need a full site if you require a custom domain or password protection.

Frequently asked questions

Is there a file size limit for a microsite?

Yes — microsites accept a single .html or .htm file up to 3 MB, which covers the large majority of single-page exports. If your file depends on separate local CSS, JS, image, or font files rather than everything inlined in one HTML file, use a full site ZIP upload instead.

Can I edit the page after publishing it?

Yes. Upload a new version of the HTML file whenever you need to change something — the link stays the same, so anyone you already shared it with sees the update automatically.

Will the link expire?

No. A published microsite stays live at its subdomain with no time limit, unlike Drive share links (which can be revoked or hit view limits) or email attachments (which just sit in an inbox as a file, not a link).

Can I password-protect a shared HTML file?

Not on a microsite — password protection is a full-site feature on a Pro site. If you need the link gated behind a password, upload the file as part of a full site instead of a microsite.

Share this article

Keep reading

More from the blog

Ready to go live?

Create a free account and publish your first site in 2 minutes.

Get started free