How to Fix Outlook View in Web Browser Opening as Code in Chrome
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.

- 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.
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.
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.
Press the Windows Key + I on your keyboard to open the Settings application, then click on 'Apps' from the main menu.
Select 'Default apps' from the left-hand navigation pane, then scroll down and click on the 'Choose default apps by file type' link.
Scroll down the alphabetical list of file extensions until you find '.mht' and '.mhtml'.
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.

Install an IE Tab Extension for Google Chrome
If you strongly prefer to view these files entirely within Google Chrome, you can install a browser extension that enables the rendering of .mht files.
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. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the downloaded installation file and follow the simple on-screen instructions to set up the software.
- 3. Open Your Documents: Launch WPS Office to immediately begin opening, editing, and saving your existing documents with perfect formatting.

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.




