How to Share an HTML File as a Link

You made an HTML page — a report, a mini-game, an invitation, a prototype — and now you want someone else to see it. Attaching the file to an email feels natural, but it usually goes wrong. The dependable way is to turn the file into a link.

Why sending the file directly fails

  • Email clients block or mangle it. Many providers flag .html attachments as a phishing risk, and some strip them entirely.
  • Phones fumble it. On mobile, an HTML attachment often opens as raw text or downloads into a folder nobody can find.
  • Messengers make it worse. Chat apps preview documents and images, but an HTML file is just an opaque download.
  • Cloud drives stopped rendering HTML. Google Drive and Dropbox no longer serve HTML pages to the browser — recipients get a download prompt or a code view, not your page.

The fix: host it, share the URL

Upload the file once and share a normal link that opens in any browser on any device. With hdply it takes about a minute: sign up free, drag your index.html in (or paste the code), and you get an address like my-page.hdply.com with HTTPS. Send that link anywhere — email, chat, QR code on a poster.

The link stays the same when the file changes

This is the part attachments can never do: when you fix a typo or update the content, you edit and save — and everyone who has the link sees the new version. No re-sending, no "please ignore my previous email". Old versions are kept in a deploy history, so you can also roll back.

A note on privacy

A hosted page is public to anyone who has the URL. Your address is a random string that's practically impossible to guess, which is fine for sharing with friends, classmates or a client — but don't publish passwords, personal data or anything confidential. For truly sensitive documents, use a tool with real access control.

Related: Publish HTML made with ChatGPT or Claude · How to put an HTML file online

From a file on your desktop to a live URL in under a minute.

Deploy your first page