Skip to content

Free toolsImages

HTML to image

An email template, a report or a snippet, as the picture the browser draws.

More free conversions, where you upload. The Fylane extension does the same work inside any upload form, on its own free share every day.About the extension

How to convert HTML to image

  1. Drop the HTML file.
  2. Pick the width and sharpness.
  3. Press Convert and download the PNG.

What happens to your file

The file is served to a headless Chromium from Fylane’s own loopback, so nothing on disk is reachable from it; styles and pictures it links to on the web are fetched through the URL policy, public addresses only. The first 800 pixels of the page are captured.

Questions

Inline styles and web fonts?

Yes — it is a real browser. Fonts fetched from a public host load; fonts on a private host do not.

Do this in code

curl -X POST https://api.fylane.dev/v1/jobs \
  -H "Authorization: Bearer $FYLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "file_id": "<file id>",
    "operation": "web.render",
    "options": {
      "format": "png",
      "height": 800,
      "width": 1280,
      "scale": 1
    }
  }'

The same operation, web.render — An HTML file or a public URL rendered by Chromium — real CSS, web fonts, scripts — to a PDF (`format: pdf`) or a first-screen screenshot (`format: png`, `width`, `height`, `scale`). Every request the page makes passes the platform’s URL policy: private networks and the metadata service are unreachable. Upload first with the quickstart; every option is on the operations page. 500 free credits a month, then $5 per thousand.