Open HTML on iPhone and iPad

How do I open an HTML file on iPhone?

To open an HTML file on iPhone as a working page, share it to an app that renders it with WebKit. Here is how Quick Look, Safari and HTML Keep compare.

Short answer

The quickest way to open an HTML file on iPhone as a real, working page is to send it to an app that renders it with Apple's WebKit engine. In the Files app, tap Share and choose HTML Keep. The page opens with its JavaScript, styles and images, and it stays in a library so you can come back to it later.

What happens when you tap an HTML file in Files

When you tap an .html file in the Files app, iPhone shows a Quick Look preview. Quick Look is built for glancing at documents, not for running web pages.

For a plain page of text, that preview can be enough. For anything interactive, the result is often disappointing: buttons do nothing because scripts typically don't run, layouts look unstyled, and images stored next to the file may be missing.

There is also no place to come back to. Once you close the preview, the page is just a file again, somewhere in a folder.

Why Safari can't simply open the file

On a Mac or PC you can drag an HTML file into a browser or type a file:// path. Safari on iPhone doesn't offer that. There is no simple way to browse to a local file from the address bar.

That is why people end up with workarounds. Each one works, but each has a cost.

  • Quick Look preview: built in and instant, but usually static.
  • Uploading to a hosting service such as Netlify Drop or GitHub Pages: gives you a real URL, but takes setup and puts the file on the internet.
  • Online HTML viewers: convenient, but your file is uploaded to someone else's server, which matters for private reports or work documents.
  • Local web server apps: powerful for developers, but more than most people need to view one page.

Open the file with HTML Keep, step by step

HTML Keep is an iPhone and iPad app that opens local HTML files and renders them with the same WebKit engine Safari uses. The file stays on your device.

  1. Install the app from the App Store using the download page.
  2. Find your .html or .htm file in Files, Mail, Messages, or wherever it arrived.
  3. Tap Share (or long-press the file and choose Share), then pick HTML Keep from the list of apps.
  4. The page opens in the HTML Keep viewer. Scroll, tap buttons, fill in forms, and use in-page links just as you would in a browser.
  5. Close it when you're done. It now lives in your library, ready to reopen with one tap.

You can also start from inside the app: tap Open File and pick the file from Files.

If the page doesn't look right

Most display problems come from what was sent, not from the phone. A page that depends on a folder of styles and scripts needs that folder too.

  • Unstyled page or missing images: the HTML probably links to files like css/style.css that didn't come along. Zip the whole folder and open the ZIP instead; this guide on missing CSS and JavaScript explains why.
  • Fonts look different or a chart is blank: the page may load fonts or libraries from the internet. Check that you're online.
  • A form submits and nothing happens: if it posts to a server or relies on PHP or another backend, that part can't run on the phone.
  • The file arrived as an email attachment: save it or share it straight from Mail; see opening HTML email attachments.

Who this approach fits

Opening HTML files on iPhone this way suits anyone who receives pages rather than builds them: an exported report, a saved article, a small tool a colleague made, or a page an AI assistant generated for you.

If you want the page to be public for other people, a hosting service is still the right tool. If you just want to open it, use it, and find it again next week, keeping it locally is simpler. The same steps work on a tablet, covered in opening HTML on iPad.

Frequently asked questions

Can I open an HTML file on iPhone without any app?

Yes, the Files app shows a Quick Look preview. It works for simple, static pages, but scripts typically don't run and linked files often don't load.

Does HTML Keep upload my file anywhere?

No. Files are opened and stored on your device. Nothing leaves it unless you share the project or turn on iCloud sync.

Can I edit the HTML in HTML Keep?

No, the app is for opening and using pages, not editing source code. Edit the file in a code or text editor, then re-import it to update the existing project.

What if I receive an updated version of the same file?

Open it again the same way. When the name matches, you can update the existing project, which keeps one previous version, or import it as a new one.

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