Convert PNG to WebP

Converting PNG to WebP does everything PNG does, transparency included, in 25 to 50 per cent less space — and up to 80 per cent less if the PNG was really a photograph. Drop a whole folder above: each file converts on your own machine, keeps its alpha channel, and comes back as a ZIP with the names intact.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. WebP cannot hold everything a PNG can.
  • File size limit Up to 100 MB per file, free, without an account.

Up to 100 files at once. Mixed formats are fine.

What PNG to WebP actually does

A generated landscape with a low sun and three ridges, used to show what JPEG does to continuous tone. Shown as PNG.

PNG139 KB

A generated landscape with a low sun and three ridges, used to show what JPEG does to continuous tone. Shown as WebP.

WebP14 KB9.7× smaller

A photographic scene — smooth gradients, soft edges, grain. This is the case WebP is designed for or against, and the figures show which. Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.
A generated badge: a circular gradient on a transparent background with a white bar across it, used to show what each format does with transparency and with hundreds of shades. Shown as PNG.

PNG7 KB

A generated badge: a circular gradient on a transparent background with a white bar across it, used to show what each format does with transparency and with hundreds of shades. Shown as WebP.

WebP4 KB38% smaller

A transparent background and a gradient across the shape. WebP either keeps both, keeps one, or fills the transparency with a solid colour — which is the difference that catches people out. Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.
A generated application window with a sidebar, a table and a bar chart, used to show what JPEG does to flat colour and hard edges. Shown as PNG.

PNG3 KB

A generated application window with a sidebar, a table and a bar chart, used to show what JPEG does to flat colour and hard edges. Shown as WebP.

WebP11 KB4.2× larger

Flat colour and hard edges, as in an interface, a chart or a logo. Very different behaviour from the photograph above, and the reason the answer is "it depends what is in the file". Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.

Why replace PNG with WebP on a website

PNG is the format people reach for when an image has to be exact: a logo, an icon, a screenshot, a chart, anything with hard edges or a transparent background. It is lossless, so nothing is ever smudged, and it pays for that with size. On a page carrying twenty interface assets, that bill adds up to the number your performance report is complaining about.

WebP is the answer because it is the only widely supported format that covers both jobs. It compresses photographs about as well as JPG and it has a real alpha channel, so the transparent logo that had to be a PNG and the hero photograph that had to be a JPG can both be WebP. One format instead of two, on a site that already has enough moving parts.

How much smaller a PNG gets as WebP

How much you save depends on what the PNG contains, and the range is wide. Screenshots, flat graphics and interface assets typically come down by a quarter to a half. A photograph that somebody saved as a PNG — which happens more often than it should — can lose eighty per cent or more, because PNG is a genuinely poor way to store continuous tone. If your PNGs are large and you are not sure why, that is usually the reason.

This conversion writes the lossy mode, always

WebP has two modes. The lossless one stores every pixel exactly; the lossy one is a still frame of the VP8 codec. The encoder here is called with a quality figure and nothing else, so lossy is what comes out.

For photographs and screenshots that is the mode you would have picked anyway. For a logo or an icon set with one-pixel lines it means a hint of softening its designer can see, so raise the quality for those. Where pixels have to be exact, PNG is the target that guarantees it.

Transparency survives the conversion untouched

The transparency question, which is the first thing people ask when moving away from PNG, simply does not arise: it is preserved, there is no fill colour to choose, and a cut-out image behaves exactly as it did. That is the practical difference between this conversion and PNG to JPG, where transparency has to be thrown away and filled with something.

When to keep the PNG anyway

Two cases. Favicons — browser support for a WebP favicon is patchy and the file is tiny anyway, so it is not worth the risk. And anything a human will be emailed or asked to open outside a browser, where WebP is still occasionally refused by older desktop software.

Everything else on the site can move. Drop a whole build folder at once: each file converts in your browser with its own progress, nothing is uploaded, files are taken up to a hundred at a time and 100 MB each, and the results come back as a single ZIP with the names intact.

Upscaled PNGs are the heaviest thing on a page

An upscaler writes PNG so that none of the detail it just added is lost, which routinely means 40 MB after a four-times enlargement. That file has no business being served to a visitor, and the saving from WebP is largest exactly where the PNG is largest.

Serve the WebP unless the image has edges that must stay exact. Keep the PNG as the master: it is what any later edit or second upscale should start from, while the WebP is only the copy visitors download.

