.MHT

MHT File

MIME HTML Web Archive (MHTML)
Ask a question
QUICK ANSWER

An MHT (MHTML) file is a complete web page - the HTML, images, CSS, and scripts - bundled into one file using the same MIME packaging email uses. Open it by dragging it into Microsoft Edge or Google Chrome. The main reason people convert an MHT file is to get a PDF, which you can do directly from the browser's print dialog.

Developer: IETF standard (RFC 2557); popularized by Microsoft Internet Explorer Category: Web Files Open standard MIME: multipart/related; message/rfc822
OPENS ON Windows macOS Linux

On this page

19k+ extensions indexed
Last reviewed Aug 20, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the MHT file format?

The .mht file extension is used to store a web page archive saved as a MHTML document (short for MIME HTML). Such a file contains HTML markup, images, CSS stylesheets, scripts, and other page elements in the form of a single self-contained file.

Creation of an .mht file

An .mht web page archive is generated by web browsers - including Microsoft Edge and Google Chrome - when the user chooses to save a page as a single-file archive. During this process, all relative HTML hyperlinks are mapped to their embedded sources. That way, not only the page markup but also all multimedia and resource data can be contained in the combined file. Absolute hyperlinks remain unchanged in the process of archive creation.

.mht file advantages

An .mht archive offers the benefit of storing a web page in a single file, which is especially useful if the page references other files stored on the server. An archived web page file allows users to access the website offline. A single-file archive also facilitates moving website content from one place to another.

Additional information

  • Contents of an .mht file are encoded using MIME multipart encoding (Base64 or quoted-printable), the same container format used by .eml email files.
  • The extension .mhtml is an alias for the same format and may be used interchangeably.
  • .mht files can be opened in a plain-text editor to inspect the raw MIME headers and encoded parts.
  • .mht files are sometimes used as a vehicle for malware distribution and should therefore be scanned for malicious code before opening files from untrusted sources.

Security & safety

RISK: MEDIUM

