Free images tool

Shrink a PNG into a WebP without losing its transparent background

For logos, icons, screenshots and cut-out product images headed for a website. Your browser leaves the canvas clear, draws the PNG and encodes a WebP with an alpha channel; the PNG itself is neither altered nor uploaded.

Alpha transparency carried into WebPQuality slider from 45 to 100Same width and height as the PNG
PNG to WebP

Choose a PNG, set the WebP quality, then convert; the WebP preview and its download button appear below.

Runs on your device
Choose a file or drop it herePNG file, converted to WebP

What the PNG to WebP does

PNG is lossless and supports an alpha channel, which is why it is the default for logos and interface graphics. The cost is size. WebP also supports transparency, in both its lossy and lossless modes, and Google reports that its lossless files are 26% smaller than PNGs. This tool decodes your PNG, draws it onto a transparent canvas of the same size and asks the browser to encode image/webp at the quality you set.

The quality slider runs from 45 to 100 and defaults to 90. It is passed to the encoder as a value between 0 and 1, so the result is lossy WebP: small changes to colors are allowed in exchange for a smaller file. WebP stores an 8-bit alpha channel alongside the color data, so soft edges and semi-transparent shadows survive the conversion.

The Download button keeps the file name and swaps the extension to .webp, and a status line shows the pixel dimensions and both file sizes. The converter suits screenshots, logos with soft edges, cut-out product photos and any PNG that is slowing a page down. It is not a replacement for the PNG master: keep that for editing, because the WebP is lossy.

How to use it

Choose a PNG

Select a .png file from your device, with or without transparency. The picker accepts image/png only for this converter.

Choose the quality

Move the slider between 45 and 100. Screenshots and text need the upper end; cut-out photos can usually go lower without visible change.

Convert to WebP

Press Convert to WebP. The browser encodes the WebP and shows a preview on a checkerboard with the before and after sizes; the Download button saves it under the same name with a .webp extension.

How transparency is handled

Unlike the PNG to JPG converter, this tool does not paint a background. The canvas is cleared to fully transparent, the PNG is drawn on top and the WebP encoder receives the alpha channel intact. Fully transparent pixels stay transparent, and partially transparent ones, such as anti-aliased edges and shadows, keep their opacity level.

The HTML specification requires only PNG support for canvas export; if a browser cannot encode WebP it must produce PNG instead. This tool checks the type of what the canvas produced and, if it is not WebP, reports that your browser cannot save WebP and creates no file, so you never get PNG data under a .webp name.

Lossy WebP for graphics: what to watch

PNG stores a screenshot exactly. Lossy WebP at quality 90 is visually very close, but single-pixel lines, small text and sharp color boundaries are where the difference appears first. View the result at full size before replacing a PNG that carries text. If any softening is unacceptable, stay with PNG or use an encoder that writes lossless WebP.

Flat graphics with very few colors, for example a two-color icon, can already be tiny as an indexed PNG. A WebP of such an image is sometimes larger. The size message lets you compare; keep whichever file is smaller.

Where WebP fits among a site's images

Current versions of Chrome, Edge, Firefox and Safari display WebP, so it can be used directly in img elements and CSS backgrounds. For visitors on older browsers, the picture element can list the WebP first and the original PNG as a fallback, which is the pattern Google's WebP guidance describes.

The WebP is a delivery copy. Keep the PNG as the editable master, because every save of a lossy WebP loses a little more, and some design tools and document systems still refuse WebP input. The WebP to PNG converter on this site reverses the conversion when needed, although it cannot restore detail removed by lossy encoding.

Limits to know before you rely on it

  • The output is lossy WebP; the tool does not offer a lossless WebP mode.
  • Fine text and single-pixel lines can soften at lower quality values; check screenshots at full size.
  • Tiny indexed-color PNGs can come out larger as WebP.
  • Images above 80 megapixels are refused to protect browser memory.
  • If the browser cannot encode WebP, the tool reports it and creates no file; it never saves PNG data under a .webp name.
  • PNG text chunks, color profiles and other metadata are not copied into the WebP.

Questions people ask about the PNG to WebP

Will the transparent parts of my PNG stay transparent?

Yes. The canvas is cleared rather than filled, and WebP carries an 8-bit alpha channel, so both fully and partially transparent pixels are preserved. If you want a solid background instead, use the PNG to JPG converter and pick a color there.

Is the WebP lossless like the PNG?

No. The quality slider requests lossy WebP, which permits small color changes in exchange for a smaller file. At 90 the change is hard to see on most images. Keep your PNG as the master and treat the WebP as the copy you publish.

Why is the WebP sometimes larger than the PNG?

Icons and graphics with very few colors compress extremely well as indexed PNG, and a photographic-style encoder cannot beat that. Screenshots of plain interfaces can behave the same way. The size message shows both figures; use the WebP only when it is smaller.

Does the conversion change the width and height?

No. The canvas matches the PNG's natural width and height exactly. Resize with the Image Resizer first if you need a smaller picture as well as a smaller file, then convert the resized PNG here.

Can I convert a screenshot without blurring the text?

Keep the slider near 100 and inspect the result at full size. Lossy WebP handles text well at high quality, but single-pixel lines are the first thing to soften as the value drops. For documentation that must stay exact, keep the PNG.

Is my PNG uploaded to the site?

No. The file is opened through a temporary browser URL, drawn on an in-page canvas and encoded with HTMLCanvasElement.toBlob, all inside your browser. The download link is a temporary URL that is revoked shortly after saving starts.

Sources and further reading