Convika

Русской версии пока нет — показана английская.

How to open an HTML file in Chrome (computer, iPhone, and Android)

Quick answer

On a computer, right-click the .html file, choose Open with, and pick Google Chrome, or press Ctrl + O in Chrome (Cmd + O on a Mac). On Android, tap the file in Files and choose Chrome. An iPhone only previews it, without scripts: use an HTML viewer, or a link, which opens in Chrome if Chrome is the default browser.

Get a link for my HTML file

Free plan: no credit card, 1 published page.

On this page

Your .html file opens in Notepad, in a code editor, in Edge or Safari, or as a preview on your phone, and you want it in Google Chrome. This guide covers the Chrome part on each device: the menu, the shortcut, the default app, the terminal, and VS Code. For everything else about one device, see the guides for Windows, Mac, iPhone, and Android.

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.

Open an HTML file in Chrome on Windows or a Mac in 4 steps

These steps come from Microsoft's, Apple's, and Google's help pages, read on November 4, 2026. We checked Chrome's File menu and the Terminal command in Chrome 156 on macOS 26.5.2 that day. We didn't try the Finder's Open With or Get Info > Change All, or the Windows steps on a Windows PC.

1. Check that the name ends in .html

A file named page.html.txt opens as text, whichever app you pick. Microsoft says a file name extension tells your computer "which application created or can open the file". The Windows guide shows how to see extensions in File Explorer.

2. Choose Open with, then Google Chrome

  • Windows. Microsoft's steps: "Right-click the file and select Open with > Choose another app to see a list of apps on your computer." Pick Google Chrome.
  • Mac. Apple's steps: "Control-click the file, choose Open With, then choose an app." Pick Google Chrome. Apple also lists dragging the file onto the app's icon in the Finder or the Dock.

This opens the file in Chrome once. The next double-click still uses the app set for .html files.

3. Or press Ctrl + O in Chrome

With Chrome open, press Ctrl + O on Windows, or Cmd + O on a Mac, and choose the file. Google lists Ctrl + O as "Open a file from your computer in Chrome". In Chrome 156 on our Mac, the File menu listed the same command as Open File…, with Cmd + O beside it.

4. Make Chrome the app for .html files

  • Windows. Microsoft's steps for a file type: open Settings, select Apps > Default apps, "type the file extension or protocol you wish to change" in the search bar, select the result, and choose an app. Type .html and choose Google Chrome, then do the same for .htm.
  • Mac. Apple's steps: select the file, choose File > Get Info, and under Open with, "Click the pop-up menu, choose an app, then click Change All."

From then on, a double-click opens every .html file in Chrome. Google's help for making Chrome your default browser is about links: "When you set Chrome as your default browser, links open automatically in Chrome." On Windows 11, Google adds that you should review the list under "Set default file types or link types" so the change reaches the right file types.

From the terminal

Each command that names Chrome opens the file at a file:/// address, the same as Open with.

Mac. In Terminal, go to the folder with the file and run:

open -a "Google Chrome" page.html

macOS's manual for open says -a "Specifies the application to use for opening the file", and that file names are read "relative to the shell or Terminal window's current working directory". On November 4, 2026, on macOS 26.5.2, the command, run with a fresh test profile, opened page.html in Chrome 156 at a file:/// address, and the script inside the page ran.

Windows. In Command Prompt, in the file's folder:

start page.html
start chrome page.html

Microsoft's page for start says a file that isn't a program opens "through their file association", in the app set for its type, so the first line opens Chrome only if Chrome is the app for .html files. The second names Chrome: Microsoft says start "searches for a specified executable file". We didn't test either line on Windows.

Linux. Google's Chromium documentation starts Chrome as google-chrome, and Chrome's manual page gives the form google-chrome [OPTION] [PATH|URL]:

google-chrome page.html

We didn't test it on Linux. On our Mac, Chrome's own program, started with a file name the same way, opened the file at a file:/// address.

From VS Code

VS Code's own preview isn't Chrome. Its HTML documentation says to "right-click the file in the File Explorer or the editor tab and select Open in Integrated Browser", which shows the page inside VS Code. To get the file into Chrome:

  • Find it on your computer. VS Code's documentation says to right-click a file and select Reveal in File Explorer on Windows, Reveal in Finder on macOS, or Open Containing Folder on Linux. Then open it with Chrome, as in step 2.
  • Use the terminal inside VS Code. Right-click the folder and select Open in Integrated Terminal, then run the command for your system from the previous section.
  • Use the Live Server extension. Its Marketplace page says it can "Launch a local development server with live reload feature for static & dynamic pages", with a customizable default browser. To start it, the page says: "Right click on a HTML file from Explorer Window and click on Open with Live Server", or "click to Go Live from the status bar". To have it open Chrome, add the line below to VS Code's settings.json, the file where VS Code "stores setting values" (the Preferences: Open User Settings (JSON) command opens it). Live Server's settings page lists chrome as a choice for this setting:
