File Format & Compatibility

How to Fix Outlook View in Web Browser Opening as Code in Chrome

Ayan MasoodAyan Masood Nov 2, 2026 876 views

Question details

The user needs a solution for Outlook's 'View in Web Browser' feature opening emails as raw HTML code instead of properly formatted text when Google Chrome is the default browser.

How to Fix Outlook View in Web Browser Opening as Code in Chrome
Product
Microsoft Outlook
Device & OS
Windows
Scenario
Attempting to view an archived Outlook email message in a web browser for better readability.
Observed behavior
The generated .mht or .mhtml file opens in Google Chrome as raw source code rather than rendering as a formatted web page.
Before you start

Verify that your Windows operating system is fully updated. Please note that Google Chrome does not natively support rendering .mht or .mhtml archive files without the assistance of third-party extensions.

Solution 1Recommended

Change the Default Handler for .mht and .mhtml Files to Microsoft Edge

Assigning Microsoft Edge to handle .mht and .mhtml files is the most reliable workaround, as Edge has built-in backward compatibility for legacy Internet Explorer formats.

When Outlook uses 'View in Web Browser', it saves a temporary .mht file. Since Internet Explorer is retired and Chrome cannot render this format naturally, redirecting these specific file types to Microsoft Edge will ensure they display correctly without changing your default web browser for regular internet links.

1
Open Windows Settings

Press the Windows Key + I on your keyboard to open the Settings application, then click on 'Apps' from the main menu.

2
Navigate to Default Apps

Select 'Default apps' from the left-hand navigation pane, then scroll down and click on the 'Choose default apps by file type' link.

3
Locate the .mht Extension

Scroll down the alphabetical list of file extensions until you find '.mht' and '.mhtml'.

4
Switch the Application to Edge

Click on the current default application (likely Google Chrome) next to these extensions, and choose 'Microsoft Edge' from the list of available apps. Close the settings window and test the link in Outlook.

Change the Default Handler for .mht and .mhtml Files to Microsoft Edge
Enable IE Mode in Edge: If the file still does not display perfectly in Edge, open Edge Settings, navigate to 'Default browser', and set 'Allow sites to be reloaded in Internet Explorer mode' to 'Allow'.
Free Microsoft Office alternative

Switch to WPS Office for a Seamless Document Experience

Tired of dealing with legacy file format errors and complex compatibility settings in Microsoft Office? WPS Office offers a free, lightweight, and highly compatible alternative to handle all your daily document needs without frustrating workarounds.

  1. 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install WPS Office: Run the downloaded installation file and follow the simple on-screen instructions to set up the software.
  3. 3. Open Your Documents: Launch WPS Office to immediately begin opening, editing, and saving your existing documents with perfect formatting.
Fully compatible with Microsoft Office formats, including Word, Excel, and PowerPoint files.Lightweight installation that runs fast and smoothly on any Windows PC or Mac.Familiar user interface ensuring zero learning curve and seamless migration.Built-in PDF tools to view, edit, and convert files reliably without the need for external browser plugins.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Chrome show my Outlook email as raw HTML code?

When you use the 'View in Web Browser' feature, Outlook exports the email message as a .mht or .mhtml web archive file. Google Chrome does not natively support rendering this legacy format, causing it to display the unformatted raw HTML source code instead.

Can I open .mht files without using Internet Explorer?

Yes. Since Internet Explorer has been officially retired by Microsoft, you can successfully open .mht files using Microsoft Edge, which features a built-in IE compatibility mode, or by utilizing third-party extensions in other modern browsers.

How do I stop Outlook from opening links in Google Chrome?

To prevent Outlook from launching .mht archive links in Chrome, you need to modify your Windows Default Apps settings. Search for 'Choose default apps by file type' in your Windows Start menu, find the .mht and .mhtml extensions, and change their default application from Chrome to Microsoft Edge.