Convika

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

How to open an HTML file in Microsoft Edge (and why it won't open)

Quick answer

On Windows, right-click the .html file, choose Open with, and pick Microsoft Edge, or press Ctrl + O in Edge (Command + O on a Mac). If it won't open, the name may end in .txt, Edge may have blocked the download, or your organization may block local files. On a phone, use an HTML viewer or a link.

Get a link for my HTML file

Free plan: no credit card, 1 published page.

On this page

Your .html file came from ChatGPT, Claude, a colleague, or an export. On a work or school PC, Edge may be the only browser there, and a double-click gives you Notepad, a download bar, a wall of code, or a blank page. This guide covers the Edge part: the menu, the shortcut, the default app, Edge on a Mac or a phone, and why the file won't open. For everything else about Windows, see how to open an HTML file on Windows. For other browsers, see the guides for Chrome, Firefox, and Safari.

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 Microsoft Edge on Windows in 3 steps

These steps come from Microsoft's help pages, read on November 5, 2026. We didn't try them in Edge or on a Windows PC. The test results further down come from Chromium, the browser Edge is built on, on a Mac.

1. Right-click the file and choose Open with

Microsoft's steps: "Right-click the file and select Open with > Choose another app to see a list of apps on your computer." Pick Microsoft Edge for this one file. Unless you tell Windows to always use Edge, the next double-click still uses the app set for .html files.

2. Or press Ctrl + O in Edge

With Edge open, press Ctrl + O and choose the file. Microsoft lists Ctrl + O as "Open a file from your computer in Edge". The page opens at an address that starts with file:///, the address of a file on your own disk.

3. Make Edge the app for .html files

Open Settings, select Apps > Default apps, and under Set defaults for applications, select Microsoft Edge. Microsoft says this shows "what file types or link types it can open". Select .html, choose Microsoft Edge, and do the same for .htm. From then on, a double-click opens every .html file in Edge.

Microsoft's page gives separate steps to make Edge your default browser: next to Make Microsoft Edge your default browser, select Set default. It doesn't say whether that changes the app for .html files, so check the .html entry afterwards.

On a Mac

Microsoft's shortcut list for Edge for Mac gives Command + O: "Open a file from your computer in Edge". In the Finder, Apple's steps are "Control-click the file, choose Open With, then choose an app", or "Drag the file onto the app icon in the Finder or the Dock."

To make every .html file open in Edge, select one, choose File > Get Info, and under Open with, "Click the pop-up menu, choose an app, then click Change All." We didn't test Edge for Mac. The Mac guide covers the rest of the Mac side.

On an iPhone, iPad, or Android phone

The Microsoft help pages we read don't describe opening a saved .html file in Edge on a phone, and we didn't test Edge on one. Here is what the phone itself does:

  • iPhone and iPad. Tapping the file in the Files app opens a preview. Apple says: "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. On an iPad, in our iPadOS 26.5 Simulator test of October 24, Open With said "No Apps Available". Edge wasn't installed on either simulator.
  • Android. In our Android 16 emulator test of October 21 and 22, 2026, the Files app's Open with listed Chrome and HTML Viewer. Edge wasn't installed on that emulator, so we don't know whether Android lists it.

Two ways work without the Files app. Open the free HTML viewer in your phone's browser and tap Choose an .html file. The file isn't uploaded. We tested that in Safari on an iPad Simulator and in Chrome on the Android emulator, not in Edge. Or put the page at a link, which opens in the phone's browser. If someone sent you a file you weren't expecting, ask them first, and turn off Run scripts before you choose it.

Why an HTML file won't open in Edge

What you seeWhyWhat to do
A double-click opens Notepad or another appWindows opens a file with the app set for its type. Microsoft: an extension tells your computer "which application created or can open the file"Step 1 for one file, step 3 for all of them
Edge shows the code as plain textThe name really ends in .txt, such as page.html.txt, with the extension hiddenTurn on file name extensions and rename it, as the Windows guide shows
The page opens, but it's blank or its buttons do nothingIt needs a module script or a data file beside it, which Chromium blocked on a file:/// page in our testThe next section
Text with no pictures or stylesThe image and .css files the page points to aren't beside it. In our test they loaded when they wereHTML file missing images or styles
The download says "Couldn't download - Blocked"Microsoft: "Security settings, SmartScreen, or Group Policy blocked the download."Ask the sender for a link instead. Is it safe to open an HTML file? covers files you weren't expecting
Ctrl + O shows a message instead of the file pickerYour organization turned off file selection dialogs. Microsoft: "a message is displayed instead"Ask your IT team. The viewer's Paste code needs no file
The page is blocked on a work or school PCYour organization set a policy for Edge, such as URLBlocklistThe section on policies

When SmartScreen blocked the download, Microsoft's troubleshooting page says to select More actions (...) next to it, and: "If you trust the source, select Keep > Show more > Keep anyway to override the block." Do that only for a file you were expecting, from someone you know. A download your organization's DownloadRestrictions policy blocks can't be kept that way, as the section on policies shows. Microsoft's May 2021 list of file types that Edge treats as "potentially dangerous, but most likely harmless if the user requests the download" doesn't include .htm or .html. We didn't test whether Edge blocks an .html download.

To see the code, press Ctrl + U, which Microsoft lists as "View source". To see the error on a page that breaks, press F12 or Ctrl + Shift + I, which Microsoft lists as "Open Developer Tools".

What Edge blocks on a page opened from disk

Microsoft calls Chromium "the browser engine which Microsoft Edge is based on", and says: "Microsoft Edge adopts nearly all of the Chromium project's changes to the web platform." So we tested Chromium: on November 5, 2026, we opened a test page from disk in Chromium 156.0.8078.4, Playwright's test build, headless, on a Mac with macOS 27.2. This isn't Edge, and we didn't test Edge or Windows. Then we served the same folder from the Mac and opened it at http://localhost.

In the test pageChromium 156, from file:///Same page from a local server
A script written inside the fileRanRan
style.css and photo.png in the same folderLoadedLoaded
classic.js in the same folder, loaded with <script src="classic.js">RanRan
game.js in the same folder, loaded with <script type="module" src="./game.js">Didn't runRan
fetch("data.json"), or an XMLHttpRequest, for a file in the same folderFailed, with "TypeError: Failed to fetch"Loaded
fetch("sub/data.json") for a file in a subfolderFailedLoaded
A script reading frame.html from the same folder, shown in an <iframe>BlockedRead it
A number saved with localStorage, then the page opened againKeptKept

Chromium's console said why, for the module and each fetch:

Access to script at 'file:///…/game.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: … http, https, isolated-app.

MDN, Mozilla's reference for web developers, explains it: "Many browsers, including Firefox and Chrome, now treat all local files as having opaque origins (by default)." The fixes don't need a setting changed:

  • Ask the AI for one file. Ask the chat that made the page for one HTML file with the CSS, the JavaScript, and any data inside it.
  • Serve the folder. A developer can run a local server in the page's folder, as the Mac guide's local server fix shows. In our test, everything ran that way.
  • Open it in the HTML viewer or publish it. The HTML viewer runs the page in a frame walled off from convika.com. Files the page points to with tags can't show there, and the viewer lists them under the page. A published page opens from an https:// address.

When your organization blocks local files

On a PC your school or employer manages, an administrator can set Edge policies that stop these steps. To see which ones apply, Microsoft's troubleshooting page says: "Open Microsoft Edge, and go to edge://policy." That page lists them and changes nothing.

  • AllowFileSelectionDialogs. Microsoft: when it's off and you do something that opens a file picker, "a message is displayed instead". Ctrl + O and the viewer's Choose an .html file both open a file picker.
  • URLBlocklist. It "Defines a list of sites, based on URL patterns, that are blocked (your users can't load them)." Microsoft's URL filter format lists file among the schemes an entry can name, so the list can take in pages on your disk, though Microsoft adds: "This policy doesn't work as expected with file://* wildcards." Microsoft lists it for Edge on Windows, macOS, Android, and iOS, so a managed Edge on a phone can be blocked too.
  • DownloadRestrictions. It "Configures the type of downloads that Microsoft Edge completely blocks, without letting users override the security decision." Microsoft: "Set 'BlockAllDownloads' to block all downloads." The restrictions "apply to downloads from web page content", so with that setting, a file you download in Edge, from webmail for example, never arrives.

Don't try to get around your school's or company's settings. Ask the IT team to open the file for you, or ask the sender for a link. The viewer's Paste code needs no file, but it works only if the PC can open convika.com. The Windows guide's section on school and work PCs compares the same policies in Chrome.

Ways to open it in Edge, compared

Way to open itWhere it worksAddress in EdgeModule scripts and data files beside itWho sees the page
Open with > Microsoft EdgeWindows, Macfile:///Blocked (our Chromium 156 test)Only you
Ctrl + O, or Command + O on a MacWindows, Macfile:///Blocked, as aboveOnly you
Tap the file in FilesiPhone, iPadA Quick Look preview, with no JavaScript in our iOS 26.3 test (Edge not installed)Not loadedOnly you
HTML viewer, Choose an .html fileAny browser on a computer or phoneA walled-off frame on the viewer's pageNot loaded; the viewer lists files named in tagsOnly you
A local serverA computer you can run one onhttp://localhostLoaded (our Chromium 156 test)You, on that computer
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, with their own PC's policies. A link opens the page from an https:// address in their browser, which is Edge when Edge 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. You can also start from the free HTML publishing tool, which has the same upload box. To share it at work, see how to share an HTML file in Teams and in SharePoint or OneDrive.

Frequently asked questions

How do I open an HTML file in Microsoft Edge?

On Windows, right-click the file, choose Open with, and pick Microsoft Edge. Or open Edge, press Ctrl + O, which Microsoft lists as "Open a file from your computer in Edge", and choose the file. On a Mac, press Command + O in Edge, or Control-click the file and choose Open With. The page opens at a file:/// address.

Why can't I open an HTML file in Edge?

Check four things: the name really ends in .txt, Edge blocked the download ("Couldn't download - Blocked"), the page needs files that a file:/// page can't load, or your organization set an Edge policy. Microsoft's troubleshooting page says to go to edge://policy to see the policies that apply. On a work PC, ask the IT team, or ask the sender for a link.

How do I open a local HTML file in Edge?

Press Ctrl + O in Edge and choose the file, or right-click it and choose Open with > Microsoft Edge. If the page is blank, it may load a module script or a data.json from its folder. In our test, Chromium 156, the browser Edge is built on, blocked both on a file:/// page and ran them from a local server.

How do I make Edge open HTML files by default?

Choose Microsoft Edge for .html and .htm in Settings > Apps > Default apps, as step 3 above and the Windows guide show.

How do I view an HTML file in the Edge browser?

Open Edge, press Ctrl + O, and choose the file: the page shows at a file:/// address. To see its code, press Ctrl + U, which Microsoft lists as "View source". To see errors, press F12 or Ctrl + Shift + I to open the developer tools. To see and change the code of a file without changing the file, 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.

Can I open an HTML file in Edge on iPhone or Android?

On an iPhone, tapping the file in Files opens a Quick Look preview, which ran no JavaScript in our iOS 26.3 test. On Android, the Files app's Open with listed Chrome in our emulator test; Edge wasn't installed, so we don't know whether it's offered. Microsoft's help pages we read don't cover either, and we didn't test opening a file in Edge on a phone. Open an HTML viewer in the phone's browser and choose the file, or open a link to the published page.

How do I send an HTML file so it opens in Edge for someone else?

Send a link, not the file. A file opens from the other person's disk, with their PC's blocks and policies, and the files beside it stay on yours. Publish the page and send its address. It opens in Edge when Edge is their default browser.

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

AI Skill Pod

Share AI skills with your team, the easy way

Everyone uses your team's skills in their own ChatGPT, Claude or Gemini, on any plan. Send one invite link. Free to start.

Start free on AI Skill Pod⁠

AI Skill Pod is made by the team behind Convika.

Share this article

Send a link that opens in Edge

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

Get a link for my HTML file

Free plan: no credit card, 1 published page.