What is an MHT File And Why Email Tools Produce Them
A saved page carries a Subject line and a sender because the container expects them. Neither means the file was ever sent anywhere.
An MHT is a web page with everything it needed packed in beside it. The container doing the packing is the one email has used for decades. The file says so outright by declaring itself as message slash rfc822. That single line explains why these keep turning up in mail folders.
People meet the format from two directions. One person saved a page in Internet Explorer or Edge and got a file. Another saved a message and got a file that looks the same. Neither can quite tell which they are holding. The file will not tell them either, because both answers are written the same way underneath. Where that leaves MHT against the formats built to hold messages is a question of what the headers are describing rather than how the file is built.
The Same Container As Email, Doing a Different Job
MIME was designed so that one message could carry several parts at once. Text here, an image there, a spreadsheet after it. RFC 2557, published by the IETF in March 1999, took that arrangement and pointed it at a web page instead of a message.
Nothing about the container changed. What changed is what the parts are and how they refer to each other.
What an Email Carries in Its Parts
- The message body, plain or HTML
- Attachments the sender chose
- Inline images tied in by Content-ID
What an MHT Puts in the Parts
- The page HTML as the root resource
- Stylesheets, scripts and images, encoded as base64
- Each one tied to its address by Content-Location
Why the File Declares Itself an Email
Open one in a text editor and the top looks like mail. Headers, a boundary marker, then encoded blocks. The media type recorded inside is the one mail messages use, which no other document format claims.
From: <Saved by Blink>
Subject: Quarterly figures
Date: Tue, 4 Aug 2026 09:14:22 +0100
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----MultipartBoundary--Kq81"
------MultipartBoundary--Kq81
Content-Type: text/html
Content-Location: https://example.net/reports/q2
A Subject line on a web page is not a mistake. The container expects those headers, so browsers fill them in with whatever they have. The page title becomes the subject and the saving engine names itself as the sender. None of it means the file was ever sent anywhere.
That shared declaration is the whole reason mail tools handle these files. An MHT dropped into a mail client opens, because as far as the client is concerned it received something in a format it already understands.
Where the Two Extensions Came From
The same format ships under two names and the difference is nothing but length.
| Extension | Written by | Contents |
|---|---|---|
| .mht | Internet Explorer 5 onward, Outlook, Word | Identical |
| .mhtml | Chromium browsers, current Edge | Identical |
Internet Explorer arrived when three character extensions were still the convention, so it took the short form. Chromium took the longer one later. Opera went further than either for a while, making MHTML its default way of saving a page from version 9.50 until the Presto line ended in 2013, while Vivaldi and Yandex can write the format today but keep it behind a flag. Renaming one to the other changes which program offers to open it and changes nothing inside the file.
Which Programs Will Actually Open One
Support for the format has always been uneven. It has been getting narrower rather than wider.
Opens one
Without helpMicrosoft Edge
Google Chrome
Microsoft Word
Internet Explorer retired 2022
Word is the surprise here. It reads the format and writes it, so an MHT may have started life as a document.
Does not
Or needs an extensionMozilla Firefox never did
Safari uses .webarchive
most mail clients render as text
Firefox treated the format as a Microsoft convention and never implemented it. Safari solved the same problem its own way with a binary format that only macOS reads.
What the Format Captures And What It Misses
An MHT records what the browser had fetched at the moment of saving. That is a narrower thing than what you were looking at.
| Part of the page | In the file |
|---|---|
| HTML, images and stylesheets already loaded | Yes, encoded into their own parts |
| Content that loads as you scroll | Only what had loaded before you saved |
| Anything a script built after loading | Sometimes, depending on timing |
| Fonts, video and audio | Inconsistently. Often not at all |
| HTTP headers and redirects | Never. The format has nowhere for them |
That last row is why archivists use something else. WARC records the exchange rather than the result, so it keeps the request, the response headers and every redirect on the way. National libraries and the large web archives run on it. MHT keeps a picture of the outcome and throws away how it was reached.
Read next What is an MSG File And Why So Little Can Read One What Outlook turns a message into when it saves one itself.Why It Shows Up in Mail Work So Often
Three habits push these files into mailboxes. None of them involve anybody choosing the format on purpose.
- Somebody saved a page and sent it. One file, no folder of loose images, which made it the obvious thing to attach before cloud links were normal.
- Somebody saved a message as a web page. Outlook offers this. The result is an MHT holding a rendering of the message rather than the message itself.
- Somebody renamed an EML to see it in a browser. This works because both are MIME, which is a useful trick and leaves a file whose name now disagrees with its history.
The second habit costs the most. Saving a message this way keeps how it looked and discards the headers that say where it came from. For casual reading that is fine. For anything that has to be shown to be genuine, an EML keeps what an MHT drops.
Reading One Without Guessing
- Open it in a text editor first. Content-Location headers pointing at web addresses mean a saved page. Received headers and a real sender mean somebody renamed a message.
- Try Edge or Chrome before anything else. Both render the format natively, which answers what is in there faster than any conversion.
- Expect the interactive parts to be missing. The static content is what survives. Anything that needed the network is not coming back.
- Use something else for anything you save today. Extensions such as SingleFile write a page into one ordinary HTML file with everything inlined, which any browser opens without special handling. That is where the single file idea went once native support stopped growing.
- Convert to PDF if it has to be kept. Support is narrowing rather than widening. A PDF will still open in twenty years without an argument.
Where a folder of these turns out to be renamed mail rather than saved pages, our EML viewer reads them as what they actually are. Turning them into a format another mail program will accept, such as PST or MBOX, is a job for the converters.
Structure and media type checked against RFC 2557 and against published format documentation in August 2026.
Questions People Ask
7 questions, all answered in full on this page.Is an MHT file an email or a web page?
It holds a web page while declaring itself as an email. The media type written into the file is message slash rfc822, the same one a mail message uses, which is why mail software accepts one without complaint and why the two get mistaken for each other constantly.
What is the difference between MHT and MHTML?
Three characters in the extension. Internet Explorer used the shorter form because of an older limit on extension length. Chromium browsers write the longer one. The contents are identical, so renaming between them changes nothing except which program volunteers to open it.
Why will Firefox not open my MHT file?
Because it never supported the format. Mozilla treated it as a Microsoft convention rather than something to implement, so the request sat open for years without being built. An extension can add the ability. Edge or Chrome will open the file without one.
Can Word really open an MHT file?
It opens them and writes them too. That means an MHT in front of you may have come from a document rather than from a browser, which changes what you should expect to find inside and how faithfully it will render.
Are MHT files safe to open?
Treat one like any HTML from an unknown source. The file cannot run on its own, though what is inside it can hold scripts and links. The well known MHTML flaws of 2011 are often misremembered as a reason to fear these files. They were not. Those were cross-site scripting flaws in the Windows mhtml protocol handler, triggered by a crafted link on a web page rather than by opening a saved file. The component sat in Windows rather than in any browser, which is why Outlook Express, Windows Mail and Office were listed alongside Internet Explorer. Microsoft patched it in MS11-026 and MS11-037. Opening one in a current browser is unremarkable.
Why does my saved page look wrong when I open the MHT?
Because the format captures what was fetched rather than what was rendered. Anything the page built afterwards through scripts was never part of the save. Nor was anything that loaded when you scrolled. Static pages survive well and interactive ones rarely do.
Should I use MHT for archiving a website?
For one page kept for your own reference it is adequate. Where the copy has to stand up later, WARC is what archives and national libraries actually use, because it records the HTTP exchange rather than just the result.
Sources
Where the figures and behaviour described above were checked.
- RFC 2557, MIME Encapsulation of Aggregate Documents, such as HTML IETF, March 1999
- MS11-037, Vulnerability in MHTML could allow information disclosure Microsoft Security Bulletin, June 2011
- MHTML Wikipedia
- MHTML, MIME HTML File format notes File Format Docs
- MHT file, what it is and how to open it File Extension Info