"liveServer.settings.CustomBrowser": "chrome"

Live Server's settings page gives 127.0.0.1 as its default host and 5500 as its default port, so the page opens from your own computer at an http:// address, not file:///. We didn't test VS Code or Live Server: VS Code isn't installed on the Mac we used. How to share an HTML file from VS Code covers the link other people can open.

On a Chromebook

A double-click in the Files app opens an .html file in a Chrome tab. Chromium's source code for the Files app says HTML "should open in the browser". Ctrl + O in Chrome works too: Google's list of Chromebook shortcuts calls it "Open a file in the browser". We didn't test a Chromebook. The Chromebook guide covers what a school Chromebook can block.

On an iPhone or iPad

Google's Chrome help for iPhone and iPad shows how to save a download to the Files app and find your downloads under More > Downloads. It has no step for opening an .html file saved on the phone, and we didn't test Chrome for iOS. What we know about the iPhone:

  • Tapping the file in Files opens a preview. Apple says that "If you haven't installed the app that created a file, a preview of the file opens in Quick Look." In our iOS 26.3 Simulator test of October 6, 2026, that preview ran no JavaScript.
  • Open With picks another app. Apple's steps: touch and hold the file, "Choose Open With from the menu, then choose an option." Get Info has Always Open With, to set the app for that file or file type. We didn't test whether Chrome appears in either list.
  • The HTML viewer runs the page in your browser. Open the free HTML viewer and tap Choose an .html file. The file isn't uploaded. The iPhone guide tested it in Safari, not in Chrome. If someone sent you a file you weren't expecting, ask them first, and turn off Run scripts before you choose it.
  • A link opens in Chrome if Chrome is your default browser. Google's steps: in Chrome, tap More > Settings > Default Browser, then Go to Settings… > Default Browser App, and choose Chrome. A link to a published page then opens in Chrome when you tap it.

On Android

In our Android 16 emulator test of October 21 and 22, 2026, with Chrome 133, tapping an .html file in the Files app showed Open with, listing Chrome and HTML Viewer. Chrome ran the whole page, at an address starting with content:// that points into your own phone. HTML Viewer showed the text and ran no JavaScript. So tap Chrome, then Just once; Always makes that app open every .html file. The Android guide has the full test and what to do if Chrome isn't in the list.

Google's Chrome help for Android says only where downloads go: "To find all the files that you've downloaded to your device, open the Files app." We didn't test Files by Google, Samsung's My Files, or a physical phone. If Chrome isn't offered, open the HTML viewer in Chrome and tap Choose an .html file. For a file you weren't expecting, ask the sender first, and turn off Run scripts before you choose it.

Why it opens in Chrome but looks broken

A page opened from your disk has a file:/// address, and Chrome blocks some of what it loads. In our test on November 4, 2026, Chrome 156 opened a page from disk, ran the script written inside it, and didn't run a game.js beside it loaded with <script type="module">. The Mac guide has the full table from October 24, with a data.json fetch and a built app's assets folder blocked too.

To see the error, open Chrome's developer tools: Google lists Ctrl + Shift + J or F12 on Windows, and Cmd + Option + I on a Mac. The fix is the same in every browser: ask the AI that made the page for one HTML file with the CSS, the JavaScript, and any data inside it, or put the page at a web address.

Save a page from Chrome as an HTML file

To save the page you have open, press Ctrl + S, or Cmd + S on a Mac. Google lists it as "Open options to save the current page". In Chrome 156 on our Mac, the File menu had Save Page As… with Cmd + S. Choose a folder and a name that ends in .html.

If you have HTML code rather than a page, you don't need to save it to see it. Paste it into the HTML viewer under Paste code and click Show the page. The viewer opens .html and .htm files up to 2 MB.

Ways to open it in Chrome, compared

