Pas encore en français : cette page est en anglais.

How do I open an HTML file on a Chromebook, and send one that opens?

Quick answer

On a Chromebook, open the Files app, find the .html file in Downloads or Google Drive, and double-click it, or press Ctrl + O in Chrome and choose it. A school-managed Chromebook can block local files and downloads. If it does, paste the code into an HTML viewer, or share a link instead of the file.

Get a link for my HTML file

Free plan: no credit card, 1 published page.

On this page

A classmate shares a game made with Gemini, or you download a quiz ChatGPT wrote, onto a Chromebook. This guide shows how to open the .html file in Chrome, what a school-managed Chromebook can turn off, how to change the file, and how to give a class one link instead of a file. On a Windows PC, see how to open an HTML file on Windows. On an iPad, see the iPad guide. For a guide in Japanese, see ChromebookでHTMLファイルを開く方法.

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 on a Chromebook in 4 steps

We didn't test these steps on a Chromebook. They come from Google's Chromebook help and from Chromium's source code for the ChromeOS Files app, both read on October 25, 2026.

1. Open the Files app

Press Shift + Alt + M, Google's shortcut for the Files app. On the left, choose where the file is: Downloads for a file you downloaded, Recent for one you just used, or Google Drive for a file in your Drive.

2. Double-click the file

Google's help says to find your file and double-click it to open it. In Chromium's source code for the Files app, .htm and .html files are on the list the Files app opens in the browser. An HTML file opens there by default, unless you installed an app that registers .html files. A file saved on the Chromebook or in Google Drive opens in a new Chrome tab at an address that starts with file:///.

3. Or press Ctrl + O in Chrome

In Chrome, press Ctrl + O, which Google's list of Chromebook shortcuts calls "Open a file in the browser", and choose the file. Use this if a double-click opens another app.

4. If the page breaks, open it in the HTML viewer

Go to the free HTML viewer in Chrome and click Choose an .html file. Your browser reads the file, and it reaches Convika's servers only if you press Get a link by uploading this page. The page's scripts run in a frame walled off from convika.com. Files the page points to with tags, such as style.css or game.js, can't show there, because the viewer reads only the one file, and the viewer lists them under the page. If someone sent you the file and you weren't expecting it, ask the sender first, and turn off Run scripts before you choose it.

If the code came to you as text in a chat or a class post, choose Paste code, paste it, and click Show the page. There's no file to download or find. The viewer opens .html and .htm files up to 2 MB.

Downloads, Google Drive, and Open with

  • Downloads is temporary. Google's help says files are saved to the Downloads folder by default, "a temporary folder on your Chromebook's hard drive", and that the Chromebook "will sometimes delete downloaded files to clean up space." To keep a file, move it to Google Drive, or change where Chrome saves files under Settings > Downloads.
  • Google Drive shows up in Files. Google's help says to select the folder, such as Google Drive, for files in your cloud. A file there opens the same way as one in Downloads.
  • Open with picks another app. In Chromium's source, the Files app's menu for a file has Open with..., and Change default... opens "Choose the default app for … files". We didn't see that menu on a Chromebook. If another app took over .html files, choose Chrome there, or press Ctrl + O in Chrome.

What breaks when the page opens from file://

MDN, Mozilla's reference for web developers, says: "Many browsers, including Firefox and Chrome, now treat all local files as having opaque origins (by default). As a result, loading a local file with included local resources will now result in CORS errors." In Chromium's source, a page the Files app opens gets a file:/// address, so this applies to it.

In our test on a Mac on October 24, 2026, Chrome 155 ran scripts written inside the file and loaded Tailwind from the web. It blocked game.js loaded with <script type="module"> and a fetch() of data.json from the same folder. We didn't run these pages on a Chromebook. The Mac guide has the full table.

So a game whose code sits in a module file shows its HTML and nothing else. To see the error, press Ctrl + Shift + J, which Google lists as "Open the Console tab in the Developer Tools panel". To fix it, ask the AI that made the page for one HTML file with the CSS, the JavaScript, and any data inside it, or publish the page and open it from a link.

School Chromebooks: what an administrator can turn off

Google's list of file types that work on Chromebooks says: "If you use your Chromebook at work or school, some devices or files might not work with your Chromebook. For more help, contact your administrator." These are some of the Chrome Enterprise policies Google documents for ChromeOS:

PolicyWhat it does, in Google's wordsWhat you'd notice
URLBlocklist"stops web pages with prohibited URLs from loading". The URL format accepts the file scheme, and an entry of * "denies all requests except for those to blocklist exception URLs. This includes any URL scheme"A file from Files doesn't load, and sites the school didn't allow don't either
DownloadRestrictionsValue 3: "Blocks all downloads"The file never reaches Downloads
DownloadDirectory"On Google ChromeOS it's possible to set it only to Google Drive directories"Downloads land in a Google Drive folder
ExternalStorageDisabledMakes USB drives, SD cards, and other external storage "unavailable in the file browser". "Users can still access files saved in the Downloads folder"A file on a USB drive doesn't show in Files
DeveloperToolsAvailabilityValue 2: "you can't access Chrome DevTools" and, since Chrome 99, the shortcut to view a page's sourceCtrl + Shift + J does nothing

