Open HTML on phone

How do I open HTML on my phone?

Opening HTML on a phone works differently on iPhone and Android. Learn the built-in options on each, their limits, and the simplest way to view a working page.

Short answer

To open HTML on your phone, you need something that renders the file as a web page rather than showing its code. On iPhone, share the file to HTML Keep and it opens as a working page. On Android, a file manager can often hand the file to a browser; HTML Keep for Android isn't released yet, but you can join the waitlist.

Why phones make this harder than computers

On a computer, an HTML file is one double-click away from your browser. Phones hide the file system, so the browser doesn't know where your downloaded file lives.

The result depends on your phone. Sometimes you see raw code, sometimes a static preview, and sometimes the page works but disappears the moment you leave it.

It helps to know which of those you're looking at. Raw tags and angle brackets mean a text viewer opened the file. A tidy but lifeless page usually means a preview. A page that responds to taps means a real web engine is running it.

On iPhone: preview first, then a real viewer

Tapping an HTML file in the iPhone Files app opens Quick Look. It is fine for a quick read of a simple page, but scripts typically don't run and styles or images in sibling folders often don't load.

Safari can't browse to a local file by path, so you can't just paste the location in the address bar.

  1. Get the app from the App Store.
  2. In Files, Mail, Messages or any app holding the file, tap Share and choose HTML Keep.
  3. The page renders with Apple's WebKit engine, with JavaScript, CSS and images working.
  4. Next time, open the app and tap the project in your library instead of hunting for the file.

For more detail on the iPhone side, including troubleshooting, see opening an HTML file on iPhone.

On Android: the file manager and browser route

Android behavior varies by manufacturer and by which apps you have installed, so treat these as things to try rather than guarantees.

  • Open the file from your file manager and choose a browser such as Chrome if it's offered in the 'Open with' list.
  • Some browsers accept a content or file path in the address bar; others block local files for security.
  • If you only see code, the file was opened by a text viewer. Look for an 'Open with' option and pick a browser instead.

HTML Keep for Android is not available yet. If you'd like it, you can join the Android waitlist on the download page.

Problems that happen on any phone

Some issues have nothing to do with the operating system. They come from how the page was built or sent.

  • Only the .html file was sent: if the page links to a stylesheet, scripts or an images folder, those files need to travel too. Sending a ZIP of the whole folder fixes this; see opening a ZIP web project.
  • Absolute paths: links like /css/style.css or C:\Users\... point to locations that don't exist on a phone. Relative paths such as css/style.css are the safest.
  • Online resources: fonts and libraries loaded from a CDN need an internet connection.
  • Server code: PHP, Node or Python backends don't run on a phone, so features that depend on them won't work locally.

Picking the right option

If you just need to read a simple page once, the built-in preview on your phone may be all you need.

If the page is interactive, or you'll want it again, a dedicated viewer is easier. On iPhone and iPad, HTML Keep keeps each file as a project you can search, rename and reopen, and pages that save progress in localStorage pick up where you left off.

If someone else needs to open the page from a link, publishing it to a host makes more sense. Whether you need to deploy a page covers that choice.

Frequently asked questions

Why do I see code instead of a web page?

The file was opened by a text viewer instead of something that renders HTML. Open it with a browser on Android, or share it to a WebKit-based viewer on iPhone.

Is HTML Keep available on Android?

Not yet. It's available for iPhone and iPad, and Android users can join the waitlist on the download page.

Can I open an HTML file from a chat app on my phone?

Usually yes. Save or share the attachment from the chat app; on iPhone, choose HTML Keep from the share sheet.

Will the page work offline?

Anything inside the file or its project folder works offline. Fonts, scripts or data loaded from the internet need a connection.

Android updates

Leave your email and we will notify you when Android testing or Google Play access opens.

We will only use this email for Android availability updates. Privacy