.MHTML

MHTML File

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

An MHTML (.mhtml or .mht) file is a complete web page - HTML, images, CSS, and scripts - bundled into one file for offline viewing. Open it by dragging it into Microsoft Edge or Google Chrome (both support it natively). Internet Explorer, the old default opener, was retired in June 2022. To share or print the page, open it in a browser and choose Print > Save as PDF.

Developer: IETF standard (RFC 2557); saved by Internet Explorer, Edge, Chrome, Opera, Word Category: Web Files Open standard MIME: multipart/related; message/rfc822
OPENS ON Windows macOS Linux Web

On this page

19k+ extensions indexed
Last reviewed Aug 19, 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 MHTML file format?

An .mhtml file - also saved with the .mht extension - is a MIME HTML web archive that bundles an entire web page into a single portable document. It packages the page's .html markup together with all its images, stylesheets, and scripts, storing each resource as a separate MIME part within the same file.

The format borrows the same multipart-message structure used by .eml email files. Embedded resources are encoded in Base64 or quoted-printable, allowing binary assets to travel inside a plain-text container. Because there is no binary magic number, an .mhtml file can be opened in any text editor; it begins with email-style headers such as MIME-Version: 1.0, Content-Type: multipart/related; boundary=..., Subject:, and Date:.

Internet Explorer popularized the format through its "Web Archive, single file (.mht)" save option. Today, Google Chrome (since v74), Microsoft Edge (Chromium-based), and Opera all natively support saving pages as .mhtml. Microsoft Word can also open and export documents in this format.

On macOS and iOS, Safari defaults to the .webarchive format instead. Firefox does not natively support saving pages as .mhtml; browser extensions fill the gap. Android browser support remains inconsistent.

  • To save a page as .mhtml in Chrome or Edge: File → Save Page As → Webpage, Single File
  • To inspect the raw structure: open in any plain-text editor - all MIME boundaries and headers are readable

Security & safety

RISK: MEDIUM

An .mhtml embeds whatever the original page contained, including JavaScript, which can run when the file is opened in a browser - so treat an MHTML from an untrusted source like any untrusted web page: don't open unexpected ones, and prefer converting to PDF (which strips active script) for safe viewing. MHTML files are also used in phishing: attackers send a saved-page attachment that renders a convincing fake login form locally to dodge URL filters, so be wary of unsolicited .mht/.mhtml attachments asking for credentials. The file itself is inert text on disk; the risk is in what its scripts/forms do once rendered.

Format details

in a nutshell
FULL NAMEMIME HTML (MHTML) Web Page Archive
DEVELOPERIETF standard (RFC 2557); saved by Internet Explorer, Edge, Chrome, Opera, Wordsince RFC 2557 (1999); popularized by Internet Explorer's 'Web Archive, single file (.mht)'
CATEGORYWeb Files
MIME TYPEmultipart/related; message/rfc822
TYPESingle-file web-page archive - MIME multipart message bundling HTML plus its images/CSS/scripts
STANDARDOpen · royalty-free

Programs that open MHTML files

Windows4 apps
Microsoft Word Paid Word opens and edits .mht/.mhtml as a document (File > Open). Useful to extract text/images, less faithful to layout than a browser.
Google Chrome Free Drag the .mhtml into Chrome (or Ctrl+O > pick the file) to render the saved page. Chrome opens MHTML natively.
Opera Free Chromium-based; open the .mhtml the same way (drag in or File > Open) to view the page.
Microsoft Edge Built-in Built into Windows. Drag the .mhtml onto an Edge window, or right-click the file > Open with > Edge. The recommended modern opener (replaces Internet Explorer).
macOS2 apps
Google Chrome Free Drag the .mhtml into Chrome to view it. Microsoft Edge for Mac works the same way.
Microsoft Word for Mac Paid Opens .mht/.mhtml as an editable document for reading or extracting content.
Linux1 app
Google Chrome / Chromium Free Open the .mhtml in Chrome/Chromium (drag in or 'google-chrome file.mhtml'). The standard Linux route.
Web1 app
Online MHTML-to-PDF / -HTML converters Freemium Upload the .mhtml to a converter to get a PDF or plain HTML you can open anywhere. Avoid uploading confidential pages to third-party sites.

