On this page
- What Is an MHTML File?
- Which Way Should You Use to Open an MHTML File?
- How to Open an MHTML File in Chrome or Edge
- How to Open an MHTML File in Word
- How to Open an MHTML File When Chrome and Edge Fail
- How to Open an MHTML File in a Text Editor
- How to Check an MHTML File Before You Open It
- Why Does an MHTML File Open Blank?
- What We Checked and What We Left Out
- Frequently Asked Questions
- An MHTML file stores one web page and its images in a single file.
- Chrome and Edge open an MHTML file with Ctrl and O or with a drag onto a tab.
- Firefox and Safari do not open the format natively.
- A blank page points to a file that Chromium cannot open. Word or a text editor can still open it.
What Is an MHTML File?
An MHTML file saves a web page and its images, styles and other parts in one file. The ending is .mht or .mhtml and Wikipedia says the two endings are interchangeable.
The format is an email style MIME file. RFC 2557 from March 1999 defines it and the RFC Editor lists it as a Proposed Standard. The file starts with a header, then the HTML code, then the images in Base64.
MIME-Version: 1.0
Content-Type: multipart/related; boundary="BOUNDARY"
--BOUNDARY
Content-Type: text/html
Content-Location: https://example.com/page.html
<html>...</html>
--BOUNDARY
Content-Type: image/png
Content-Transfer-Encoding: base64
Content-Location: https://example.com/logo.png
iVBORw0KGgo...
--BOUNDARY--The example above is a simplified sketch and not a saved page. Every part carries its own address in a Content-Location line.
Our MHTML file guide covers the structure, safety and conversion in depth. This post covers only how to open an MHTML file.
Which Way Should You Use to Open an MHTML File?
Start with Chrome or Edge to open an MHTML file. Use the other ways when the browser shows a blank page.
| Way | Best for | What you need |
|---|---|---|
| Chrome or Edge | Most MHTML files | A recent browser |
| Microsoft Word | Editing the text | Word 365 |
| Mail app | A file that Chrome and Edge refuse | The rename trick, untested by us |
| Text editor | Reading the raw code or saving parts | Notepad or any editor |
How to Open an MHTML File in Chrome or Edge
Chrome and Edge open an MHTML file as a normal page. FileInfo lists both browsers for the .mhtml ending on Windows and on Mac.
Open a New Tab
Open Chrome or Edge and start a new tab.
Select the File
Press Ctrl and O on Windows or Cmd and O on Mac. Select the MHTML file and select Open. The browser shows the MHTML file as a normal page. You can also drag the file onto the tab.
Check the Page
The page from the MHTML file opens with its images and styles. The address bar shows a file path.
Our own tests in Chromium 141 found that copies renamed to .mht, .mhtml and .eml opened as the same page. A copy renamed to .html showed the raw header text instead. See the tested findings on our MHTML page.
Open MHTML files only from sources you trust. The file can contain scripts and RFC 2557 warns that a Content-Location line can misstate where a part came from.
How to Open an MHTML File in Word
Word opens an MHTML file when you want the text and not the web look. FileInfo lists Microsoft Word 365 for the format on Windows and on Mac.
Start Word
Open Word and select File, then Open.
Show All Files
Select Browse. Set the file type list to All Files if the MHTML file does not show.
Open the File
Select the MHTML file and select Open. Word shows the page as a document that you can edit.
We did not test Word. Layout can differ from the browser view because Word draws pages in its own way.
How to Open an MHTML File When Chrome and Edge Fail
Chromium reads files that Chromium wrote. A Microsoft Q&A answer says its MHTML support is limited and that files from other applications use encodings that it does not support.
The same answers describe a second route. Edge looks at the file header and, when it thinks another application made the file, it can switch to Internet Explorer mode. One Microsoft support reply says Internet Explorer was the only browser for such files. Another answer says Edge opens some of them on its own.
A third answer suggests renaming the .mht file to .eml and opening it in the Windows Mail app. The format is a MIME message like an email so the idea fits the format. We did not test it so work on a copy of the file.
How to Open an MHTML File in a Text Editor
A text editor always opens an MHTML file. You see the header, the HTML code and long Base64 blocks for the images.
Open the File in an Editor
Right click the file, select Open with and choose Notepad or another text editor.
Find the HTML Part
Search for the text/html line. The page code follows it.
Copy What You Need
Copy the text out of the HTML part. Image parts stay in Base64 until you decode them.
Our MHTML guide lists an extraction script that rebuilt 21 of 22 saved pages in our test.
How to Check an MHTML File Before You Open It
Open the MHTML file in a text editor first. An MHTML file starts with header lines that look like an email header.
Wikipedia says the first part has metadata like the date, the page title, the source address and a boundary string. The header should also name the multipart/related type that RFC 2557 defines.
If the first lines show program code or unreadable symbols, the file is not an MHTML file. Rename it back and check where it came from.
Why Does an MHTML File Open Blank?
A blank page from an MHTML file has three common causes.
- Another application made the file. Chromium reads its own files best. Try Word or Internet Explorer mode in Edge.
- The line endings are wrong. Our tests produced a blank page in all four copies that had LF line endings and not CRLF.
- The file is damaged. Of 132 damaged copies in our tests, Chromium showed a blank page for 27. Open the MHTML file in a text editor to see whether the header is intact.
Firefox and Safari do not open the format. Wikipedia says Firefox has no MHTML support and that Safari ended native support in version 3.1.1 and later in favor of its Web Archive format.
What We Checked and What We Left Out
Facts about the format come from Wikipedia on MHTML and RFC 2557. Program support comes from the FileInfo page for the MHTML ending.
The Chromium test results come from our own MHTML page. We did not test desktop Chrome, Edge, Word or the mail app route for this post so try every way on a copy first.
Frequently Asked Questions
What is an MHTML file?
An MHTML file saves a web page and its images in one file. It is a MIME message with a header, the HTML code and the images in Base64. RFC 2557 from 1999 defines it.
Is MHTML the same as MHT?
Yes. Wikipedia says the .mht and .mhtml endings are interchangeable. Both use the same MIME format.
Can Firefox open an MHTML file?
No. Wikipedia says Firefox has no MHTML support. Two extensions handled the format until Firefox 57. Use Chrome or Edge instead.
Is it safe to open an MHTML file?
Only when you trust the source. The file can contain scripts like any web page. RFC 2557 also warns that a Content-Location line can misstate where a part came from.
How do I save a web page as an MHTML file?
Wikipedia says Chrome 86 and later and Edge can create MHTML files. Use the browser's Save page as command and choose the single file option when the browser lists it.
Can Word open an MHTML file?
Yes. FileInfo lists Microsoft Word 365 as a program for the format on Windows and on Mac. Word shows the page as an editable document so the layout can differ from a browser.
Why does my MHTML file open blank?
Three causes apply. The file comes from another application, has LF line endings or is damaged. Our Chromium tests showed a blank page for all four LF copies and for 27 of 132 damaged copies. Try Word or a text editor.
