HTML to WebP
Turn a saved web page, an email or any HTML file into one WebP picture of the whole page.
Drop HTML files here
Needs our servers. You confirm before anything is uploaded.
Deleted 60 minutes after you download it.
Keep a receipt, a newsletter, a chart or a whole web page as one picture to drop into a slide, a chat or a bug report. FormatJet opens the HTML file in Chrome on our servers with the network closed, so nothing on the page loads from the web unless you allow it, takes a picture of the whole page and deletes the upload as soon as the picture is ready.
About the formats
HTMLHTML web page
HTML is the markup language of web pages: text with tags for headings, links, lists, tables and images. A saved web page is an HTML file.
WebPWebP image
WebP is an image format made for the web. Files are smaller than JPG and PNG and can have transparency or animation, but some older apps can’t open it.
Converted with Web page to image (Browser Run).
Questions
How wide is the picture, and how much of the page does it show?
The page is laid out in a window 1280 pixels wide, about a laptop screen, unless you choose a phone, tablet or desktop width. The picture shows the whole page from top to bottom, one image pixel for each pixel of the page’s layout.
What happens to a very long page?
The picture stops at 16,383 pixels tall, the most a WebP image can hold, and PNG and JPG stop at the same size, so the bottom of a very long page is cut off. A page wider than that is cut at the same size. To keep all of a long page, convert it with HTML to PDF instead, which splits it into printed pages.
Why does my saved page come out without its pictures or styles?
A page saved as “HTML only” keeps just its text and tags, and even a complete save keeps its pictures and styles in a folder beside the file. Only the HTML file is uploaded, so those files are missing from the picture. FormatJet warns you before uploading when a page points to files saved next to it. Pictures embedded in the file itself are kept.
Do scripts on the page run?
Yes, in a browser on our servers, so charts and tables that a script draws are in the picture. Scripts get a few seconds to finish, and a page that never stops changing is taken as it stands at that moment. They can’t reach the internet unless you turn on loading from the web.
Why choose WebP?
A WebP is usually smaller than a PNG or JPG that looks the same, and current browsers, chat apps and most design tools open it. It’s saved at quality 80 out of 100 unless you change it; raise it for crisper text.
HTML to WebP with the API
Convert from your code with one request. See the HTML to WebP API
curl "https://api.formatjet.com/v1/convert?conversion=html-to-webp" \
-H "Authorization: Bearer $FORMATJET_API_KEY" \
-F file=@input.html \
-o output.webp