OnlineTextLab
Esc

PNG to WebP Converter

Cut PNG file size for the web while keeping transparency, with a slider that shows the real result.

Drop your PNG images here

Or paste it with Ctrl V

or drop them here, or paste from the clipboard

Keeps transparency and usually cuts the file size. Needs Chrome, Edge or Firefox.

Runs on your device. Your files and text are not uploaded.

About PNG to WebP

PNG is excellent for quality but often heavy for web pages. WebP supports transparency too, and it typically produces far smaller files for the same picture. That makes this the conversion to reach for when a PNG has transparency you must keep, such as a cut-out product photo, a logo or an illustration.

Every current major browser displays WebP. The remaining gaps are outside browsers, in older desktop software and some email clients, so WebP is a format for publishing rather than for sharing as an editable file.

You can see the saving straight away: one figure for the original, one for the WebP, and the percentage difference, with a before and after preview.

How it works

Your PNG is drawn to a canvas with alpha intact and encoded with the browser's own WebP encoder at the quality you pick, 88 unless changed. Dragging the slider re-encodes the visible file live. In Chromium, a canvas WebP at the highest setting came out in the lossless VP8L format in our test.

The output type is checked after encoding, because Safari returns a PNG when you ask its canvas for WebP. If that happens the page explains it, and you won't receive a PNG wearing a .webp name.

How to use PNG to WebP

  1. Press Select PNG images, or drop them onto the page, in Chrome, Edge or Firefox.
  2. Drag Quality, and watch the WebP size and Change figures.
  3. Use Compare, at 100% zoom, to inspect edges and any gradients.
  4. Press Download WebP, or Download all as ZIP.

Two real runs

At the default quality of 88, a grainy 1600 × 1067 PNG went from 3.21 MB to 370.4 KB (89% smaller). An 800 × 800 sticker with a transparent background went from 479.1 KB to 83.5 KB (83% smaller), and it stayed transparent. Both ran in Chromium.

When it helps

  • Making product photos with transparent backgrounds lighter for a store's listing pages.
  • Fixing a PageSpeed warning about images in older formats.
  • Shrinking a set of illustrations for a blog in one batch.
  • Reducing theme assets, where every kilobyte is multiplied across all your visitors.

Tips for a better result

  • For flat logos with few colors, compare with the PNG palette option in the Image Compressor. A small palette PNG can be competitive.
  • Watch soft shadows and thin text. Lossy WebP can blur them at lower settings, so raise the quality for those images.
  • Keep the original PNG as your source, and regenerate the WebP from it if you ever need a different setting.
  • When an image will never be shown larger than 800 px wide, resize it first. Dimensions affect size more than the quality setting.

Good to know

  • Safari cannot create WebP here, because its canvas has no encoder. It can display the results, however.
  • You don't get encoder settings such as method or filter strength. Only the quality value is exposed by the browser.
  • Output depends on your browser's encoder, so the same quality may give slightly different sizes in another browser.
  • Older image software and some email clients still can't open WebP.

Questions people ask

Does WebP really keep the transparency from my PNG?

Yes. WebP has an alpha channel, including at lossy quality settings. Our test converts a half-transparent image and checks the alpha values in the decoded output.

Is WebP always smaller than PNG?

Usually, and often by a lot, but not always. Extremely small or very flat images can come out about the same or larger. The Change figure measures your actual file.

What quality should I choose?

75 to 88 suits most web images. Use the 100% view to inspect the parts your visitors will look at closely, since a good setting for a photo can be too low for an illustration.

What to use next

Learn more

Last reviewed . Read our editorial policy.