Convert MHTML to PNG

Turn MHTML files into PNG. A screenshot of the whole saved page as a desktop browser shows it in a window 1280 pixels wide unless width says otherwise, with the stylesheets and images it carried.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop MHTML files on the dialor turn it to pick what to do

A saved web page as one PNG image.The whole page is drawn as a browser window would show it.

  1. What you get

    One PNG that shows the whole saved page as a desktop browser displays it. The stylesheets and images stored in the MHTML file are used, so the page looks as it did when it was saved.

    The window is 1280 pixels wide unless you say otherwise. The picture covers the full page, not only the part that fits on one screen.

  2. Setting the width

    Set Width (px) to pick the exact width of the result, from 320 to 3840. The default is 1280. The height follows the aspect ratio unless it is also given, in which case the picture can be stretched.

    A narrower width shows the page as a smaller window would. For a different size of the finished image, try resize PNG.

  3. When it fails

    A file that cannot be parsed stops the conversion with input_corrupted. This happens when the MHTML file is damaged or is not a valid web archive.

MHTML and PNG.What each format is, and the options this conversion takes.

  1. 01 · width

    Width (px)

    The exact width of the result in pixels. The height follows the aspect ratio unless it is also given, in which case the picture can be stretched.

    320 to 3840 default 1280

The formats

From · MHTML

MHTML

A web page and its images saved as one MIME file, what browsers call a web archive.

Extensions
.mhtml .mht
MIME type
multipart/related
Kind
Text and data
To · PNG

PNG

Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.

Extensions
.png
MIME type
image/png
Kind
Images

In your code.The same MHTML to PNG conversion through the API, for your app or your agent.

terminal
$ cv convert report.mhtml report.png
$ cv convert report.mhtml report.png

Questions.What people ask about MHTML to PNG.

01OF 04

Yes. The images and stylesheets that the MHTML file carried are used when the page is drawn.

1280 pixels by default. Set Width (px) to any value from 320 to 3840 to change it.

No. The result is one file, a screenshot of the whole saved page.

The file could not be parsed. Conversion stops with this code when the MHTML file is not readable as a web archive.

More conversions.Other ways in and out of MHTML and PNG.