# HTML to Image Converter — HTML to PNG & JPG Online

> Paste HTML and CSS, choose a size and a format, get the image. Rendered by the same Chrome as our API, so grid, flexbox, web fonts and emoji come out as in your browser.

Page: https://shareglint.com/en/tools/html-to-image-converter

## How it works

1. Paste your markup and styles, or edit the sample.
2. The HTML goes through the same sanitiser as a saved template: scripts, event handlers and external requests are removed.
3. Chrome renders it at the size you picked, in a network-less sandbox, and returns a PNG or JPG.

## HTML to image from your code

Save the HTML once as a template with {{ placeholders }}, then one POST /v1/images per image — PNG, JPEG, WebP or PDF, any size. 100 images a month free. https://shareglint.com/en/html-to-image

## Questions

### How do I convert HTML to an image?

Paste the HTML and CSS above, pick a size and PNG or JPG, press Convert. For code, the API does the same with one request: save the HTML as a template, then POST /v1/images per image.

### PNG or JPG?

PNG for text, flat colours and sharp edges; JPG for photos and gradients, at a fraction of the file size. Both come from the same render.

### Does JavaScript run?

No. The converter renders HTML and CSS only; script tags and event attributes are removed. For pages that need JavaScript, take a screenshot of the URL instead.

### Is it free?

Yes: 5 images an hour per address, with a small watermark. The HTML to image API has 100 images a month free, and paid plans render without the watermark.
