Convert MHTML to PDF in Your Browser

Convert .mhtml and .mht web archives to PDF with the saved page and its embedded images intact, all in your browser. Your archive never leaves your device.

Tap to select a file

Files are processed on your device only.

How it works

  1. Drop or select your .mhtml or .mht file. It is parsed on your device only.
  2. The saved page and its embedded images are rendered in a preview.
  3. Click Print or Save as PDF, then pick your printer or PDF target.

What .mhtml files are and why browsers create them

MHTML, sometimes with the .mht extension, is a way to save a whole web page as a single file. Instead of an HTML file plus a folder of images and styles, the page and all its resources are packed together using MIME, the same container format email uses. That is why the same parser can read both.

Browsers offer it under "save as complete web page, single file," and it is handy for keeping a receipt, an article, or a record of a page as it looked. Turning that archive into a PDF gives you a format that opens everywhere and prints cleanly. See how browser-side rendering works.

Preserving saved-page layout in the PDF

The converter pulls the main HTML out of the archive and matches the images and stylesheets stored alongside it, inlining them so the page renders with its own look rather than a bare skeleton. The result flows into pages and prints as a normal document.

Because it is shown as a static, sanitized page, scripts and interactive parts are removed, and anything the archive did not actually store cannot appear. For a plain email saved in the same MIME format, the EML to PDF converter handles that case.

Frequently asked questions

Will the page look exactly like it did in the browser?
Close, not pixel-perfect. Images and styles saved inside the archive are inlined and applied, but resources the browser did not store, and any scripts or interactivity, are dropped: the archive is shown as a static, sanitized document. Expect the reading layout to survive and fine visual details to vary.
What is an .mhtml or .mht file exactly?
It is a single-file web archive: the page HTML plus its images and stylesheets bundled together using the MIME format, the same envelope email uses. Browsers create one when you save a page as a complete single file, so you can keep or share it without a folder of assets.
How is the archived page rendered safely?
The saved HTML is untrusted, so it is cleaned with DOMPurify and displayed inside a sandboxed frame that cannot run scripts. Embedded images are matched to the archive's stored resources and inlined; nothing is fetched from the network.
Is my archive uploaded anywhere?
No. The .mhtml file is parsed and rendered in your browser on your device. Nothing is sent to a server, there is no account, and it keeps working offline.

Related tools