How to open an index.html file on your phone, iPhone or Android
Quick answer
To open an index.html file on a phone, open Convika's free HTML viewer in Safari or Chrome, tap Choose an .html file, and pick index.html: the page runs with its CSS and JavaScript. When index.html came with a folder of CSS, JavaScript, and images, choose the site's .zip in the upload box on this page instead. The box puts the files index.html uses inside one page and gives you a link that opens on your iPhone or Android phone.
Pro starts with a free trial: 7 days free, then $12 a month. Cancel any time before the trial ends.
On this page
To open an index.html file on a phone, open Convika's free HTML viewer in Safari or Chrome, tap Choose an .html file, and pick index.html. The page runs in your phone's browser with its CSS and JavaScript, and there's no app to install. When index.html came with a folder of CSS, JavaScript, and images, choose the site's .zip in the upload box at the top of this page: it puts those files inside one page and gives you a link.
index.html is the home page of a website. MDN's guide to website files says: "index.html: This file will generally contain your homepage content, that is, the text and images that people see when they first go to your site." Beside it, MDN lists an images folder, a styles folder, and a scripts folder. So an index.html on your phone is one of 2 things: a whole page in one file, or the front page of a folder. Each has its own way to open.
Which index.html do you have?
| What is on your phone | Open it with | What you get |
|---|---|---|
index.html alone, with its CSS and JavaScript inside | Convika's HTML viewer: Choose an .html file | The page, running in Safari or Chrome |
A .zip with index.html, CSS, JavaScript, and images | The upload box: Choose a file | One combined page and a link to it |
A folder with index.html and its files, already unzipped | The upload box, after you compress the folder to a .zip | One combined page and a link to it |
| HTML code in a chat, with no file | The HTML viewer: Paste code, then Show the page | The page, running |
Open an index.html file on a phone in 3 steps
1. Find the file on your phone
On an iPhone, a download is in the Files app. Apple's steps: "Tap Browse", then "Tap the Downloads folder to see your downloaded files". On Android, Google's Chrome help says: "To find all the files that you've downloaded to your device, open the Files app."
2. Open the HTML viewer in Safari or Chrome
Go to convika.com/tools/html-viewer. It's free and needs no account.
3. Tap "Choose an .html file" and pick index.html
The page appears with its CSS and JavaScript running: tap its buttons, open its menus, fill in its fields. The viewer opens .html and .htm files up to 2 MB, and the file stays in your browser.
Under the page, the viewer names any file index.html asks for from its folder. In our test on November 22, 2026, an index.html that loads css/style.css, js/app.js, and img/logo.png showed its text in the viewer, with this line under it: "This page points to files on your device that cannot show here: style.css, logo.png, and app.js." That line tells you the page is the front of a folder. Open it the next way.
Open an index.html that came with a folder
A site folder travels as a .zip, and the upload box reads the .zip on your phone.
- In the upload box at the top of this page, tap Choose a file and pick the
.zip. The box takes ".html, .htm, or .zip". - The box finds
index.htmland puts the CSS, JavaScript, and images it uses inside that one file. It tells you what it did. - Tap Get my preview link. You get a link without an account. It works for 3 minutes.
- For a page with scripts, tap Open it running in this browser to use the page on your phone, with its buttons working.
- Tap Keep this page — free, no card to move the page into your account, where you publish it.
We ran it on November 22, 2026, in Playwright's Chromium 156 at 1280 pixels wide and in its WebKit 27.2 at an iPhone 15's size. The .zip held index.html, css/style.css, js/app.js, and img/logo.png. In both, the box answered: "Combined index.html, 1 CSS file, 1 JavaScript file, and 1 image into one file." The combined page showed its heading in the stylesheet's colour, ran the script, and drew the image, all from the single file.
The folder is already unzipped
Compress it again, then choose the .zip.
- iPhone. Apple's steps in the Files app: "Tap the More button, then tap Select", "Choose one or more files", then "Tap the More button in the lower right, then tap Compress."
- Android. Google's steps in Files by Google: "Select the files or folders you want to compress", tap More, then "From the dropdown menu, tap Compress."
Going the other way, Apple says: "Tap the ZIP file or archive. A folder is created containing the files." Google says to select the .zip file and "Tap Extract".
Ask the AI for one file
If ChatGPT, Claude, or Gemini made the site, one file is the short way. Paste this into the same chat:
Give me the whole site as one index.html file: the CSS in a <style> tag, the JavaScript in <script> tags, and full https:// links for images.
Then open the new index.html in the HTML viewer. How to make an HTML file on iPhone or Android covers saving code from a chat as a file.
Put index.html online from your phone
A page on your phone opens for you. A link opens for everyone you send it to:
- Upload
index.htmlor the.zipin the upload box and tap Get my preview link. - Tap Keep this page — free, no card and sign up. The page moves into your account, and its scripts run in the dashboard preview.
- Tap Publish page. Under Who can open this page?, choose Public and tap Next. The first time, Convika shows Publish free, and under it Publish without the Convika bar, which starts Pro with its free trial: 7 days free, then $12 a month, cancel any time before it ends.
- Copy the address under Live URL and send it. It opens in the browser on any iPhone or Android phone.
The Free plan includes 1 published page and 10,000 page views a month.
Frequently asked questions
How do I open an index.html file on my phone?
Open Convika's free HTML viewer in Safari or Chrome, tap Choose an .html file, and pick index.html. The page runs in the browser with its CSS and JavaScript. For an index.html with a folder of other files, choose the .zip in the upload box.
How do I open an index.html file on an iPhone?
Save it to the Files app, open the HTML viewer in Safari, tap Choose an .html file, and pick it. How to open an HTML file on iPhone shows what a tap in Files does instead.
How do I open an index.html file on Android?
Open the HTML viewer in Chrome, tap Choose an .html file, open Downloads in the picker, and tap index.html. How to open an HTML file on Android has the steps from the Files app.
What is an index.html file?
The home page of a website. MDN says it "will generally contain your homepage content, that is, the text and images that people see when they first go to your site". A web server shows it first, and a folder you download or unzip keeps it beside the site's styles, scripts, and images.
Why does my index.html show no styles or images on my phone?
The file names other files in its folder, such as style.css, and the viewer reads one file. Choose the folder's .zip in the upload box: it puts the CSS, JavaScript, and images inside the page. HTML file missing images and styles covers each cause.
Can I open a .zip with index.html on a phone?
Yes. Tap Choose a file in the upload box and pick the .zip. In our test, a .zip with index.html, 1 CSS file, 1 JavaScript file, and 1 image became one page that ran its script and showed its image.
Is my index.html uploaded when I open it in the viewer?
No. In the HTML viewer, your browser reads the file on your phone. The upload box sends the page to Convika when you tap Get my preview link, and the link is private.
Skipbox
Cheap & fast GitHub Actions runners, unlimited for $39 a month
Your own machine keeps Docker layers and package caches between jobs. Switch by changing one runs-on line.
Start a free Skipbox trialSources
- Dealing with files (MDN Web Docs) (read November 22, 2026)
- Find your downloaded files on iPhone (Apple, iPhone User Guide) (read November 22, 2026)
- Create or open ZIP files on your iPhone, iPad, or Apple Vision Pro (Apple Support) (read November 22, 2026)
- Download a file, Android phone & tablet (Google Chrome Help) (read November 22, 2026)
- Compress your files (Files by Google Help) (read November 22, 2026)
- Unzip your files (Files by Google Help) (read November 22, 2026)
Next step
How to password protect an HTML page or website
A JavaScript password script leaves the password in the page source. To password protect an HTML page or link, encrypt the file or let a server check it.
Related articles
- How to open an HTML file on iPhoneOpen an HTML file on iPhone in 3 steps: save it to Files, open a free HTML viewer in Safari, tap Choose an .html file. It runs with CSS and JavaScript.
- How do I open an HTML file on Android in Chrome mobile?HTML file shows code or won't open on Android? Open it in Chrome with a free HTML viewer and the page runs, buttons and all. No app, no account.
- My HTML file opens but the images and styling are missing. Why?An .html file is only the page: its images, style.css, scripts, and fonts are other files. Our October 2026 tests show what goes missing, and how to fix each.
- How to make an HTML file on your iPhone or Android phoneNotes and Messages keep HTML code as text, not a page. Run the code in a free viewer, get a link, or save a real .html file on iPhone or Android.
- How to open an HTML file on any computer, phone, or tabletDouble-click an .html file to open it in your browser. On a phone, open it in Convika's free HTML viewer. What an HTML file is, steps by device, and fixes.
- How to share an HTML file as a link that opens on any phoneUpload the file to a host and send its link; email and Google Drive send the code. 8 hosts compared, from Convika to Netlify Drop, with 4 steps.