Convika

Още не е на български, затова е на английски.

How to make an HTML file on your iPhone or Android phone

Quick answer

You don't need a file to see AI-made HTML code on a phone: paste it into a free HTML viewer in Safari or Chrome to run it, or into a publish box for a link. For an .html file, keep the page on Convika's Free plan and download it, or rename a .txt file on Android; the iPhone's Files app has no new-file option.

Get a link for my HTML code

Free plan: no credit card, 1 published page.

On this page

ChatGPT, Claude, or Gemini answered with a long block of code that starts with <!DOCTYPE html>, and you're on your phone. You paste it into Notes and get a note full of code. You save it, and the file ends in .txt, or it opens as code again.

That code is a whole web page. It needs a browser to run it, and a file is one way to get it there, not the only one. For each assistant's copy button and its own preview, see how to run HTML code from ChatGPT, Claude, or Gemini. This page is the phone side of that job: what your phone can and can't do with the code.

The Apple and Google help pages quoted here were read on November 4, 2026, and the Android steps were tested the same day in Google's Android 16 emulator. The iPhone results come from our earlier iOS 26.3 tests; the iPhone steps that are new on this page weren't tested on an iPhone.

To see the page now: paste the code into Convika's free HTML viewer in Safari or Chrome. It needs no file and no account, and the code isn't uploaded.

To send it to someone: the page needs a web address. Switch the box at the top of this page to Paste code, paste, and tap Get my preview link. That link is for checking the layout yourself: it runs no scripts and works for 3 minutes. Keep the page on the Free plan and publish it for a link that stays.

To keep an .html file: on Android, rename a text file so its name ends in .html. On an iPhone, Apple's Files guide lists no way to start a new file, so the file comes from a download or another app. Both are below.

Why pasting into Notes or a message doesn't make a page

A web page is code that a browser reads and runs. Notes, Messages, WhatsApp, and email keep the same code as text, so they show you the code.

  • Notes keeps notes, not web pages. Apple's Notes guide for iPhone gives 3 ways to export a note: Open in Pages, a PDF, and Export as Markdown. None of them is an .html file.
  • A file whose name ends in .txt is a text file. In our earlier Chrome test, a full page saved as page.html.txt showed every tag on screen, and its script didn't run (why an HTML file shows code).
  • A real .html file still needs a browser. On an iPhone, tapping one in the Files app opens a Quick Look preview, which ran no JavaScript in our iOS 26.3 test. A quiz or a game looks finished there and does nothing.

So the job has 2 parts: get the code into a browser, and, only if you need it, save a file.

Copy the whole code block, from <!DOCTYPE html> to </html>. Open Convika's free HTML viewer in Safari or Chrome, choose Paste code, paste, and tap Show the page. The page runs with its CSS and JavaScript in your phone's browser, and nothing is uploaded. Pasted code can be up to 2 MB. The ChatGPT, Claude, and Gemini guide covers what the viewer doesn't run, such as pop-up boxes and saved data after a reload.

For someone else to open the page, it needs an address:

  1. In the box at the top of this page, switch to Paste code, paste the code, and tap Get my preview link. You get a link without an account, with scripts and forms off, that works for 3 minutes. It's for checking the layout.
  2. Tap Keep this page — free, no card and sign up. The page moves into your account, where its scripts run.
  3. Tap Publish page. Under Who can open this page?, choose Public and tap Next. The first time, tap Publish free. Under it, Publish without the Convika bar opens an order for Pro monthly ($12 a month, after a free 1-day trial with a card).
  4. Copy the address, such as yourpage.convika.page, and send it instead of the code.

How to share an HTML file as a link compares other free hosts. To keep the page as an icon on your home screen, see how to turn an HTML file into an app on your phone.

Save HTML code as an .html file on your phone in 4 steps

A teacher may want the file in Google Classroom, or you may want it for later. These steps need no editor app: Convika writes the file for you.

1. Copy the whole code block

In the ChatGPT, Claude, or Gemini app, copy everything from the first <!DOCTYPE html> to the last </html>. If the answer has separate HTML, CSS, and JavaScript blocks, ask the AI for "the whole page as one HTML file" first.

2. Paste it into the box at the top of this page

Switch the box to Paste code, paste, and tap Get my preview link.

3. Keep the page in a free account

Tap Keep this page — free, no card and sign up. The page moves into your account. You don't have to publish it to download it.

4. Tap Download HTML on the page's screen

On the page's screen, find Update from an HTML file and tap Upload a new version. Under "Latest version (v1) as HTML", tap Download HTML. The file is named after the page, like yourpage-v1.html.

Where the file goes. On an iPhone, Apple's guide says files you download from the internet are in the Downloads folder of the Files app. We didn't test this download on an iPhone. On Android, we ran the button's download steps, with the HTML built into a test page, in Chrome 133 on the Android 16 emulator: Chrome said "File downloaded", the file appeared in Downloads with its .html name, and Open showed the page with its script running.

On iPhone: what Files, Notes, and Pages can do