Converting a whole site’s images at once

Replacing images one at a time is not how this is done in practice. Dropping a folder converts them in sequence and hands them back together, and since the work runs on your machine there is no upload for a hundred files and no queue to wait in.

Keep the PNGs. The point of the exercise is to serve WebP where it is understood, and the picture element does that with the PNG as its fallback — which only works if the PNG still exists.

Where to leave the quality figure on a PNG source

It starts at 82, where the re-encode is invisible on a photograph at normal size. A PNG has never been through a lossy codec, so this is the first generation of loss rather than the second, and it holds up better at a given number than a JPG would.

Raise it into the nineties for interface assets, diagrams and small type, where a single pass shows first. The alpha channel is compressed separately and at full quality by default, so a cut-out keeps crisp edges even when the colour is compressed hard.

How to convert PNG files to WebP in bulk

  1. Drop your PNG files onto this page — a whole folder works.
  2. Each converts in your browser, transparency and all.
  3. Take them individually or as one ZIP.

PNG vs WebP: identical picture, smaller file

PNG compared with WebP
PNGWebP
Full namePortable Network GraphicsWebP Image
File extension.png.webp
Media typeimage/pngimage/webp
CompressionLossless — nothing is discardedEither, depending on the setting
First published19962010
Published byPNG Development GroupGoogle
SpecificationISO/IEC 15948RFC 9649
LicensingOpen standardOpen standard
Standing todayCurrentCurrent
Bit depth168
Colour it can describeRGB, greyscale, indexed paletteRGB, YCbCr
Largest image2,147,483,647 px per side16,383 px per side
Opens in a browserEvery browserEvery browser
Considered insteadSVG, JXLAVIF, JPG

What is lost

PNG carries up to 16 bits per channel and WebP stores 8. The extra precision is what survives heavy correction without banding, so the conversion is best made after the editing rather than before it.

What survives

Transparency survives. Both PNG and WebP store an alpha channel, so a cut-out stays cut out and nothing is filled in behind it.

What the target format adds

WebP can hold animation; a PNG is one frame. The result is a single-frame file in a format that could hold more.

Opening the result

Adobe Photoshop and GIMP read both PNG and WebP, so there is a way to check the result against the original without a second tool.

What each format is for

PNG is PNG Development Group's format, published in 1996. It records 16 bits per channel.

WebP comes from Google and dates from 2010, specified as RFC 9649. Adobe Photoshop, GIMP and Squoosh all read it.

PNG to WebP: common questions

Are my PNG files uploaded anywhere?

No. This conversion runs entirely inside your browser, so the file never leaves your device. You can confirm it yourself: open the network tab of your browser's developer tools and convert something. You will see the page load, plus the analytics and advertising the site is paid for with — and nothing carrying your file. The engine behind this particular pair is jSquash, WebAssembly builds of the reference image codecs; your browser fetches it once and caches it.

Does WebP keep transparency?

Yes, fully. WebP has a proper alpha channel, which is the main reason it can replace PNG rather than only JPG. A logo with a transparent background converts without any need to choose a fill colour.

How much smaller will the WebP be?

For screenshots, UI assets and flat graphics, usually 25 to 50 per cent. For a photograph that was saved as PNG, far more — often 80 per cent or better, because PNG stores photographs very inefficiently.

Is converting PNG to WebP lossless?

No. WebP has a lossless mode, but this conversion writes the lossy one at the quality you set, so a small, usually invisible amount is given up. For a logo or an icon whose edges have to stay exact, raise the quality into the nineties and keep the PNG as the master copy.

Can I use a WebP as a favicon?

Not reliably. Favicons want ICO or PNG, and browser support for a WebP favicon is patchy. Keep a PNG or an ICO for that one file.

Do I need a fallback for old browsers?

In practice, no. WebP has been supported everywhere for years, including Safari. If you support genuinely ancient browsers, a picture element with a PNG source is the standard way to do it.

Can I convert a whole folder of PNGs at once?

Yes. Drop up to a hundred at once; each converts separately with its own progress, keeps its name with the extension swapped, and the batch comes back as one ZIP. Because it runs on your machine there is no queue and no daily allowance.

Not sure which you need?

This page converts one into the other. If you are choosing rather than converting, PNG vs WebP answers which to use, for what, and what each is bad at.

More about these formats

Where these figures come from

The claims this page makes about PNG and WebP are checkable, and these are the documents that settle them.