A page speed report flags your images with "Serve images in next-gen formats", and most of the heavy files turn out to be PNGs: product cut-outs on transparent backgrounds, hero illustrations, screenshots, banners with text. PNG is lossless, which is why these files are so large, and WebP is the usual recommended replacement.
Converting is easy. Knowing which PNGs to convert, what quality to use, and how to avoid breaking anything is the real work. This guide explains how WebP compares with PNG, where the savings come from, and how to publish WebP images properly.
PNG and WebP compared
PNG (Portable Network Graphics) compresses losslessly: every pixel comes back exactly as saved. That is ideal for editing and archiving, but a photo-like PNG can be several megabytes.
WebP was introduced by Google in 2010. It has two modes:
- Lossy WebP, based on video compression techniques, discards detail the eye is unlikely to notice, much like JPEG but typically more efficiently.
- Lossless WebP, which works like PNG but usually produces smaller files.
Crucially, WebP supports an alpha channel in both modes. That is the feature that makes it a PNG replacement rather than just a JPEG replacement: a product photo on a transparent background can be a lossy file with a clean, transparent edge.
| PNG | WebP (lossy) | WebP (lossless) | |
|---|---|---|---|
| Transparency | Yes | Yes | Yes |
| Exact pixels | Yes | No | Yes |
| Typical size for photographic content | Large | Much smaller | Smaller |
| Browser support | Universal | All current major browsers | All current major browsers |
| Support in older desktop software | Universal | Patchy | Patchy |
Which PNGs benefit most
- Photos and photo-like graphics saved as PNG. Product cut-outs, hero images and screenshots of photos shrink dramatically with lossy WebP.
- Large decorative illustrations with gradients. These also compress well.
- Tiny icons and simple flat graphics. Savings are small in absolute terms, and an SVG may be a better format anyway.
- Images people will download and edit. Keep these as PNG; a WebP download annoys users whose software cannot open it.
Convert PNG to WebP with our tool
The PNG to WebP converter encodes files with your browser's own WebP encoder, on your device.
- Open PNG to WebP and drop your PNG files onto the upload box, or click to choose them. Batches are fine; each file can be up to 50 MB.
- Set the WebP quality slider. The default of 85% is a good balance for photographic content. Drop towards 75% for large background images; stay at 90% or higher for screenshots with small text.
- Click Convert to WebP. Each file shows its original size, the new size and its pixel dimensions, and the summary shows the total before and after.
- Save each file with its WebP button, or use Download all (ZIP).
Transparency is preserved automatically. If you change the quality after converting, the results reset so you can convert again and compare sizes.
This tool produces lossy WebP. If you need pixel-exact lossless WebP, use the cwebp command shown below.
Other ways to create WebP files
cwebp (Google's command-line encoder)
cwebp -q 80 banner.png -o banner.webp # lossy
cwebp -lossless icon.png -o icon.webp # lossless
It offers fine control, including an alpha quality setting, and is easy to script over a folder.
Your CMS or image CDN
Many content management systems, plugins and image CDNs generate WebP versions automatically and serve them to browsers that accept them. If your platform does this, let it: you keep the original PNG as the master and never manage two sets of files.
Design and photo software
Recent versions of common editors, including Photoshop and GIMP, can export WebP directly. This is convenient if you are already editing the image.
Publishing WebP safely
All current major browsers display WebP, so for most sites a plain <img src="banner.webp"> works. If you need to support very old browsers or email clients, use the <picture> element with a PNG fallback:
<picture>
<source srcset="banner.webp" type="image/webp">
<img src="banner.png" alt="Spring catalogue banner" width="1200" height="600">
</picture>
Browsers that understand WebP take the first source; others fall back to the PNG.
Tips and pitfalls
Resize before you convert
A 3000-pixel-wide PNG shown at 800 pixels wastes more bytes than any format change can recover. Size images for their display width, allowing 2x for high-density screens, using the Image Resizer or Bulk Image Resizer.
Watch text and sharp edges
Lossy compression softens fine lines. Check screenshots and diagrams at 100% zoom; raise the quality if small text looks fuzzy.
Compare, do not assume
Occasionally a simple PNG with few colours is already smaller than a lossy WebP. The converter shows both sizes, so keep whichever is smaller.
Email is different
Many email clients still handle WebP poorly. For newsletters, stick to PNG or JPG.
Need to go back?
If someone cannot open your WebP files, WebP to PNG restores a PNG that keeps transparency, and WebP to JPG gives a universal flat image. For JPG sources, use JPG to WebP instead.
Frequently asked questions
Does converting PNG to WebP keep transparency?
Yes. WebP supports an alpha channel, so transparent backgrounds stay transparent.
Is WebP better than PNG?
For images on web pages, usually yes, because files are much smaller. PNG is still better for editing, archiving and sharing with software that does not support WebP.
What quality should I use for WebP?
Around 75-85% suits most photos and banners. Use 90% or more for screenshots and graphics with small text.
Will converting to WebP improve my page speed score?
Smaller images load faster, which can improve scores that measure loading. The biggest gains usually come from combining WebP with correctly sized images.
Can every browser display WebP?
All current major browsers can. Very old browsers and some email clients cannot, so use a picture element with a PNG fallback if they matter to you.