Skip to content
HTML to Image & Video
Sizes and use cases

HTML to High Resolution Image

Export HTML at 2x or 3x pixel density for retina screens, print and 4K output.

px
Live preview

Checkerboard areas are transparent and stay transparent in the exported file.

What you get

A studio for HTML images

Images in three formats

Export PNG for sharp edges and transparency, JPEG for small files, or WebP for the best size to quality ratio. Scale up to 3x for retina screens and print.

Private by design

Rendering happens on your device. Your code and files are never uploaded.

Step by step

How to export a high resolution image from HTML

  1. Set the stage to the layout size you design for, such as 1920 by 1080.
  2. Pick a scale of 2x or 3x in the Scale selector.
  3. Click Export PNG and wait for the larger render to finish.
  4. Check the downloaded pixel size. 1920 by 1080 at 2x gives 3840 by 2160.

Resolution, scale and file size

At 1x the image has the same pixel size as the stage. At 2x each side doubles, and at 3x each side triples. Text and vector shapes stay sharp because the page is rendered at the larger size.

Larger images take longer to render and produce bigger files, so use the smallest scale that meets your need.

Limits to know about

Browsers cap canvas size at about 16,384 pixels per side and roughly 268 million pixels in total. The converter warns you when a request is too large and suggests a lower size or scale.

Keep exploring

Learn more

Guides and tutorials

Answers

Frequently asked questions

How do I get a 4K PNG?

Set the stage to 1920 by 1080, choose 2x, and export. The file is 3840 by 2160 pixels.

Why did a very large export fail?

The browser could not allocate a canvas that large. Lower the stage size or the scale and try again.

Is my code uploaded to a server?

No. The conversion runs entirely in your browser using the Canvas, Web Animations and MediaRecorder APIs. Your HTML, CSS and images never leave your device.

Why are some external images blank in my export?

Browsers block canvas export when an image comes from another website that does not allow cross-origin access (a tainted canvas). Embed the image as a Base64 data URL, or host it on a server that sends CORS headers, and it will render.

Ready to convert your HTML?

Free, private and runs in your browser.

Start converting