
Chrome supports saving webpages as MHTML or as a single file. You no longer need to rely on a flag or run Chrome with command line Switch for the same. Here is how you can save any webpage as MHTML from Chrome on Windows 11 or Windows 10 or other Windows versions.
What is MHTML?
MHTML is short for MIME HTML, where browsers like Opera, Internet Explorer Microsoft Edge and Chrome allow users to save web page and its resources like images, animations, CSS, graphics, Java applets, and audio files, etc. into a single file or web archive. MHTML is often called MHT files.
MHTML Supported browsers:
- Internet Explorer
- New Microsoft Edge
- Google Chrome*
- Opera
- Vivaldi
Note: MHT files can be viewed in Firefox browser through an extension unMHT, where Google Chrome allows saving only but doesn’t supporting displaying MHTML files .
Background on Chrome’s MHTML support:
It’s worth noting that Chrome initially offered MHTML support behind a flag. Later, the flag in question “ Save page as MHTML” has been removed by Google and still supported feature through command line switch. After that, saving webpages as MHTML has been integrated into Chrome.
How to save webpage as MHTML in Chrome
- Open Chrome browser
- Visit any webpage
- Right click on page and select Save as
- Choose saving location, type the name and click Save, done
How to View MHTML saved from Chrome browser
As mentioned at the offset, double clicking on file will open the page in Microsoft Edge on Windows 11.
You can also right click on MHTML file and select “Open with” and choose Vivaldi or Opera
Final words: You may still want to save the whole webpage and its resources as a single text file for offline viewing in 2022, for that, Chrome still works out of the box , doesn’t require any extension. The fact is, you are able to save pages in MHTML from Chrome, but to view them, you have to use Microsoft Edge or other supported browsers on Windows.
Are you still using MHTML files? Let us know in the comments below.
More on Chrome:
Chrome and Edge let you reorder tabs w/ Keyboard shortcuts in a cool way
Chrome 101 for Android gets Chrome Actions
How to add notes to Saved Passwords in Chrome
Chrome puts Google Search results in Side Panel on Windows
Chrome is bringing downloads icon to toolbar
Thanks so much for this solution Venkat.
Would it be possible to add that script for the pinned shortcut on the taskbar? (windows 10) I can’t seem to figure out a way.
At the moment I have to put a desktop shortcut and open it from there every time, which I’m not used to. Also, the chrome extension “singlefile” is quite good too.
You’re welcome beck13. Yes, you can pin that shortcut that has command line switch added in target filed to taskbar and use.
Thank’s. but why google just remove this feature? Is that any security risk about that?
It was never a feature, it is available behind the flags since years, now removed, you should expect the experimental features to vanish that way.
Is there a way to do de same on linux??????
Best Regards
Try this
chromium-browser –remote-debugging-port=9222
google-chrome –save-page-as-mhtml
source: https://www.chromium.org/developers/how-tos/run-chromium-with-flags#TOC-Linux
I do not have a desktop Chrome shortcut so I right-clicked Coogle Chrome in my Start menu, selected More and then Open file location.
I then right-clicked the Google Chrome shortcut, clicked on Properties and added the suggested amendment after the double quote and a space as shown below.
“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” –save-page-as-mhtml
Do NOT add the amendment before the double quotes as this will give an error.
Thanks SO MUCH!!! I’ve been getting that error msg and just couldn’t figure out why! I’ve tried everything, turns out it’s the double hyphen. -_-”
Saving as mhtml is a very important feature. I was surprised and disturbed today 6/21/2019 when it was removed with no warning. I used to use Firefox for the save as mht feature, but when that was removed I began using Chrome almost exclusively.
Adding save-page-as-mhtml to Chrome, as described above, fixed the problem. Many thanks!
My Google Chrome did work for saving web page as single-file mhtml format after enabling the corresponding flag. However, it does not work recently, and the save options revoked back to htm, html options only. I tried re-visiting the chrome://flags setting but no more MHTML flag setting was there! Would you give some help on how I can restore the save as MHTML option? Thanks!
Are you using Canary? The flag has been removed and no more,try running Chrome with commandline switch mentioned in article to save pages in MHTML format.
Thank you for reply!
I did tried the command line method by appending the Chrome Desktop shortcut:
Properties – Target “C:\Program Files\Google\Chrome\Application\chrome.exe –save-page-as-mhtml”
But it just simply said the target name invalid!
Alternatively, I tried:
Target “C:\Program Files\Google\Chrome\Application\chrome.exe” –save-page-as-mhtml
It allowed the change. But this time Chrome remained no change in save options (i.e. no MHTML).
I can confirm the command line switch still working for me and let me save a webpage as a single file. There are two dashes before save, please ensure you’re typing the command correctly, don’t copy and paste the command, it won’t work.
Dear Venkat,
I finally got it done! great!
Really it’s a copy-past problem, in which the double dash “- -” became single: “–save-page-as-mhtml”. When I typed in the whole thing manually, it works! Thansk a lot!
Thanks for the tip! I also wonder why they try to avoid it 🤔
Changed from Firefox to Chrome because of this previously. Now it’s time to move on, since I can see this tip also works in the new Microsoft Edge (Chromium). Bye Google, 😂 LOL
It worked for me once I typed the double dash – plus closing Chrome and re-opening it.
Is there a work around like this available for Mac OS?
Try this and let us know if it works for you, so that we’ll update the article with that command, so Mac users who need to may find useful. BTW this command is for Canary, you need to change it to suit dev or beta version if you’re using.
open -n -a /Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --args --save-page-as-mhtml
The following worked on Mac OS (Mojave). Thanks for the help with this.
open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome –args –save-page-as-mhtml
Yes, Michael Pennell’s solution worked for me too (though as others have said, the args and save-page-as-mhtml parts of the command need two hyphens each rather than one—it looks like the comment feature auto-changes two hyphens to an em or en dash).
The one problem I have is that this setting doesn’t stick. After closing Chrome, the mhtml option goes away. I can limit myself to opening Chrome with this terminal command, but does anyone know of a way to make this setting permanent? Thanks for helping me get this far.
I installed the new Chrome extension “Save As MHT”. Seems to work fine: https://chrome.google.com/webstore/detail/save-as-mht/hfmodljjaibbdndlikgagimhhodmobkc
Hey Venkat. What you say in the post also applies to any browser based on Chromium! For example Opera, Brave, Yandex, Edge Chromium etc ;)
Yep.
Worked in 75, stopped working after updated to Version 76.0.3809.132. Any fix?
Try this extension https://chrome.google.com/webstore/detail/save-as-mht/hfmodljjaibbdndlikgagimhhodmobkc?hl=en
Censorship is the new phenomena of the internet technology against the offline productions;
by thinking how everything happens, this is a said feature which internet have control of computer projects; MHTML is a way made by extensions which distribution works like applications with all resources;