24

How can I open an .mht file in linux (Ubuntu)?

flybywire
  • 4,110

8 Answers8

14

.mht stands for MHTML (MIME HTML). Internet Explorer uses this to save a web page and dependent files into one file.

To open these in Ubuntu, you need a special program. The Wikipedia entry lists a few:

Mozilla Firefox needs UnMHT or Mozilla Archive Format extensions to open and write MHT files. These add-ons work with Firefox 1.0 and later. Since version 5.0.0, UnMHT offers partial support for MHT files exported from Microsoft Office applications. Mozilla Archive Format, as well as opening and saving .mht files, also can save to its own "MAFF" format. The MHT files it generates are not fully compatible with Microsoft's products.[3]

Currently Firefox doesn't include support for saving or opening web pages as MHTML files without either of these add-ons, as of version 3.5.2. There is, however, source code available for viewing MHTML files within the related Thunderbird project, so in the future it may become available without such add-ons. This is filed as an unsolved issue within the Firefox project since 1999 (see bug 18764) though progress in fixing it seems to have stalled.

UnMHT is available here.

Evan Carroll
  • 9,518
sleske
  • 23,525
10

Google Chrome can open MHTML, I checked.

Tyas
  • 109
4

Simply install Opera and it handles it without requring any plugin. But of course, Opera is not really fashionable these days.

lang2
  • 2,322
2

If you want .mhtml files to just automatically open in Chrome if you double click on them:

  • right click on the file
  • select "Open with Other Application"
  • click "View All Applications"
  • then select Chrome (or Chromium, etc.) and click the Select button

It remembered my choice, so now I can simply double click on an .mhtml file and it will open it in the same app.

2

Both the suggested Firefox browser extensions are dead (UnMHT and Mozilla Archive Formats). But other browsers based on Chromium engine can still open MHT files. I did it with Vivaldi browser.

1

Chrome wouldn’t render embedded images for me.

You can extract it using python-unmht and then open/view the extracted files.

rumpel
  • 251
0

Chrome can open it, you just need to drap the file to chrome window or open it with chrome!

Enjoy!

Ericgit
  • 121
0

I used GHex; found the URL in the beginning, and then my Ubuntu 20.04 standard web browser opened it with Internet connection.

Janos
  • 133