[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"extension:v3:en:mht":3},{"resolvedFromAlias":4,"canonicalExt":5,"ext":5,"name":6,"category":7,"categoryName":8,"updatedAt":9,"popularity":10,"summary":11,"howToOs":12,"quickAnswer":18,"answerIntro":19,"whatIs":20,"description":21,"furtherReading":22,"openInstructions":35,"commonIssues":49,"securityNotes":68,"faq":72,"aliases":85,"mimeTypes":87,"relatedExtensions":90,"breadcrumbs":136,"categoryAnchor":146,"categoryFuturePath":147,"metaDescription":148,"availableHowToOs":149,"openOnDeviceLinks":150,"cannotOpenReasons":166,"cannotOpenFixes":167,"convertOptions":168,"securityAffiliateMessaging":169,"securityAffiliates":170},false,"mht","MHTML (Web Archive) file","web","Web","2026-06-12T09:25:36.156Z",35,".mht is an MHTML web archive that saves a complete web page (HTML plus images/CSS and other referenced files) into a single file. It’s commonly opened in modern web browsers such as Google Chrome and Microsoft Edge.",[13,14,15,16,17],"windows","mac","linux","ios","android","To open .MHT files on Windows, right-click the .mht file and choose Open with → Google Chrome or Microsoft Edge.","To open a .mht file, try opening it in a web browser such as Google Chrome or Microsoft Edge. If it doesn’t open correctly, the file may be blocked by browser security settings or may not be a valid MHTML archive.","MHTML (often saved as .mht) is a MIME-encoded “aggregate document” format that bundles an HTML root document together with its linked resources into one file. Technically, it is typically structured as a MIME message using multipart/related, where one part is the main HTML and other parts contain images, stylesheets, etc. The MHTML encapsulation approach is described in RFC 2557 and relies on multipart/related as specified in RFC 2387.","An .mht file is essentially a self-contained snapshot of a web page. Instead of storing an .html file plus a folder full of images and other assets, MHTML packages the page and its dependencies into a single MIME-formatted file, which makes it convenient for sharing or archiving a page as it appeared at a point in time.\n\nUnder the hood, MHTML uses MIME mechanisms similar to email messages: a multipart/related container holds the “root” HTML document and the related parts (such as images). This makes it interoperable with software that understands MIME multipart structures, and it is standardized around the idea of encapsulating an aggregate document.\n\nIn day-to-day use, people encounter .mht files when saving web pages for offline viewing or when exporting “single file” web archives. Common viewing is done directly in a web browser that supports MHTML rendering.",[23,26,29,32],{"title":24,"url":25},"MHTML (Wikipedia)","https://en.wikipedia.org/wiki/MHTML",{"title":27,"url":28},"MHT File Extension (FileInfo)","https://fileinfo.com/extension/mht",{"title":30,"url":31},"IANA Media Types Registry (for multipart/related and message types used by MHTML packaging)","https://www.iana.org/assignments/media-types/",{"title":33,"url":34},"freedesktop.org shared-mime-info (Linux MIME/extension handling)","https://www.freedesktop.org/wiki/Software/shared-mime-info/",{"windows":36,"macos":39,"linux":42,"ios":45,"android":47},[37,38],"Right-click the .mht file and choose Open with → Google Chrome or Microsoft Edge.","If it opens in the wrong app, choose “Choose another app” and select your browser, optionally setting it as the default for .mht files.",[40,41],"Try opening the .mht file with a browser that supports MHTML on your Mac (support varies by browser/version).","If it won’t open in your installed browsers, transfer the file to a Windows PC and open it with Microsoft Edge or Google Chrome.",[43,44],"Try opening the .mht file in a browser that supports MHTML on your system (support varies by browser/distribution).","If your desktop environment doesn’t recognize the file type, update the shared-mime-info database or open the file from within a browser via its File → Open menu.",[46],"If it doesn’t open in your available apps, transfer the .mht file to a desktop browser (commonly Chrome/Edge) to view it.",[48],"Try opening the .mht file in a browser that supports MHTML on your device; if it fails to render, move the file to a desktop browser (commonly Chrome/Edge).",[50,56,62],{"title":51,"description":52,"steps":53},"The file opens as plain text or downloads instead of displaying as a page","Some apps don’t recognize MHTML packaging and treat .mht as a generic text or message-like file, so you see MIME boundaries and encoded parts instead of a rendered web page.",[54,55],"Open the file explicitly with a web browser known to support MHTML (for example, Google Chrome or Microsoft Edge).","If your browser still shows text, the file may not be valid MHTML; confirm the file really has multipart/related content and wasn’t renamed incorrectly.",{"title":57,"description":58,"steps":59},"Images or styling are missing when viewing the archive","If the archive was saved incorrectly, not all linked resources were embedded as related parts, so the HTML references assets that are not present inside the MHTML file.",[60,61],"Re-save the page as MHTML from the original source (if available) and ensure the save option is for a single-file web archive.","Try a different MHTML-capable browser; parsing can differ between implementations.",{"title":63,"description":64,"steps":65},"The browser refuses to open the file or blocks active content","Because an MHTML file can contain active web content, browsers may apply restrictions when opening local archives, especially if the file came from the internet or email.",[66,67],"If you trust the source, copy the file to a local folder you control and open it from the browser’s File → Open menu.","If it’s from an untrusted source, do not bypass warnings; request the content in a safer format (e.g., PDF) or view it in an isolated environment.",[69,70,71],"An .mht file can contain HTML and potentially active web content (scripts, links, and embedded resources). Treat it like a web page: opening a malicious archive can expose you to phishing UI, tracking links, or content designed to exploit browser vulnerabilities.","MHTML is a multipart/related MIME container (RFC 2557 / RFC 2387). Tools that parse MIME parts may be exposed to malformed structure edge cases; prefer opening in a fully updated browser with modern security sandboxing.","Be cautious with .mht files received via email or downloaded from unknown sources; the format resembles MIME messages and may be used to disguise harmful content inside an apparently “single file” web page.",[73,76,79,82],{"question":74,"answer":75},"What is the difference between .mht and .html?",".html is usually just the HTML markup, while .mht (MHTML) packages the HTML together with related resources (like images and CSS) into a single MIME multipart/related file.",{"question":77,"answer":78},"Why do I see weird boundaries and encoded text inside the file?","That’s the raw MHTML/MIME structure. Open the .mht in an MHTML-capable web browser to render it as a page instead of viewing it in a text editor.",{"question":80,"answer":81},"Is .mht standardized?","MHTML encapsulation is specified in RFC 2557 and commonly uses multipart/related as defined in RFC 2387.",{"question":83,"answer":84},"Which programs commonly open .mht files?","Web browsers are the most common viewers; references commonly list Google Chrome and Microsoft Edge among supported browsers.",[86],"mhtml",[88,89],"multipart/related","message/rfc822",[91,97,103,108,114,118,124,130],{"ext":92,"name":93,"category":7,"categoryName":8,"popularity":94,"summary":95,"howToOs":96},"jsx","JSX (JavaScript XML) source file",75,".jsx is JavaScript source code that includes JSX, an XML-like syntax commonly used to write React UI components. You open it in a code editor (for viewing/editing) and typically compile it to plain JavaScript with tools like Babel or TypeScript.",[13,14,15,16,17],{"ext":98,"name":99,"category":7,"categoryName":8,"popularity":100,"summary":101,"howToOs":102},"war","Web Application Archive (WAR)",55,".war is a Web Application Archive used to package Java/Jakarta servlet-based web applications for deployment on a servlet container (for example, Apache Tomcat or Jetty). It is a ZIP-based Java archive that contains application classes, libraries, and web resources in a standard layout.",[13,14,15,16,17],{"ext":104,"name":105,"category":7,"categoryName":8,"popularity":100,"summary":106,"howToOs":107},"wasm","WebAssembly binary module",".wasm is the binary module format for WebAssembly, designed to run fast and efficiently in web browsers and other runtimes. You typically “open” it by loading it in a WebAssembly runtime (often via JavaScript in a browser) or by running it with a standalone runtime such as Wasmtime.",[13,14,15,16,17],{"ext":109,"name":110,"category":7,"categoryName":8,"popularity":111,"summary":112,"howToOs":113},"css","CSS stylesheet",39,".css is a Cascading Style Sheets (CSS) text file used to control the look and layout of web pages. You can open it in any text editor, and it is commonly edited with code editors that understand CSS.",[13,14,15,16,17],{"ext":86,"name":115,"category":7,"categoryName":8,"popularity":10,"summary":116,"howToOs":117},"MHTML (MIME HTML) Web Archive",".mhtml is a single-file web page archive that packages an HTML document together with its images, stylesheets, and other resources using a MIME multipart structure.",[13,14,15,16,17],{"ext":119,"name":120,"category":7,"categoryName":8,"popularity":121,"summary":122,"howToOs":123},"htm","HTML document",34,".htm is an HTML document (a text file that describes a web page). You can usually open it in any modern web browser or a plain-text/code editor.",[13,14,15,16,17],{"ext":125,"name":126,"category":7,"categoryName":8,"popularity":127,"summary":128,"howToOs":129},"svgz","SVGZ image",27,".SVGZ is a gzip-compressed SVG (Scalable Vector Graphics) image. It opens in most software that supports SVG, including modern web browsers and vector editors that can read compressed SVG.",[13,14,15,16,17],{"ext":131,"name":132,"category":7,"categoryName":8,"popularity":133,"summary":134,"howToOs":135},"xml","XML document",26,".XML files are used for web pages, browser rendering, and front-end assets. Open with web browsers, code editors, or build tools for web development. This guide covers opening methods, troubleshooting, and security best practices. Common MIME type: application/xml.",[13,14,15,16,17],[137,140,143],{"label":138,"to":139},"Home","/",{"label":141,"to":142},"File Extension Index","/file-extension",{"label":144,"to":145},".MHT","/file-extension/mht","category-web","/category/web","Learn what .MHT files are, how to open them on every platform, common fixes, and security best practices.",[13,14,15,16,17],[151,154,157,160,163],{"os":13,"label":152,"to":153},"Open .MHT on Windows","/how-to/open-mht-on-windows",{"os":14,"label":155,"to":156},"Open .MHT on Mac","/how-to/open-mht-on-mac",{"os":15,"label":158,"to":159},"Open .MHT on Linux","/how-to/open-mht-on-linux",{"os":16,"label":161,"to":162},"Open .MHT on iOS","/how-to/open-mht-on-ios",{"os":17,"label":164,"to":165},"Open .MHT on Android","/how-to/open-mht-on-android",[51,57,63],[54,55],[],"untrusted_source",[171,175],{"name":172,"description":173,"affiliateUrl":174},"Avast","Avast offers free and premium antivirus software that protects against viruses, malware, ransomware, and phishing. Scan files before opening them to ensure safety.","https://www.avast.com/lp-aff-consumer-store?expid=inf601",{"name":176,"description":177,"affiliateUrl":178},"Norton","Norton 360 delivers comprehensive antivirus protection, VPN, and identity theft monitoring. Scan files for threats before opening to keep your device secure.","http://buy.norton.com/aff_home?utm_campaign=en-ww_nor_n36_aff_nas_nau_nah_cj_nad_low:_sec_nat_mktc_norton_360"]