Convert HTML to JPG

Turn HTML files into JPEG. A screenshot of the whole page as a desktop browser shows it in a window 1280 pixels wide unless width says otherwise, saved as a JPEG at quality 90 unless asked otherwise.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

A web page saved as one JPG.The whole page, as a browser shows it, in a single image.

  1. What you get

    A screenshot of the whole page as a desktop browser shows it in a window 1280 pixels wide. It is saved as a JPEG at quality 90. The result is one file.

    Scripts run before the screenshot is taken, so content that a script builds is on the page. Remote resources other than common libraries do not load.

  2. Width and quality

    Set Width (px) to change the width of the result. It takes a value from 320 to 3840, and the height follows the aspect ratio. If you also give a height, the picture can be stretched.

    Set Quality to a value from 1 to 100. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.

  3. Very tall pages

    Pages taller than 131,072 pixels are refused. A JPEG holds at most 65,500 pixels a side, so a page taller than that is scaled down to fit.

    JPG has no transparency. For other sizes or file weight, see resize JPG or compress JPG.

HTML and JPG.What each format is, and the options this conversion takes.

  1. 01 · quality

    Quality

    How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.

    1 to 100 default 90
  2. 02 · 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 · HTML

HTML

The markup of web pages. Text, links and structure, usually with CSS and images alongside.

Extensions
.html .htm
MIME type
text/html
Kind
Text and data
To · JPG

JPEG

Lossy photo compression that every device and browser opens. Small files, no transparency.

Extensions
.jpg .jpeg .jfif .jpe
MIME type
image/jpeg
Kind
Images

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

terminal
$ cv convert report.html report.jpg
$ cv convert report.html report.jpg

Questions.What people ask about HTML to JPG.

01OF 04

It is 1280 pixels wide unless you set Width (px). The width can be set from 320 to 3840.

It captures the whole page, from top to bottom, as a desktop browser shows it.

Yes. Scripts run first, so content they add is in the image. Remote resources other than common libraries do not load.

A page taller than 131,072 pixels is refused. A page taller than 65,500 pixels, the most a JPEG holds on a side, is scaled down to fit.

More conversions.Other ways in and out of HTML and JPG.