Convert PNG to WebP

Convert PNG images to WebP in your browser to cut page weight. Transparency is preserved, quality is adjustable, and nothing is uploaded anywhere.

🌐 Español

Drop your files here (.png)

🔒 Private by design: your files are processed locally in your browser and never uploaded to any server.

Going from a lossless source to a lossy one

This conversion has a property the other direction does not: the file you are starting from is perfect. A PNG is a bit-exact record of whatever produced it, so every difference between the source and the WebP you get back is a difference this step introduced. There is no earlier generation of damage to hide behind and no ambiguity about who is responsible for the softening.

That framing is useful because it makes the decision concrete. You are spending a measured amount of image fidelity to buy a smaller file, and you get to choose how much. The saving is usually large for photographic PNGs, because lossless compression is a bad fit for photographic detail and a lossy codec designed for the web is a very good one. The saving is much smaller for the flat, sharp-edged graphics that PNG was made for.

The conversion is also one-way. WebP will not remember what the PNG contained, so the original file is the only copy of the original pixels you will ever have.

The alpha channel is deliberately not flattened

Both formats carry a real alpha channel, so nothing here is composited onto a background colour. The module calls the plain conversion path rather than the flattening one that the JPG converters use, with an explicit note in the code explaining why: flattening would destroy transparency that the target format is fully able to represent, which would be a bug rather than a feature.

The practical result is that logos, app icons, cut-out product photos, sprite sheets and UI assets keep their transparent backgrounds, including the partly transparent pixels along anti-aliased edges and inside soft shadows. Converting back with WebP to PNG will return that alpha channel unchanged, though of course not the detail the lossy pass removed.

Quality 80 and what the encoder does with it

The WebP quality (1–100) field starts at 80, is clamped into the 1 to 100 range, and is then divided by a hundred before it reaches the browser’s WebP encoder. Eighty is a sensible default for photographic content on a website, where it typically produces something visually very close to the source at a fraction of the size.

Push it up when the picture has fine text, thin lines or a large flat area where banding would be obvious. Pull it down when the image is decorative, small on screen, or behind other content. The honest way to pick is empirical rather than theoretical: convert one representative image at two settings and look at both at full size. Because everything happens locally, that experiment costs seconds rather than two more uploads.

Flat-colour graphics are the awkward case

The advice you usually read is that WebP beats PNG, and for photographs it does. For the material PNG was designed around it is much less clear cut. A logo with three colours, a chart, a diagram, a pixel-art sprite or a screenshot of an interface is largely made of long runs of identical pixels, which PNG’s filtering and deflate stage compress extremely efficiently. There is comparatively little left for a lossy encoder to remove, and what it does remove tends to be exactly the crisp edges that make those images readable.

So for that kind of artwork, either raise the quality substantially or skip the conversion. Optimize PNG shrinks a PNG’s file size by re-encoding the container and reducing bit depth where it can, without changing a single decoded pixel, and for flat graphics it is often the better answer than any lossy format. When you do want maximum compression on photographic assets, PNG to AVIF generally goes further than WebP at the cost of a much slower encode.

Converting a batch of PNG exports

  1. Drop your .png files onto the box above, or click Choose files. Additional drops add to the same batch, and a file with a name and size already in the list is skipped.
  2. Set WebP quality (1–100) if 80 is not what you want. Higher keeps more detail and costs bytes; lower does the reverse.
  3. Click Convert PNG to WebP. Each file is decoded and re-encoded in turn, so the progress bar moves in steps rather than smoothly.
  4. Download each result from its own link, then click Process another to empty the tool before the next batch.

Keeping a lossless PNG alongside the WebP

Treat the WebP as a distribution copy and the PNG as the master. Once a design asset exists only as a lossy WebP, every future edit compounds the loss, and any request for a print version or a higher-resolution crop has to start from a degraded file. Storage is cheap; regenerating artwork is not.

For a site rebuild that means keeping the exported PNGs in the project and publishing the WebP versions, rather than converting in place and deleting the originals. The rest of the raster converters live on the image tools hub, and the image converter and editing guide covers how the formats compare when you are choosing between them.

See it in action

Screenshot of the Convert PNG to WebP tool with sysfenix-sample.png (466 KB) loaded, WebP quality (1–100) set to 80
Convert PNG to WebP mid-process: sysfenix-sample.png (466 KB) loaded, WebP quality (1–100) set to 80.
Screenshot of the Convert PNG to WebP result screen showing sysfenix-sample.webp ready to download (8 KB, 98% smaller)
The finished result: sysfenix-sample.webp ready to download (8 KB, 98% smaller). The download link is a local blob URL — the file never leaves your device.

Frequently asked questions

Can I get a lossless WebP out of this tool?

No. The conversion always hands the encoder a quality value, which is the lossy mode's control, so the output should be treated as lossy even at high settings. If losslessness is the requirement, keep the PNG and shrink it with the Optimize PNG tool, which rewrites the compression without touching a single pixel.

My icon set barely got smaller, and the edges look slightly muddy.

That is the expected outcome for flat-colour artwork. PNG's compression is excellent at long runs of identical colour, which is what icons and line art mostly are, so there is little for a lossy codec to win back, and lossy compression is at its worst around hard edges. Raise the quality well above the default for that kind of material, or leave those files as PNG.

Does the transparency in my logo survive?

Yes, including partial transparency. The module deliberately uses the plain conversion path rather than the one that paints a background colour first, because both the PNG source and the WebP target have a real alpha channel and flattening would throw away something WebP can store perfectly well.

What happens if I clear the quality box or type something odd into it?

Whatever arrives is forced back into the 1 to 100 range before it reaches the encoder, so an out-of-range or negative figure can never be passed through as typed. An empty box is different from a bad number, because a cleared field, or one holding text the browser cannot read as a number, counts as no value at all and the run falls back to the 80 the page starts with. So clearing it and converting gives you the default rather than the harshest setting on the scale.

Will a converted WebP display for all my visitors?

On the modern web, effectively yes; every current desktop and mobile browser decodes WebP. The gap sits outside the browser, where some email clients, older office software, print workflows and upload forms still reject the format, which is why the reverse converters on this site exist.

Is there any point converting a screenshot of text?

Usually not much. Screenshots of code, spreadsheets and interfaces are dominated by sharp lettering, which lossy compression handles badly and PNG handles well. If you convert one anyway, use a high quality value and compare the result at full size before doing the whole folder.

Related tools