Technical details

deep spec
Container formatMIME multipart/related message - the main HTML document plus all page resources (images, CSS, scripts) embedded as separate MIME parts in a single file
File encodingPlain UTF-8 text; binary resources (images, fonts) are Base64- or quoted-printable-encoded within each MIME part
File signatureNo binary magic bytes - the file opens with plain-text email-style headers: `MIME-Version: 1.0` followed by `Content-Type: multipart/related`
Primary MIME type`multipart/related`; each embedded sub-resource carries its own MIME type (e.g., `image/jpeg`, `text/css`)
Alternate extension`.mht` - identical format; used by Internet Explorer's "Web Archive, single file" save option and supported by the same applications
Size overheadBase64 encoding of binary assets inflates file size by approximately 33 % compared to the sum of original resource sizes
Part boundaryEach embedded resource is delimited by a unique boundary string declared in the top-level `Content-Type: multipart/related; boundary=...` header
Browser save supportGoogle Chrome (v74+), Microsoft Edge (Chromium), and Opera natively save pages as `.mhtml`; Firefox requires a third-party extension
Script originScripts inside an `.mhtml` file execute with a `null` origin in Chromium-based browsers; CORS blocks cross-origin network requests the page makes
Microsoft Office supportMicrosoft Word and Excel can open and save files as `.mhtml`, embedding Office XML markup inside the MIME container
InspectabilityFully human-readable in any plain-text editor - MIME part headers, `Content-Location` URLs, and Base64-encoded data are all visible as text
Offline resource handlingResources captured at save time are embedded; any external URL not fetched during saving is referenced by `Content-Location` only and unavailable offline
Charset declarationThe HTML part's encoding is declared in both the MIME `Content-Type` header and the HTML `<meta charset>` tag; UTF-8 is standard
macOS/iOS alternativeApple Safari and iOS WebKit save pages as `.webarchive` (a binary plist format) rather than `.mhtml`, so cross-platform sharing may require conversion
Email format relationshipStructurally identical to an email message (RFC 2822); an `.mhtml` file can be renamed `.eml` and opened in many mail clients
ReleasedRFC 2557 (1999); popularized by Internet Explorer's 'Web Archive, single file (.mht)'
Open standardYes · royalty-free
Specificationwww.rfc-editor.org

MHTML conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with MHTML 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 MHTML files.

Frequently asked questions

How do I open an MHTML (.mhtml / .mht) file?
Open it in a Chromium browser: Microsoft Edge or Google Chrome both render .mhtml directly - drag the file into the browser window or use File > Open. Microsoft Word can also open it. Internet Explorer (the old default) was retired in 2022; use Edge or Chrome instead.
What is the difference between .mht and .mhtml?
None - they are the same MIME HTML format with two spellings of the extension. .mht is the classic Internet Explorer form, .mhtml the longer one. You can rename one to the other freely.
How do I convert an MHTML file to PDF?
Open the .mhtml in Edge or Chrome and choose Print > Save as PDF, or open it in Word and Save As PDF. PDF makes the page fixed, printable and openable anywhere. Online MHTML-to-PDF converters also work for non-confidential pages.
Why won't my MHTML file open in Firefox?
Firefox doesn't support MHTML natively - it needs an add-on (e.g. an MHTML/Mozilla Archive extension). Easier is to open the file in Edge or Chrome, which support MHTML out of the box.
What's the difference between MHTML and a webarchive file?
Both bundle a whole web page into one file, but MHTML (.mhtml/.mht) is an open MIME standard that Edge, Chrome, Opera and Word read, while .webarchive is Apple's proprietary Safari format that only Safari opens. MHTML is the more portable, cross-platform option.
How do I extract the images or text from an MHTML file?
Open it in Word (which exposes the content) and save the images / copy the text, or convert the .mhtml to HTML so the embedded MIME parts become separate files. The raw .mhtml is text you can also open in an editor to see the Base64-encoded parts.

References

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

Keep exploring

across the database

Top extensions this week

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

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