Save as MHTML Single-click MHTML/MHT save button right in your toolbar area
Support Development
PayPal ● 
Bitcoin Address: bc1qh7juzrxrawpr65elm4qs285m5rdhnhgsn7h2jf
 ● 
Lightning Address: [email protected]
Your Input Matters
Review
Advertisement
Screenshot
The "Save as MHTML" extension installs an action button in the browser area, which allows users to save the current page in MHTML format. This format converts an online resource of a webpage into an offline equivalent so that when your browser tries to render the page, there would be no need to access the online resources anymore. This is useful to archive a webpage for later use. The extension uses a built-in API of your browser to generate the archive page. You can modify the page using the "Edit Mode" button or add metadata before saving. Additionally, you can utilize the simple built-in reader view mode to eliminate distractions.

Features

FAQs

  1. What is the "Save as MHTML" add-on and how can I use it?

    The purpose of this extension is to save the current webpage in MHTL/MHT format, which is an optimal way to archive a webpage. Essentially, this tool allows users to create a snapshot of a webpage as it currently exists and store it for later offline access. By saving the page in MHT format, you can ensure that the content remains intact and accessible, even if the webpage changes or some of its online resources become unavailable in the future. Additionally, the saved page can be loaded without any issues even when there is no internet connection available.

  2. What's new in this version?

    Please check the Logs section.

  3. What is the difference between MHTML and MHT formats?

    There is no significant difference between these archiving file extensions, as they both offer HTML formats that can be accessed offline and can be opened by any modern browser.

  4. Can you explain the difference between MHTML and HTML formats, and why should I use this extension to save webpages instead of the standard "Save Page As ..." (Ctrl + S) method?

    MHTML (MIME HTML) is a file extension similar to the default HTML format, but with the added benefit of converted online resources. Essentially, all online resources are fetched and converted to local equivalents (data URL scheme) when saving the page, so the browser doesn't need to re-fetch them when parsing the page in the future. This extension offers the convenience of saving webpages in MHTML format, which is ideal for offline access and ensures that the content remains intact even if online resources become unavailable.

    A data URL is a URI scheme that allows the page to embed data as if they were external resources. In other words, data URLs provide a way to embed small files, such as images or scripts, directly into HTML or CSS code, eliminating the need for a separate file request.

  5. Where does this extension save the downloaded files?

    The files are saved in the default download directory of your browser. You can access this directory by using the download manager window of your browser. Unless you have manually specified a different directory on the options page, the default location is [user-directory]/Downloads.

    • Windows: C:\Users[username]\Downloads
    • macOS: /Users/[username]/Downloads
    • Linux: /home/[username]/Downloads

  6. [deprecated] Is it possible to change the name of the MHTML files saved by this extension?

    This extension uses a template to generate the filename based on the current page title and date. By default, the format is [title]. To use a fixed name, replace the default template with the desired name, such as "saved". To restore the default format, clear the formatting box. The following keywords are available for use in the template: [title], [date], [current-date], [time], and [current-time].

  7. Is it possible to save only a specific part of the webpage as an MHTML file using this extension?

    There are two options available in the right-click context menu of the browser action (toolbar) button. First, you can select the desired section of the page and then use the "Keep Selection Only" item to create a new document from the selected area. If the resulting document loses the original styling, refresh the page to start over. Alternatively, you can use the "Toggle Edit Mode" item to switch the page to design mode. In design mode, you can select an area and press the "Delete" button to remove it or append new content or images to the document. The extension adds a toolbar to the page in design mode, which provides editing tools. Once you have finished editing, press the "Close" button to switch off design mode.

  8. How can I open and print MHTML documents?

    To open an MHTML document, drag and drop the file into your browser window, and it will be displayed like any other HTML file. After that, you can use the browser's print feature by pressing the keyboard shortcut Ctrl + P on Windows or Command + P on macOS to print the document.

  9. Can I ask the extension to include the metadata information (such as URL and title) in the saved MHTML file?

    Yes, starting from version 0.1.8, there is a new option in the right-click context menu over the action button to insert a metadata section at the top of the saved page. However, it is important to note that adding this metadata section might affect the page layout, especially if the page uses fixed headers. Therefore, it is recommended to test the generated page and disable this option when it does not work as intended.

  10. Can I change the filename used for saving?

    Go to the options page of the extension and modify the filename accordingly. You have the following keywords available, which get replaced based on the page title and its URL:

    • [title]: Replaced with the page title
    • [hostname]: Replaced with the page hostname (e.g. www.google.com)
    • [simplified-hostname]: Replaced with the simplified version of the hostname (e.g. www.google.com -> google.com)
    • [date]: Replaced with the current date (e.g. Wed Jan 20 2021)
    • [current-date]: Replaced with the current date in local format (e.g. 1/20/2021)
    • [time]: Replaced with the current time (e.g. 06:57:48 GMT+0100 (Central European Standard Time))
    • [current-time]: Replaced with the current local time (e.g. 6:57:48 AM)
    • [YYYY]: Replaced with the current year (e.g. 2021)
    • [MM]: Replaced with the current month (e.g. 01)
    • [DD]: Replaced with the current day (e.g. 20)

  11. What does the "Replace "blob:" resources" option do in the right-click context menu of the action button?

    The "Replace 'blob:' resources" option in the right-click context menu fixes an issue with the internal Chrome engine that can cause pages with "blob:" resources to not properly convert to the MHTML archive format. When this option is enabled, the extension replaces all "blob:" resources with "cid:blob." to resolve the issue.

  12. How can I retrieve the details of the source page for an MHTML file if I don't remember it?

    When you save a webpage as an MHTML file, there is a metadata section located at the top of the file. You can open the MHTML file with a text editor and view this metadata section to find the original link of the page and the time when the snapshot was taken.

  13. What is the meaning of the 'Max "[title]" Length' option?

    The 'Max "[title]" Length' option allows you to specify the maximum length for the [title] keyword in the filename. This is particularly useful when saving webpages with long titles that may exceed the maximum allowed operating system's filename length. By setting a maximum length for the "[title]" keyword, the extension will automatically truncate the title to the specified length to ensure that the filename does not exceed the maximum allowed length.

  14. Can I remove unwanted elements from a website before saving it as MHTML using this extension?

    Yes, starting from version "0.3.7", the extension provides a new feature called "Reader View (declutter)" in the right-click context menu over the action button. This feature attempts to identify the primary article on the page and reconstructs the document based on the main section, removing unwanted elements such as the toolbar, sidebar, and banners.

  15. I regularly use the "Edit Mode" function on the right-click context menu. Can I have a shortcut for it?

    If you are on a Chromium browser, open "chrome://extensions/shortcuts" in a browser tab. Find this extension and define a custom shortcut for this action.

  16. Can I open MHTML files with the Chrome browser?

    Yes, Chrome has built-in support for opening MHTML files. To open an MHTML file in Chrome follow these steps:

    • Locate the MHTML file: Ensure you know the location of the MHTML file on your computer.
    • Open Chrome: Launch the Chrome browser on your computer.
    • Drag and Drop: Drag the MHTML file and drop it into the Chrome browser window. Alternatively, you can open a new tab and drag the file into that tab.

    You can also try the same steps with other browsers like Firefox. While MHTML is a standard format, not all browsers support it natively. Chrome is known for good compatibility, but other browsers may require extensions or third-party tools.

  17. Can I set Chrome as the default program for opening MHTML files?

    Yes, you can set Chrome as the default program for opening MHTML files. Here's how:

    • Right-click on the MHTML file.
    • Choose "Open with" and select "Choose another app."
    • Select Google Chrome from the list and check the box that says "Always use this app to open .mhtml files."
    • Click "OK" to set Chrome as the default application.

Matched Content

Preview

Reviews

Please keep reviews clean, avoid improper language, and do not post any personal information. Also, please consider sharing your valuable input on the official store.

What's new in this version

Version--
Published--/--/--
Change Logs:
    Last 10 commits on GitHub
    Hover over a node to see more details

    Need help?

    If you have questions about the extension, or ideas on how to improve it, please post them on the  support site. Don't forget to search through the bug reports first as most likely your question/bug report has already been reported or there is a workaround posted for it.

    Open IssuesIssuesForks

    Permissions are explained

    PermissionDescription
    storageto keep locally used preferences
    pageCaptureto ask the internal API to generate the MHTML binary data of the currently active tab
    activeTabto limit the page access of the extension only when there is a user-action involved (click on the toolbar area)
    downloadsto save the generated binary file to the local disk (default download directory of the user)
    notificationsto display warnings in case the binary generation failed

    Recent Blog Posts