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

HTML to Transparent PNG

Render stickers, badges and overlays from HTML to a PNG with a transparent background.

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 transparent PNG from HTML

  1. Build your element in HTML and CSS, and leave the page background unset.
  2. Check the preview. The checkerboard shows which areas are transparent.
  3. Set a stage size that fits your element with some margin.
  4. Click Export PNG to download the file.

How transparency works in the export

Any area you do not paint stays transparent in the PNG. Remove background colors from the html and body elements, and the exported file keeps the transparent pixels around your design.

What people make with transparent PNGs

Stickers and badges for chat or social posts, logos to place on other designs, watermark overlays, and product callouts that sit on top of screenshots.

Keep exploring

Learn more

Guides and tutorials

Answers

Frequently asked questions

Why does my PNG have a white or colored background?

Something in your CSS paints a background, usually a background color on body or html. Remove it or set it to none.

Does JPEG support transparency?

No. Use PNG or WebP when you need transparent areas.

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.

Ready to convert your HTML?

Free, private and runs in your browser.

Start converting