Apple's own apps can get you close to an .html file, but not all the way in one step:

  • Files. Apple's Files guide shows the More menu with Select, New Folder, Scan Documents, and Connect to Server, and it names no way to start a new text file. Files can rename one: touch and hold the file, then choose Rename.
  • Notes. A PDF or a Markdown file, as above.
  • Pages. Apple's Pages guide for iPhone lists Plain Text under More > Export: "Body text is exported as unformatted text." That gives a .txt file, which then needs a name ending in .html.

We didn't test whether Files keeps .html when you rename a .txt file. If you try it, check the full name afterward: a file whose name ends in .html.txt is still a text file.

A code editor app from the App Store can also save plain text under a name you type. Check that its App Store page says it saves .html files; we didn't test one.

On Android: rename a text file to .html

Google's help for Files by Google gives the rename steps: tap a category, tap More next to the file (or press and hold it in grid view, then tap More), tap Rename, enter a new name, and tap OK.

What we saw on Android 16. The emulator's file manager is the Files app that comes with Android; on many phones, Files by Google or Samsung's My Files does the same job. We long-pressed quiz.txt in Downloads, opened the menu at the top right, and chose Rename. The box showed the whole name, quiz.txt, so we changed .txt to .html and tapped OK. Android showed no warning about the new extension, and the file kept its size. Tapping it offered Chrome and HTML Viewer. In Chrome, the page's script ran and its button counted 2 taps.

The rename needs a text file to start from. If you have only the code, save it first with a plain-text editor app (we didn't test one), or let Convika write the file, as in the 4 steps above. On a Galaxy, the Samsung guide covers My Files.

Open the file you made

When the page needs more than one file

One .html file is the whole page only when its CSS and JavaScript are inside it. If the AI split the page into index.html, style.css, and script.js, or the code loads photo.png by name, the file on your phone shows without those parts. The HTML viewer lists the missing files under the page. Ask the AI for one file with everything inside, and full https:// links for images; why images and styling go missing has the prompt and the other fixes.

Ways to get from code to a page on a phone, compared

WayAccount neededScripts runOthers can open itYou get an .html file
Paste into Notes or a messageNoNo: you see the codeNoNo
Paste into Convika's HTML viewerNoYes, unless you turn off Run scriptsNo, only you, on that phoneNo
Paste into the upload box (preview link)NoNo, scripts are offIt's for checking; the link works for 3 minutesNo
Keep and publish the page on Convika FreeYes, free, no cardYesYes, anyone with the linkYes, with Download HTML
Rename a .txt file in Android's Files appNoYes, opened in Chrome, in our Android 16 testNo: the address points into your phoneYes
Export Plain Text from Pages, then rename (iPhone)NoNot testedNoNot tested

Frequently asked questions

How do I create an HTML file on my iPhone?

Apple's guide to the Files app lists no way to start a new text file, so the file has to come from somewhere else. One way: paste the code into Convika's upload box, keep the page on the free plan, and tap Download HTML on the page's screen; Apple says downloads go to the Downloads folder in Files. We tested that download on Android, in our emulator test; we didn't test it on an iPhone. Another: export Plain Text from Pages and rename the file, which we didn't test. To see the page without a file, paste the code into an HTML viewer in Safari.

Can I create an index.html file on iPhone for free?

Yes. index.html is only a name: the code inside is what makes it a page. Get an .html file as above, then rename it in Files (touch and hold, Rename) if a tutorial or a host asks for that name. Convika's Download HTML and the free plan cost nothing. Convika itself takes any .html or .htm file name.

How do I make an HTML file on Android?

Save the code in a text file, then rename it so the name ends in .html. In our Android 16 emulator test, the Files app's Rename box showed the whole name, quiz.txt, and accepted quiz.html with no warning; Chrome then ran the page. Google's Files by Google help gives the same steps: More, Rename, a new name, OK.

How do I run HTML code on my phone?

Paste it into an HTML viewer in your phone's browser. In Convika's free HTML viewer, choose Paste code, paste, and tap Show the page: the page runs with its CSS and JavaScript, and the code isn't uploaded. You don't need to make a file first.

How do I save ChatGPT code as an HTML file on my phone?

Copy the whole code block in the ChatGPT app, paste it into Convika's upload box, keep the page on the free plan, and tap Download HTML on the page's screen. On Android, in our emulator test, the file landed in Downloads with a name like yourpage-v1.html; we didn't test it on an iPhone. If ChatGPT gives you a file to download, use that instead.

Why does my HTML file open as text on my phone?

Either the file isn't really an .html file, or the app that opened it isn't a browser. A name that ends in .txt, or .html.txt, is a text file. On an iPhone, the Files app opens even a real .html file in a Quick Look preview that ran no JavaScript in our iOS 26.3 test. Open it in Safari through an HTML viewer, or in Chrome on Android.

Can I make an HTML file in Notes?

No. Apple's Notes guide for iPhone lists Open in Pages, a PDF, and Export as Markdown as the ways to export a note, and none of them is an .html file. Paste the code into an HTML viewer to see it, or into Convika's upload box to get a link and a file.

Sources

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

More ways to send your page

Share this article

Turn the code on your phone into a link

Paste the code once and publish it. Anyone you send the link to opens the page in their browser, with its buttons working, and you can still download it as an .html file.

Get a link for my HTML code

Free plan: no credit card, 1 published page.