How do I open an HTML file on an iPad, and why does my quiz or game not respond?
Quick answer
In our iPadOS 26.5 Simulator test on October 24, 2026, an .html file tapped in the iPad Files app opened in a Quick Look preview that showed its text and CSS but ran no JavaScript. Open With listed no app. To run the page, open the file in Safari through a free HTML viewer, or send a link instead of the file.
Free plan: no credit card, 1 published page.
On this page
A teacher sends a vocabulary quiz that ChatGPT made. A student gets a game from Claude by AirDrop. You tap the .html file on the iPad, and the page looks finished, but nothing happens when you tap a button. This guide shows what the iPad does with the file, how to open it in Safari so it runs, and how to send a page that opens with one tap.
Sending a file you made? The upload box at the top of this page turns it into a preview link without an account. That preview runs no scripts, so a quiz or game won't respond there. Click Keep this page — free, no card and sign up, and the page moves into your account, where its scripts run and you can publish it.
What happens when you tap an .html file on iPad
Apple's guide to the Files app on iPad says that a file whose app isn't installed opens in a Quick Look preview. It describes Quick Look for "an image file or a PDF" and says nothing about HTML. A tap on an .html file opened that preview in our test.
We tested on October 24, 2026, from 08:24 to 08:29 JST, in Apple's iPad Simulator: Xcode 26.5, an iPad Pro 11-inch (M5) running iPadOS 26.5. The test page had CSS inside it, a script that rewrites a status line and counts taps on a button, a font from Google Fonts, and an image from an https:// address. We saved it in Files under On My iPad.
| What we did | What we saw | Scripts ran | Web font and image loaded |
|---|---|---|---|
| Tapped the file in Files | A Quick Look preview. The CSS applied, the status line still read "JavaScript did NOT run", and the counter stayed at 0 after 2 taps | No | No: the font fell back to another one, and the image showed as broken |
| Touched and held the file, then Open With | "No Apps Available", and one choice: Preview with Quick Look | Not applicable | Not applicable |
| Get Info on the file | Kind: "HTML text". Always Open With: "No Apps Available" | Not applicable | Not applicable |
| Tapped the share button in the preview | Copy, Print, Add Tags, and Save to Files. The More list of apps was empty | Not applicable | Not applicable |
| Chose the file in Convika's HTML viewer in Safari | The status line read "JavaScript ran", and the counter counted 3 taps | Yes | Yes |
| The same, with Run scripts off | "JavaScript did NOT run", and the counter stayed at 0 | No | Yes |
| Opened a published Convika page from its address in Safari | Tailwind, which a script loads from a CDN, styled the page, and its cookie notice closed when tapped | Yes | Not checked |
The results match our earlier test on iPadOS 26.3, on October 15, 2026. Apple's list of security releases, published October 23, 2026, shows iPadOS 27.0.1 and iPadOS 26.7.1, both released September 28, 2026, as the newest iPadOS versions. The newest Simulator we had runs iPadOS 26.5, so we didn't test iPadOS 26.7 or 27. We didn't test a physical iPad, a school-managed iPad, AirDrop, or Chrome either. The Simulator has no Mail app, so we didn't open an attachment from Mail.
A plain document with its CSS inside reads fine in the preview. A quiz, a game, a chart, or a page with tabs looks finished but does nothing when you tap it.
Open an HTML file on iPad in 4 steps
These steps open the file in Safari, where its scripts run. Nothing is uploaded.
1. Save the file to Files
In Mail, touch and hold the attachment and choose Save to Files, as Apple's Mail guide for iPad describes. A file you download from a website goes to Downloads in the Files app, Apple's iPad guide says. In Messages, Google Classroom, or another app, open the file and use that app's share button to save it to Files. We didn't test those apps, so the button's name may differ.
2. Open Convika's HTML viewer in Safari
Go to the free HTML viewer in Safari. It needs no account. Your browser reads the file, and the file never reaches Convika's servers. Don't open a file you weren't expecting: ask the sender first. If you're unsure about a file, turn off Run scripts before you choose it. The page then shows its HTML and CSS only.
3. Tap "Choose an .html file"
Tap Choose an .html file. In our test, a Files sheet opened over Safari, and the file was under Recents; you can also find it under the folder you saved it in. The page appears inside the viewer with its JavaScript running, in a frame walled off from convika.com. It loads images, fonts, and scripts from other sites, such as a Google font. The viewer opens .html and .htm files up to 2 MB, and it shows the page at Full width until you tap Phone.
4. Check what's missing under the page
If the page points to files saved next to it, such as photo.png or style.css, the viewer lists them under the page. They can't show, because only the .html file came to you. Ask the sender for a link, or for one file with everything inside.
If the code came to you as text in a chat or an email, choose Paste code in the viewer instead, paste it, and tap Show the page.
What trips people up on an iPad
- Open With lists no browser. In our test, both Open With and Always Open With in Get Info said "No Apps Available". So on the iPad we tested, Files offered no way to hand the file to Safari or to make Safari its default app.
- The preview looks finished. The text and colors are right, so it's easy to think the quiz is broken. It isn't: the preview just doesn't run its script.
- Files saved next to it didn't come along. Pages often keep styles in
style.css, pictures in files likephoto.png, and code in a.jsfile beside the.htmlfile. An email or a chat sends only the files you pick. The viewer lists the missing ones under the page. - Other browsers. We tested Safari only. We didn't test Chrome or another browser on an iPad.
Send a link instead of the file
If you're the sender, a link saves each student the steps above. Students tap it, and Safari opens the page with its scripts running, as a published page's did in our test. You send one address, and everyone opens the same page.
With Convika:
- Drop your file into the upload box at the top of this page, or paste the code. You get a preview link in seconds, without an account. It works for 3 minutes, with scripts and forms off.
- Click Keep this page — free, no card and sign up. The page moves into your account, and its scripts run in the dashboard preview.
- Click Publish page. Under Who can open this page?, choose Public and click Next. The first time you publish, Convika shows an order for Pro monthly, which takes the Convika bar off your pages (1 day free with a card, then $12 a month). To publish on Free, click Publish free (with the Convika bar) under its button.
- Copy the address under Live URL and paste it into the class feed, the chat, or the email instead of the file.
The Free plan includes 1 published page and 10,000 page views a month. Pricing shows what each plan includes and what happens past the page views. For a room full of iPads, How to turn an HTML file into a QR code covers the code students scan with the Camera app, and Put an AI-made quiz on your students' iPads covers school filters and shared iPads. To post the link in Google Classroom, see how to submit or post an HTML file in Google Classroom.
What the viewer can't do
- Load files beside the page. It reads the one file you choose. A path like
photo.pngorgame.jspoints to a file that stayed on the sender's computer. - Follow links to other pages of a site. A link to
about.htmlgoes nowhere, for the same reason. Links that open a new tab are off. - Show the page to anyone else. The page runs on that iPad only, and the viewer doesn't save it. To show it to others, publish it and send the link.
The sender can fix the first 2. Ask the AI that made the page to put all the CSS and JavaScript inside one HTML file, and to use full https:// links for images.
Frequently asked questions
How do I open an HTML file on an iPad?
Save the file to Files, then open Convika's free HTML viewer in Safari and tap Choose an .html file. The page runs there with its JavaScript, and the file isn't uploaded. Tapping the file in Files opens a Quick Look preview instead, which ran no scripts in our iPadOS 26.5 test. If someone sent you a file you weren't expecting, ask them first, and turn off Run scripts before you choose a file you're unsure of.
Can an iPad run HTML files?
Yes, in Safari, but not from a tap in Files. In our iPadOS 26.5 test, the Files preview showed the page without running its JavaScript, and Open With offered no app. Safari ran the same file's script when we chose the file in an HTML viewer, and it ran a published page's scripts when we opened its web address.
Why does my HTML file open as text on iPad?
The app you opened it with showed the file as text instead of running it as a page. We didn't test which iPad apps do that. In our test, the Files preview showed the page's text and CSS rather than its code, but ran none of its scripts, and Get Info listed its kind as "HTML text". To see the page as it was built, open it in Safari through an HTML viewer, or ask the sender for a link.
Can I open an HTML file in Safari on iPad?
Yes, through a web page that reads the file in Safari, such as Convika's HTML viewer: tap Choose an .html file and pick the file in the Files sheet. Scripts, web fonts, and web images loaded there in our test. Open With in Files didn't list Safari, and we didn't test typing a file's path into Safari. For a file you weren't expecting, ask the sender first and turn off Run scripts before you choose it.
How do I open an HTML file from email on iPad?
Touch and hold the attachment in Mail and choose Save to Files, as Apple's Mail guide for iPad describes. Then open the file in Safari through an HTML viewer. Tapping the saved file in Files gives the Quick Look preview, which ran no scripts in our test. We didn't test Mail itself, because the iPad Simulator has no Mail app.
Does Chrome on iPad open HTML files?
We didn't test Chrome on an iPad. Our test used Safari, which comes with the iPad. The Simulator has no Chrome, so we can't say whether Chrome appears under Open With on an iPad that has it installed.
Can students open HTML files on school iPads?
We didn't test a school-managed iPad. Apple's education deployment guide tells schools to manage app installations and filter web access, so what a school iPad opens depends on its settings: ask whoever manages your school's iPads. A link to a published page opens in Safari where the school allows the site, so open it on one student iPad before class.
Sources
- Find and view files and folders in Files on iPad (Apple) (checked October 24, 2026)
- Find your downloaded files on iPad (Apple) (checked October 24, 2026)
- Download email attachments in Mail on iPad (Apple) (checked October 24, 2026)
- Apple security releases (Apple) (published October 23, 2026; checked October 24, 2026)
- Best practices for content filtering (Apple Education Deployment Guide) (checked October 24, 2026)
Next step
How to password protect an HTML page without code, on your own domain
JavaScript passwords sit in the page code. Put an HTML page from ChatGPT or Claude behind a server-checked password on your own domain.
Related articles
- How do I open an HTML file on an iPhone, and how do I send one that opens?Tap an .html file in the iPhone Files app and you get a preview with no scripts. Open it in Safari with a free viewer, or send a link instead of the file.
- Put an AI-made quiz on your students' iPads: one link or QR code, no app, no loginAn .html quiz sent to iPads by AirDrop or email opens in a preview that may not run it. Publish it once and give students a link or a QR code instead.
- How do I open an HTML file on Android, and how do I send one that opens?Android asks which app opens an .html file. In our emulator test, Chrome ran the page and HTML Viewer didn't. Use Chrome or a free viewer, or get a link.
- How to share an HTML file as a link that opens on any phoneEmail and Google Drive open HTML on a phone without scripts. Compare 5 hosts (Netlify Drop, Tiiny Host, Pagelive, GitHub Pages, Convika) and follow 4 steps.
- Submit an HTML file in Google Classroom so your teacher sees the pageClassroom takes an HTML file, but the teacher gets the file. Hand in a link to the page instead. Teachers post a game for their class the same way.
- Turn an HTML file into a QR code people can scanA QR code holds a link, never the file. Publish the HTML page at an address that stays. Show its QR code in the dashboard and download it as a PNG.