None of these is a setting to get around. If the file won't open, ask your teacher or the school's IT team. The viewer's Paste code needs no file or download, but it works only if the school lets the Chromebook open convika.com.

Make or change an HTML file on a Chromebook

  • Ask the AI. Tell the chat that made the page what to change, and ask for the whole file again.
  • Use the viewer. Click Edit the code under the page in the HTML viewer, change the code, and click Show the page. The file on your Chromebook doesn't change. Copy the code back into the file, or upload it.
  • Use the Text app. Google's shortcut list has a section for the Text app, with Ctrl + O for "Open file dialog" and Ctrl + S for "Save current file". We didn't check which Chromebooks come with it.
  • Turn on Linux. Google's help says Linux lets you install "code editors, and IDEs" and is off by default. Turn it on under Settings > About ChromeOS > Developers > Linux development environment > Set up. Setup "can take 10 minutes or more", and on a school or work Chromebook, "you might not be able to use Linux".

A file attached to a class post or an email arrives as a file. To run it, each student downloads it and opens it on their own Chromebook, where the school's settings and the file:/// limits above apply. A link opens the page from an https:// address in Chrome, with no file to find.

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, so it's for checking the page, not for the class.
  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. Convika accounts are for people 13 and over, and anyone under 18 needs a parent's or guardian's consent.
  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 post it to the class.

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 or pass) under Who can open this page? when you publish. Anyone with a private link can still open it.

To post it in Google Classroom, How to submit an HTML file in Google Classroom shows where the link goes. To put it on a projector or a worksheet, How to turn an HTML file into a QR code covers Show QR code in the dashboard. Students who open the link need no Convika account. Before class, open the link once on a student Chromebook: a school that allows only listed sites may block it.

Ways to open it, compared

Way to open itWhat you doWhere the page opensWhat a school setting can stopWho sees the page
Double-click in FilesFind the file in Files and double-click itA Chrome tab at a file:/// address (Chromium's source)A URL blocklist with file or *; blocked downloadsOnly you
Ctrl + O in ChromePress Ctrl + O and choose the fileA Chrome tabA URL blocklist; blocked downloadsOnly you
HTML viewer, Choose an .html fileChoose the file on the viewer's pageA walled-off frame on the viewer's pageA block on convika.com; the file must be on the ChromebookOnly you
HTML viewer, Paste codePaste the code and click Show the pageA walled-off frame on the viewer's pageA block on convika.com; no file neededOnly you
A link to a published pageClick the link or scan its QR codeChrome, from an https:// addressA block on that addressEveryone with the link, on any phone or computer

Frequently asked questions

How do I open an HTML file on a Chromebook?

Open the Files app with Shift + Alt + M, find the file in Downloads, Recent, or Google Drive, and double-click it. Or press Ctrl + O in Chrome and choose the file. In Chromium's source for the Files app, an .html file opens in a new Chrome tab. If the page then breaks, open it in the HTML viewer, which lists the files it's missing.

Why won't my Chromebook open an HTML file?

On a school or work Chromebook, the administrator may have blocked it. Google's Chrome Enterprise policies can block file:/// addresses or all downloads, and Google's help says some files might not work on a work or school Chromebook. Ask your teacher or IT team. On your own Chromebook, if another app opens the file, press Ctrl + O in Chrome instead.

How do I run HTML on a school Chromebook?

Paste the code into an HTML viewer, or open a link to the published page. Neither needs a file on the Chromebook, which helps when the school blocks downloads or file:/// addresses. Both need the school to allow the site. If the school blocks it, ask the IT team, and don't try to get around the school's settings.

Can I edit HTML on a Chromebook?

Yes. Ask the AI that made the page for a changed file, or change the code in the HTML viewer with Edit the code, which leaves your file as it is. Google's shortcut list includes the Text app, with Ctrl + O to open a file and Ctrl + S to save it. Linux, off by default, lets you install a code editor, but a school Chromebook may not allow it.

Where do downloaded files go on a Chromebook?

To the Downloads folder, unless you changed it in Chrome's settings or the school set another folder. Google calls Downloads a temporary folder: the Chromebook sometimes deletes downloaded files to clean up space. Move a file you want to keep to Google Drive.

Why does my HTML game not work on a Chromebook?

Because its code or data may sit in other files, which Chrome blocks on a page opened from Files. MDN says Chrome treats local files as having opaque origins. In our Mac test, Chrome 155 blocked a game.js module and a data.json file from the page's folder. Ask the AI for the whole game as one HTML file, or publish it and open the link.

How do I share an HTML file with my class?

Share a link, not the file. Publish the page, then post its address in Google Classroom or show its QR code. On Convika, drop the file into the upload box at the top of this page, keep the page on the Free plan, and publish it. Students open the link in Chrome with no account.

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

Give your class one link instead of a file

Upload the HTML file once and publish it. Students click the link or scan its QR code, and the page runs in the web browser on a Chromebook, iPad, or phone.

Get a link for my HTML file

Free plan: no credit card, 1 published page.