An .mht can embed whatever the original page contained, including JavaScript, which may run when the archive is opened in a browser - so treat an .mht from an untrusted source like an untrusted web page (don't open unexpected ones; converting to PDF strips active scripting for safe viewing). Because MHTML shares the MIME container with email, malformed or maliciously crafted .mht files have historically been used in phishing/XSS proof-of-concepts. The file itself can't execute on its own, but be cautious with links and scripts inside, and prefer opening unknown archives in a sandboxed/up-to-date browser or as PDF.

Format details

in a nutshell
FULL NAMEMIME HTML Web Archive (MHTML)
DEVELOPERIETF standard (RFC 2557); popularized by Microsoft Internet Explorersince RFC 2557 (1999); .mht popularized by Internet Explorer 5 (1999)
CATEGORYWeb Files
MIME TYPEmultipart/related; message/rfc822
TYPESingle-file web-page archive (MIME multipart/related, text-based)
STANDARDOpen · royalty-free

Programs that open MHT files

Windows4 apps
Microsoft Word Paid File > Open the .mht to view/edit it; Word reads and writes MHTML. Useful when you want to edit the page content.
Google Chrome Free Drag the .mht into a Chrome tab; it renders the saved page. Chrome saves and opens MHTML directly.
Microsoft Edge Built-in Right-click > Open with > Microsoft Edge, or drag the .mht into Edge. Opens MHTML natively; built into Windows 10/11.
Mozilla Firefox + UnMHT/MAF add-on Open-source Firefox has no built-in MHTML support; install the UnMHT (or Mozilla Archive Format) add-on, then open the .mht.
macOS2 apps
Microsoft Word Paid File > Open the .mht to view and edit it.
Google Chrome Free Drag the .mht into Chrome. Safari does NOT open .mht (it uses .webarchive); use Chrome or Microsoft Word for Mac.
Linux2 apps
Google Chrome / Chromium Free Open the .mht in Chrome/Chromium (drag into a tab). The most reliable Linux opener.
Mozilla Firefox + UnMHT add-on Open-source Install the UnMHT add-on, then open the .mht. Firefox alone can't read MHTML.

Technical details

deep spec
Format typeSingle-file web-page archive using a MIME multipart/related container
MIME typemultipart/related (primary); message/rfc822 (alternate)
Part encodingEach embedded resource encoded as Base64 or quoted-printable within its MIME part
File signatureNo binary magic bytes; starts with plain-text MIME headers such as "MIME-Version: 1.0" and "Content-Type: multipart/related; boundary=..."
Extension alias.mhtml - identical format, used interchangeably across browsers and applications
Resource types embeddedHTML markup, CSS stylesheets, images (JPEG, PNG, GIF), JavaScript files, and web fonts
Hyperlink remappingRelative URLs replaced by content-ID references (cid:) pointing to embedded MIME parts
Absolute linksPreserved unchanged during archive creation; only relative links are remapped to embedded content
Container familyShares the same MIME multipart structure as .eml email files (RFC 2822); some email clients can open .mht files
Browser supportNatively supported by Internet Explorer, Microsoft Edge, and Google Chrome; Firefox requires an add-on such as UnMHT
Offline accessEntire page - markup and all resources - loads without a network connection once saved
Text editor viewableYes; MIME headers and Base64/quoted-printable content parts are fully readable as plain text
Snapshot behaviorCaptures the page exactly as it appeared at save time; dynamic or live-updated content is not refreshed on subsequent opens
Active content riskCan embed JavaScript and other executable content; files from untrusted sources should be scanned before opening
Office application supportMicrosoft Word can open and save .mht/.mhtml files as an alternative to native .doc/.docx formats
ReleasedRFC 2557 (1999); .mht popularized by Internet Explorer 5 (1999)
Open standardYes · royalty-free
Specificationwww.rfc-editor.org

MHT conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with MHT files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about MHT files.

Frequently asked questions

How do I open an MHT file now that Internet Explorer is gone?
Use Microsoft Edge (right-click > Open with > Edge) - it opens MHTML natively and includes IE mode. Google Chrome also opens .mht directly. Microsoft Word can open and edit it too.
What is an MHT (MHTML) file?
It's a complete web page saved as one file - the HTML plus its images, CSS and scripts bundled in MIME format (the same packaging email uses). It's the cross-browser equivalent of Safari's .webarchive.
How do I convert an MHT file to PDF?
Open the .mht in Edge or Chrome, press Ctrl+P, and choose 'Save as PDF' (or 'Microsoft Print to PDF'). No third-party tool needed.
Why can't I open an MHT file in Firefox?
Firefox removed built-in MHTML support. Install the UnMHT or Mozilla Archive Format add-on to open .mht, or just use Edge/Chrome which support it natively.
What's the difference between MHT and webarchive?
Both bundle a whole web page into one file. MHT/MHTML is an open text-based standard (RFC 2557) that works across browsers; .webarchive is Apple Safari's proprietary BINARY format that only Safari opens directly.
Is MHT the same as MHTML?
Yes - exactly the same format, just two file extensions (.mht and .mhtml). Renaming between them changes nothing.

References

1IETF RFC 2557 - MIME Encapsulation of Aggregate Documents (MHTML)www.rfc-editor.org
2Microsoft - Internet Explorer 11 retirement (June 2022)learn.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.NOMEDIAAndroid No-Media Marker File
8.RPMSGRestricted Permission Message
9.TMPTemporary File
10.MDMarkdown Document

Related extensions

.CRDOWNLOADChrome Partial Download File
.JNLPJava Network Launch Protocol file
.WEBARCHIVESafari Web Archive
.PARTPartial Download File
.DOWNLOADPartial / Incomplete Download File
.ASPXActive Server Page Extended (ASP.NET Web Form)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z