Way to open itWhere it worksAddress in ChromeModule scripts and data files beside itWho sees the page
Open with > Google ChromeWindows, Macfile:///Blocked (our Mac test, Chrome 156)Only you
Ctrl + O or Cmd + OWindows, Mac, Chromebookfile:///Blocked, as aboveOnly you
open -a, start, google-chromeMac (tested), Windows and Linux (not tested)file:///Blocked, as aboveOnly you
Live Server in VS CodeWindows, Mac, Linuxhttp://127.0.0.1:5500 by defaultNot testedYou, on that computer
Files app > Open with > ChromeAndroid (emulator test)content://Not testedOnly you, on that phone
HTML viewer, Choose an .html fileA browser on a computer or phoneA walled-off frame on the viewer's pageNot loaded; the viewer lists files named in tagsOnly you
A link to a published pageAny phone or computerhttps://One HTML file goes up, so fold them into the page firstEveryone with the link

A file you send arrives as a file, so the other person goes through the steps above on their own device. A link opens the page from an https:// address in their browser, which is Chrome when Chrome is their default browser.

With Convika:

  1. 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.
  2. Click Keep this page — free, no card and sign up. The page moves into your account, and its scripts run in the dashboard preview.
  3. Click Publish page. Under Who can open this page?, choose Public and click Next. The first time, click Publish free.
  4. Copy the address under Live URL and paste it into the email or chat instead of the file.

On Free, the page is published as Public: anyone with the link can open it, and it may show up in search results and in Convika's gallery. To keep it out of both, choose Private link (Pro) under Who can open this page? when you publish. Anyone with a private link can still open it.

Convika hosts one HTML file per page, so fold any game.js or style.css into the page first. How to share an HTML file as a link compares other free hosts, and Is it safe to open an HTML file? covers files you weren't expecting.

Frequently asked questions

How do I open an HTML file in Chrome?

On Windows, right-click the file, choose Open with, and pick Google Chrome. On a Mac, Control-click it, choose Open With, and pick Google Chrome. Or open Chrome and press Ctrl + O (Cmd + O on a Mac), which Google lists as "Open a file from your computer in Chrome", and choose the file. The page opens at a file:/// address.

How do I make Chrome open HTML files by default?

On Windows, open Settings > Apps > Default apps, type .html in the search bar, select the result, and choose Google Chrome; do the same for .htm. On a Mac, select the file, choose File > Get Info, pick Google Chrome under Open with, and click Change All. Making Chrome your default browser changes which app opens links, which Google's help covers.

How do I open an HTML file in Chrome from the terminal?

On a Mac, run open -a "Google Chrome" page.html in the file's folder; in our test on macOS 26.5.2, it opened the file in Chrome 156. On Windows, start chrome page.html names Chrome, per Microsoft's description of start, and on Linux, google-chrome page.html, the form in Chrome's manual page. We didn't test the Windows or Linux commands.

How do I open an HTML file in Chrome from VS Code?

Right-click the file in VS Code's Explorer and select Reveal in File Explorer (Windows) or Reveal in Finder (macOS), then open it with Chrome. Or select Open in Integrated Terminal and run the terminal command for your system. VS Code's Open in Integrated Browser shows the page inside VS Code, not in Chrome. With the Live Server extension, right-click the file and choose Open with Live Server, or click Go Live in the status bar, as its Marketplace page says; the line "liveServer.settings.CustomBrowser": "chrome" in VS Code's settings.json makes it open Chrome. We didn't test VS Code or Live Server.

How do I open an HTML file in Chrome on iPhone or iPad?

Google's Chrome help for iPhone and iPad doesn't describe opening a saved .html file, and we didn't test Chrome for iOS. Tapping the file in the Files app opens a Quick Look preview, which ran no JavaScript in our iOS 26.3 test. Use an HTML viewer (tested in Safari), or put the page at a link and make Chrome your default browser, so the link opens in Chrome.

Can I open an HTML file in Chrome on Android?

Yes. Tap the file in the Files app and choose Chrome when Android asks which app to use. In our Android 16 emulator test with Chrome 133, the page ran with its scripts, at a content:// address that points into the phone. If Chrome isn't offered, open an HTML viewer in Chrome and choose the file there.

How do I save an HTML file in Chrome?

Press Ctrl + S, or Cmd + S on a Mac, which Google lists as "Open options to save the current page", and give the file a name that ends in .html. On a Mac, File > Save Page As… does the same. If you have HTML code rather than a page, paste it into an HTML viewer instead.

Why does my HTML file look broken in Chrome?

Because a page opened from your disk can't load everything. In our test on November 4, 2026, Chrome 156 ran a script written inside the page and blocked a game.js module beside it. Images and .css files that stayed in another folder don't show either. Ask the AI for one self-contained HTML file, or publish the page and open its link.

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

Send a link that opens in any browser

Upload the HTML file once and publish it. The person you send it to clicks the link and the page opens in Chrome, or whatever browser their phone or computer uses.

Get a link for my HTML file

Free plan: no credit card, 1 published page.