In short
Easiest: send the HTML file to Annopane via “Share” (free, no account). It opens with JavaScript, full screen and offline – and can be added to your home screen as an app. For a quick static preview the Files app is enough; Safari can only open local HTML files through workarounds.
Here are the three ways that work, with their limits – and which one is right when.
Step by step
- 1
Way 1: Files app (quick preview)
Tap the file in the Files app. iOS shows a preview of the page – without JavaScript, without linked images or stylesheets from subfolders. Enough for simple pages; dashboards and calculators stay dead.
- 2
Way 2: Safari (with a detour)
Safari doesn't open local files directly. The only practical workaround is uploading to a hosting service and opening it by link. For everyday use that isn't a real path.
- 3
Way 3: Annopane (full page, offline, as an app)
Open annopane.com, “Choose a file” – or long-press the file in Mail/Files → “Share” → Annopane. The page runs with JavaScript in full screen, stays stored on the device and works offline. Via “Share → Add to Home Screen” it gets its own icon.
- 4
Bonus: ZIP with several files
If the page consists of index.html plus images, CSS and scripts, upload everything as a ZIP. Annopane unpacks the bundle and serves the files the way a web server would.
Why the iPhone treats HTML files so poorly
iOS strictly separates apps. Safari may only load content from the network, the Files app renders HTML but disables scripts for security reasons. A local HTML file with JavaScript – i.e. almost everything AI tools produce today – falls right through that gap. An app that runs HTML in an isolated frame closes it.
What Annopane adds
Besides opening: pin comments directly on elements and hand them back to Claude or ChatGPT as a ready-made instruction, pass the file on by link or QR code, keep versions. And it also opens PDF, Excel, Word, PowerPoint, Markdown and images.
Frequently asked questions
Can Safari open an HTML file from the iPhone?
Not directly. Safari only loads content over http(s). Local HTML files need an app that runs them, or must be uploaded first.
Does JavaScript work in the Files app preview?
No. The preview shows only static HTML and CSS. Interactive elements, charts and calculators stay inactive.
Is there a free HTML viewer app for iOS?
Annopane is free, runs in the browser without an App Store install and can be added to the home screen as an app. App Store alternatives include Sitecase (one-time paid Pro version).
Does this also work on iPad and Android?
Yes. Annopane is a web app and runs the same on iPhone, iPad, Android and desktop.
Read on
- HTML file as an app on the home screen – without the App Store
- Share an HTML file as a link – no hosting, no account
- Annopane vs. tiiny.host
Related pages
Try it with a file you already have.
Free, no sign-up. Upload, share the link, collect feedback.
Start for free