TROUBLESHOOTING

Send an HTML file on WhatsApp, iMessage or Telegram so it opens as a page

You sent an .html file in a chat and the other person got a document icon, raw code or an “open with” prompt. Here is why, and how to send it so it opens as a page.

3 min read·

The page works on your computer. You send the .html file to someone on WhatsApp, iMessage or Telegram, and on their phone it shows up as a document. Tapping it gives them a file viewer, the markup, or a list of apps to open it with. The page you built rarely appears the way you saw it.

Messaging apps send files, not web pages

A messaging app delivers an .html attachment as a file, the same way it delivers a PDF or a spreadsheet. It does not run the page inside the chat. What happens next depends on the recipient’s phone and which apps it has, so two people can get two different results from the same file.

When the file does open, it opens from local storage rather than from a web address. Scripts that load data, relative image paths and fonts from sibling files often break there. A page that depends on other files loses them entirely, because only the .html file was sent.

Send a link instead

Host the file and send the URL. A link opens in the phone’s browser in one tap, over HTTPS, the same way on iPhone and Android.

With FileShare Pro: upload the .html file, copy the link, paste it into the chat. The person opening it does not need an account or an app.

  • ✓The link shows a preview in WhatsApp and Telegram. Shared pages get an og:title from the page’s <title> when the page does not set its own, and those apps’ preview bots are allowed to read it.
  • ✓Shared pages are noindex, so search engines do not list them.
  • ✓Spot a mistake after sending? Replace the file without changing the link. The message you already sent opens the new version.
  • ✓The recipient can leave a comment on the page itself without signing up, instead of describing the problem in a reply.
  • ✓You can see whether they opened it.

If the page has images or other files

A page that loads images, CSS or scripts from sibling files needs those hosted too. Either make it self-contained or upload it as a multi-page site. Sending to a team channel instead? See sending an HTML file in Slack or Teams.

Frequently asked

Why does my HTML file not open on WhatsApp?

WhatsApp sends an .html file as a document. It does not run it as a web page, so the recipient’s phone decides how to open it, often as text or in a viewer that skips scripts. Send a hosted link instead and it opens in the browser.

Can I send an HTML file by iMessage?

You can attach it, but it arrives as a file, not a running page. Opening it from Messages loads it from the phone’s storage, where linked files and many scripts do not work. A hosted link opens the page in Safari.

Will the link show a preview in the chat?

In WhatsApp and Telegram, yes. FileShare Pro adds an og:title from your page title when the page does not set its own, and allows those apps’ link-preview bots, so the link shows the page title.

Does the person I send it to need an account?

No. Anyone with the link can open the page in their browser, and guests can comment without signing up.

Got a page to share?

Drop the file, copy the link — live in seconds, free plan included.

Start sharing free