.mht.mhtml

MHT and MHTML files: what they are and how to open them

An MHT file is a whole web page saved as one file: the text, pictures and styles packed together like an email. On Android, open it in Universal File Opener (saved pages up to 4 MiB); on a computer, drop it here or open it in Edge or Chrome. The page shows with its scripts switched off.

Drop your MHT file here

Opens on this device. Nothing is uploaded. Any other file works too.

What is an MHT file?

An MHT file packs a web page and the pictures and styles it shows into a single file, so a saved page can be moved, mailed or archived without a folder of parts. The format is MHTML (MIME HTML); .mht and .mhtml are two names for the same thing.

It is an internet standard, RFC 2557 from 1999, written by engineers at Stockholm University, Microsoft and Lotus. Word and Excel can still save a document as a Single File Web Page in this format, and Microsoft Edge saves web pages as Webpage, Single File.

Support is narrower than for HTML. Edge and Chrome open MHT files from your disk, but they do not run scripts in them, so the page is a snapshot: links still point to the live web, and anything that needed scripts stops working. Apple’s Safari uses its own Web Archive format instead.

What is inside

An MHT file is built like an email with attachments. Header lines give the page’s title and date, then a multipart/related body holds the parts, separated by a boundary line: first the HTML of the page, then each picture, style sheet and font. Text parts are usually quoted-printable, where codes such as =3D stand for special characters, and pictures are stored as base64 text.

Each part carries a Content-Location header with the web address it came from. When the page asks for https://example.com/cake.jpg, the reader uses the part with that address instead of going online. That is why renaming the file to .html does not convert it: a browser would show the raw parts.

A saved recipe page: headers, then one part for the page and one for each picture.

How to open an MHT file

Windows

  • Microsoft EdgeBuilt in. Double-click the file, or press Ctrl+O in Edge and pick it.
  • Universal File Opener for WindowsOursShows the saved page as a reading view with the pictures stored inside it. Scripts and forms are ignored, nothing loads from the internet, and Source shows the raw parts.

Mac

  • Google ChromeFree. Press ⌘+O and pick the file. Chrome opens MHT files from your disk and shows the snapshot without running scripts.

Android

  • Universal File OpenerOursReads saved pages up to 4 MiB offline, with their stored pictures and styles. Scripts, forms and remote requests are blocked. Print saves a PDF copy.

In a browser

  • Universal File OpenerOursDrop the file on this page to see the saved page with its stored pictures and styles, scripts off, or switch to Source. Nothing is uploaded.

Won’t open?

A Mac or iPhone will not open it

Safari saves and reads pages in Apple’s own Web Archive format. On a Mac, open the file in Google Chrome; on an iPhone or any other device, drop it on this page.

It opens as text full of =3D and long blocks of letters

You are seeing the raw parts, usually because a text editor opened it or it was renamed to .html. Keep the .mht or .mhtml name and open it in Edge, Chrome or on this page; renaming does not convert it.

Links, menus or videos do not work

An MHT file is a snapshot. Its scripts do not run, so anything that needed them stops, and links still point to the live website. Open the original address if you need the working page.

Our Android app says the file is too large

The Android preview reads saved pages up to 4 MiB. Open a larger file in Edge or Chrome on a computer, or on this page, or ask the sender for a PDF.

Convert an MHT file

  • To PDFOpen it in Chrome, press Ctrl+P (⌘+P on a Mac) and choose Save as PDF. On Android, open it in our app, choose Print, then Save as PDF.
  • To Word documentIn Word, choose File, Open and pick the .mht file, then File, Save As, Word Document (.docx). Pages made by a browser can change layout.

MHT files in our apps

Our apps read MHT and MHTML saved pages offline with their stored pictures and styles, scripts and remote requests blocked. On Android, files up to 4 MiB, with Print to PDF; on Windows, as a reading view.

Get it on Google PlayGet it from Microsoft Store
All Android tools and limits for MHT files
  • Read the saved page and supported embedded resources from the MHTML archive, including encoded text and folded email-style headers.
  • Display supported embedded images and styles. Oversized resources can be omitted while the rest of the page loads.
  • Search, adjust text size, copy, read aloud, count words and resume at the saved position.
  • Choose Print and use Android’s Save as PDF destination for a PDF copy.

Limits

  • Files larger than 4 MiB cannot be previewed.
  • Interactive content and remote resources are unavailable. Pages that depend on scripts, forms or external styles can look incomplete.
  • A nested archive without an identifiable main page cannot be previewed.
  • MHT files are read-only: there is no save-back and no export to HTML.

Walkthrough: Privacy and offline use on Android