How to open an HTML file on Android or iPhone

Phones aren't great at opening downloaded .html files. Depending on the phone, you may see raw code, a blank page, or a "no app can open this" message. Here's what works.

Easiest way: turn it into a linkUpload the file here and open the link in your browser.
Upload the HTML file

How to do it

  1. Open DropMyPage in your phone's browser.
  2. Tap Tap to choose a file and pick the .html file from Downloads or Files.
  3. Tap Create link, then open the link: the page shows properly, scripts included.

Other ways on Android

Other ways on iPhone

Want to see the code too?

Paste it into the HTML viewer to see the code and the page side by side.

Questions

Why do I only see code?

The app that opened the file treats it as text. A browser needs to load it as a web page, which is what a link does.

Is it safe to open an HTML file someone sent me?

Be careful with files from people you don't know: a page can try to trick you into typing passwords. DropMyPage runs pages in a sandbox and blocks pages with password fields.

Ready?It takes about 30 seconds.
Upload the HTML file

Related guides