e01.org

MHTML

MHTML, an initialism of "MIME encapsulation of aggregate HTML documents", is a web archiving file format used to combine, in a single computer file, the HTML code and its companion resources (such as images) that are represented by external hyperlinks in the web page's HTML code. The content of an MHTML file is encoded using the same techniques that were first developed for HTML email messages, using the MIME content type multipart/related . MHTML files use an .mhtml or .mht filename extension. The first part of the file is an e-mail header. The second part is normally HTML code. Subsequent parts are additional resources identified by their original uniform resource locators (URLs) and encoded in Base64 binary-to-text encoding. MHTML was proposed as an open standard, then circulated in a revised edition in 1999 as RFC 2557. The .mhtml and .eml filename extensions are interchangeable: either filename extension can be changed from one to the other. An .eml message can be sent by...

MHTML, an initialism of "MIME encapsulation of aggregate HTML documents", is a web archiving file format used to combine, in a single computer file, the HTML code and its companion resources (such as images) that are represented by external hyperlinks in the web page's HTML code. The content of an MHTML file is encoded using the same techniques that were first developed for HTML email messages, using the MIME content type multipart/related . MHTML files use an .mhtml or .mht filename extension. The first part of the file is an e-mail header. The second part is normally HTML code. Subsequent parts are additional resources identified by their original uniform resource locators (URLs) and encoded in Base64 binary-to-text encoding. MHTML was proposed as an open standard, then circulated in a revised edition in 1999 as RFC 2557. The .mhtml and .eml filename extensions are interchangeable: either filename extension can be changed from one to the other. An .eml message can be sent by e-mail, and it can be displayed by an email client. An email message can be saved using a .mhtml or .mht filename extension and then opened for display in a web browser or for editing other programs, including word processors and text editors. From: Snapshot-Content-Location: https://en.wikipedia.org/wiki/Smartphone Subject: Smartphone - Wikipedia Date: Sat, 24 Sep 2022 00:34:32 -0000 MIME-Version: 1.0 Content-Type: multipart/related; type="text/html"; boundary="----MultipartBoundary--GsIBda0vjy2AKIAIliwl7JMwezXDRjDAsLje9khd5l----" Then, the page resources are contained sequentially, starting with the page's rendered HTML source code. Each resource has its own metadata header which specifies its MIME type and the original location. ------MultipartBoundary--GsIBda0vjy2AKIAIliwl7JMwezXDRjDAsLje9khd5l---- Content-Type: text/html Content-ID: Content-Transfer-Encoding: binary Content-Location: https://en.wikipedia.org/wiki/Smartphone The MHTML file ends with a boundary string that is not followed by any data. ==External links== MHTML standard explained RFC 2557 (1999)—MIME Encapsulation of Aggregate Documents, such as HTML (MHTML) RFC 2110 (1997, Obsolete)—MIME E-mail Encapsulation of Aggregate Documents, such as HTML (MHTML)

References

  1. ^ "Key Concepts of MHTML" . Microsoft . 9 November 2009. Archived from the original on 21 February 2026 . Retrieved 21 February 2026 . Wikipedia revision 1370033993, retrieved 2026-11-20 · 1795129200.0
  2. ^ Mosuela, Lordian (July 10, 2015). "New Tricks of Macro Malware" . Cyren . Archived from the original on September 8, 2024 . Retrieved April 19, 2019 . Wikipedia revision 1370033993, retrieved 2026-11-20 · 1795129200.0
  3. ^ Cimpanu, Catalin (April 12, 2019). "Internet Explorer zero-day lets hackers steal files from Windows PCs" . ZDNet . Retrieved April 19, 2019 . Wikipedia revision 1370033993, retrieved 2026-11-20 · 1795129200.0
  4. ^ "data: URLs" . MDN Web Docs . Mozilla Foundation . 31 October 2025. Browser compatibility. Wikipedia revision 1370033993, retrieved 2026-11-20 · 1795129200.0
  5. ^ Brinkmann, Martin (2 February 2026). "Save any webpage as a single file in Chrome or Firefox" . gHacks Tech News . gHacks. Wikipedia revision 1370033993, retrieved 2026-11-20 · 1795129200.0
  6. ^ "Mozilla Archive Format Add-on - File Format Overview" . amadzone . Retrieved April 2, 2023 . Wikipedia revision 1370033993, retrieved 2026-11-20 · 1795129200.0
  7. ^ "Firefox Addon: MAF - Mozilla Archive Format" . Archived from the original on 2 November 2017 . Retrieved 2 April 2023 . Wikipedia revision 1370033993, retrieved 2026-11-20 · 1795129200.0
  8. ^ Holden, Amanda. "Difference of HTML & MHTML" . Archived from the original on 17 November 2017 . Retrieved 17 November 2017 . Wikipedia revision 1370033993, retrieved 2026-11-20 · 1795129200.0
  9. ^ "2. The MHTML File Format - Hunchly Knowledge Base" . support.hunch.ly . October 17, 2018 . Retrieved 24 September 2022 . Wikipedia revision 1370033993, retrieved 2026-11-20 · 1795129200.0
  10. ^ "Bug 40873 - Save as rfc 2557 MHTML; complete webpage in one file" . Wikipedia revision 1370033993, retrieved 2026-11-20 · 1795129200.0
  11. ^ "NEWS · master · GNOME / Epiphany" . 28 July 2023. Wikipedia revision 1370033993, retrieved 2026-11-20 · 1795129200.0
  12. ^ Santambrogio, Claudio (10 March 2006). "…and one more weekly!" . Opera Software . Archived from the original on 15 January 2010 . Retrieved 2009-05-15 . Wikipedia revision 1370033993, retrieved 2026-11-20 · 1242342000.0
  13. ^ février 6, Publié sur; Tetzchner, 2019-Par Jon von (2019-02-06). "Vivaldi Update | Auto-Stacking Tabs" . Vivaldi (in French) . Retrieved 2019-05-16 . {{ cite web }} : CS1 maint: numeric names: authors list ( link ) Wikipedia revision 1370033993, retrieved 2026-11-20 · 1557961200.0
  14. ^ Kovacs, Eduard (May 11, 2015). "Attackers Hide Malicious Macros in MHTML Documents" . SecurityWeek.Com . Retrieved April 19, 2019 . Wikipedia revision 1370033993, retrieved 2026-11-20 · 1795129200.0
  15. ^ "Pale Moon Add-ons - MozArchiver" . addons.palemoon.org . Retrieved 3 December 2025 . Wikipedia revision 1370033993, retrieved 2026-11-20 · 1795129200.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"MHTML". 1787072990. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1370033993

JSON record · API collection · citation policy