Skip to content
Open HTML files privately on iOS.OpenHTML

Open AI-Generated HTML on iPhone

ChatGPT, Claude or Gemini just gave you an HTML file — here is how to actually see it on your iPhone or iPad, and how to find out why it looks wrong when it does.

Updated 2026-08-09

iOS has no built-in way to properly open a local HTML file: the Files app shows a stripped-down preview without styles or scripts, and Safari can't reliably load local pages with their resources.

OpenHTML fixes this in one step: share the file from any app (or paste the HTML code directly), and it renders as a real page — offline, with JavaScript running locally and network access off by default. If the page still looks wrong, the built-in diagnostics tell you exactly which resource is missing or blocked instead of leaving you with a blank screen.

Three ways to open it

  1. Share it

    In ChatGPT, Claude, Files, Mail or any chat app, tap the Share button on the .html file and choose OpenHTML. The page opens instantly as a private local copy.

  2. Paste it

    Copied HTML code instead of a file? Open OpenHTML, choose Paste HTML, and the code becomes a rendered page — no saving to Files first.

  3. Open from Files

    Tap “Open from Files” to read any HTML file once without importing it, straight from iCloud Drive or any file provider. Save it to your library only if you want to keep it.

When the AI page doesn't render right

AI-generated pages fail in predictable ways: they reference a CSS framework from a CDN, load a chart library over the network, or split code across files you never received. Most viewers just show you the broken result.

OpenHTML ships a diagnostics panel that scans the page and lists every missing file, blocked remote resource and JavaScript error — with one-tap fixes. If the page needs its CDN, you can allow network access for just that document; everything else stays offline.

Privacy default: remote network access is off until you turn it on per document. An AI-generated page can't phone home unless you let it.

Made for the AI workflow

  • Single-file pages, multi-file projects and ZIP archives all open the same way.
  • Markdown answers render as clean pages too — including LaTeX math, fully offline. See Markdown + LaTeX on iPhone.
  • Pages using fetch() or ES modules run on a private local server (Pro) — see ZIP web projects.
  • Finished checking? Export the page as a full-length PDF or long image to share the result (Pro).

Frequently asked questions

Why does my HTML file look like plain text on iPhone?

The Files app preview strips external styles and scripts. Open the same file in OpenHTML and it renders as a real web page, with local JavaScript running.

Does the HTML file get uploaded anywhere?

No. OpenHTML keeps a private copy on your device. There are no accounts, no analytics, and network access for pages is off by default.

Can I open HTML that ChatGPT gave me as text, not a file?

Yes — copy the code and use Paste HTML. The pasted code becomes a rendered, saveable page.

Is it free?

Opening, previewing and diagnosing pages is free. A one-time Pro purchase adds export to PDF/image, the element and network inspectors, Local Server mode and more.

See your AI page the way it was meant to look

Share or paste any HTML from ChatGPT, Claude or Gemini and preview it offline in seconds — with real diagnostics when something is off.

Download OpenHTML

Free on the App Store — core viewing needs no purchase.