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

18

1

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

flybywire

Posted 2010-04-08T13:00:30.040

Reputation: 3 732

1Drag and drop to chrome works. – tgkprog – 2018-03-29T11:10:06.807

Answers

13

.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.

sleske

Posted 2010-04-08T13:00:30.040

Reputation: 19 887

1

Direct link to addon: https://addons.mozilla.org/en-US/firefox/addon/unmht/ .

– joshas – 2014-10-02T18:31:51.153

1UnMHT seemed not to work to open MHT file generated by PSR.exe on a windows 7 rig (No Images, lots of inline XML shown) :( – ThorSummoner – 2016-03-17T21:11:51.847

Opens in chrome – tgkprog – 2018-03-29T11:09:33.453

5

Google Chrome can open MHTML, I checked.

Tyas

Posted 2010-04-08T13:00:30.040

Reputation: 51

it does, however i don't get the images – Paul Carroll – 2019-08-26T21:47:01.413

Yeah, it does if you drag the .mhtml file from the files app to the Chrome app. But if you just double click on it, it says "There is no application installed for "MHTML web archive" files. Do you want to search for an application to open this file?" If you say yes, it offers to install Falkon or GNOME Web, but gives no option to associate it with Chrome. How do you get it to just automatically open in Chrome? – Tyler Rick – 2019-09-18T19:16:40.433

One way to get it to open in Chrome is to right click, select "Open with Other Application", click "View All Applications", then select Chrome (or Chromium, etc.). It remembered my choice, so now I can simply double click on an .mhtml file and it will open it in the same app. – Tyler Rick – 2019-09-18T19:18:54.560

4

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

lang2

Posted 2010-04-08T13:00:30.040

Reputation: 1 830

I had to save each image manually, but they did appear to be full resolution. Saving the page as a web archive seemed to just not work, but viewing the mht worked just fine. – ThorSummoner – 2016-03-17T21:28:46.537

This was the fastest solution. Firefox Quantum doesn't like the addon provided by @sleske – tisaconundrum – 2018-07-20T18:19:34.953

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.

Tyler Rick

Posted 2010-04-08T13:00:30.040

Reputation: 295

0

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

Enjoy!

BloodyLogic

Posted 2010-04-08T13:00:30.040

Reputation: 101