Updated . By Bruno Molina, who makes Onesheet.
Tap an HTML file on iPhone and iOS shows a preview with the page's scripts switched off. A plain page reads fine that way. To see a report with charts or tabs working, open it in an app that runs scripts, such as Onesheet, or put it on a website and open the address in Safari.
Why the preview is not the page
Mail, Messages and Files show an HTML file with the same quick preview. It draws the text, the styles and the pictures, and leaves the scripts off.
Charts, totals, tabs and filters are almost always drawn by scripts. In the preview they come out as empty boxes, zeros and buttons that do nothing. Nothing is wrong with the file.
Way 1. Preview it in Files
Good for a plain page: a letter, a receipt, an exported article.
- Save the file to Files: tap Share, then Save to Files.
- Open the Files app and tap the file.
If the charts are empty or the tabs do nothing, the page needs its scripts. Use way 2 or way 3.
Way 2. Open it in Onesheet
Good for reports, dashboards and anything made by an AI tool. Onesheet is an HTML viewer for iPhone and iPad that runs the page's scripts.
- Find the file in Mail, Messages, WhatsApp or Files.
- Tap Share.
- Choose Onesheet. If it is not in the row of apps, tap More at the end of the row.
The page opens with its scripts running and is kept in your library, where search finds it by the words inside. Reading is free. More on the HTML viewer.
Way 3. Put it on the web
Good when other people need to open it too.
- Upload the file to a web host that serves plain pages.
- Open the address it gives you in Safari.
Safari runs the scripts, because it is loading a web page. It takes an account and usually a computer, and anyone with the address may be able to open the file. For a private report, a reader on the phone is the better fit.
What about Safari on its own?
Safari is built to open web addresses. Files has no button that sends a saved HTML file to it, which is why a file on the phone needs way 2 or way 3.
On iPad
The same three ways work. On iPad you can also drag the file from Files into Onesheet's library.
Markdown files
A .md file in the same preview shows as plain text, marks and all. Onesheet sets it as a page, with tables, checklists and coloured code. See the Markdown viewer.
Got it from an AI?
Claude, ChatGPT and other AI tools often hand over a report as one HTML file. AI reports on iPhone has what to ask for, so it opens on the phone exactly as it was made.