Stuck on png vs webp for your site? Pick WebP for most web delivery, since it makes smaller files and modern browsers support it, and keep PNG for masters and editing.
The guide to the best image format for websites puts this choice in context.
| Item | Value |
|---|---|
| Lossless WebP size compared with PNG | 26% smaller |
| Cost of transparency in lossless WebP | 22% additional bytes |
| Lossy WebP with transparency compared with PNG | Typically 3× smaller |
| Global browser support for WebP | 97.32% |
These figures come from Google’s WebP overview and Can I use. They can change, so check the sources before you rely on them.
How much smaller is WebP than PNG?
Google’s headline number is simple: lossless WebP images are 26% smaller than PNGs. That compares like with like, because lossless WebP rebuilds pixels exactly. Google’s WebP overview states it.
The detail comes from a Google study of a corpus of 12000 web PNG images, which Google recompressed so WebP could be compared with size-optimized PNGs. Lossless WebP came out 23% better than ZopfliPNG and 42% better than libpng. You can read the method in the WebP lossless and alpha study.
That study was last updated in 2017, so treat its percentages as a guide rather than a promise. Photos, flat-colour graphics and screenshots all compress differently, so test a sample of your own files.
Lossless or lossy WebP: choosing the mode
WebP has two modes, and picking the right one matters as much as picking the format. Lossless WebP uses already seen image fragments to reconstruct new pixels exactly, which makes it the closest match to PNG. Google describes the technique on its WebP overview.
Lossy WebP behaves differently. Google’s FAQ explains that it works in a Y’CbCr colour format, so it trades some detail for size, while lossless WebP works exclusively with RGBA. Both points are in the WebP FAQ.
Transparency is where lossy WebP surprises people. When lossy RGB compression is acceptable, lossy WebP with transparency typically gives 3× smaller files than PNG, according to Google.

A practical way to choose between the modes:
- Lossless WebP for screenshots with small text, line art and assets you will edit again.
- Lossy WebP for photos and soft gradients, where slight changes in detail are unlikely to be noticed.
- Lossy WebP with transparency for cut-out images that need an alpha channel and can tolerate some loss.
Browser support for WebP
Browser support is rarely the blocker now. Can I use’s October 2026 usage statistics put global support for WebP at 97.32%, as shown on its WebP table.
As of the August 2025 update to Google’s WebP page, WebP is natively supported in Chrome, Safari, Firefox, Edge and Opera.
For lossy, lossless and alpha support together, Google’s FAQ lists these minimum versions:
- Chrome (desktop) 23+
- Edge 18+
- Firefox 65+
- Opera 12.10+
- Safari 14+ (iOS 14+, macOS Big Sur+)
Serving WebP safely still means offering a fallback. The same FAQ notes that HTML5 supports a picture element that lets you list alternative image targets in priority order, so a client requests the first one it can display. Servers can also check the Accept header, as the FAQ describes.
A simple workflow looks like this:
- Keep the original PNG as your master file.
- Convert a copy with cwebp, the precompiled converter that Google’s WebP page offers for Linux, Windows and macOS.
- List the WebP first and the PNG second inside a picture element, or let your server read the Accept header.
- Open the page in an older browser and confirm the fallback loads.
Whichever file the browser picks, the alt text on the img element stays the same, and the guide to png alt text shows how to write it well.
Speed, memory and encoding cost
Smaller files would be a poor trade if they were slow to open. In Google’s study, WebP’s encoding and decoding speeds were roughly comparable to those of PNG, as the study reports.
Memory is the clearer difference. In the photo test, lossless WebP encoding used 25 MiB and 32 MiB at two settings, against 10 to 19 MiB for libpng and ZopfliPNG, according to the same study.
Decoding tells a friendlier story. Google’s summary says decoding generally uses less memory than PNG, particularly with lossy compression. Because you convert once and serve many times, the encoder’s extra memory rarely reaches your visitors.
When PNG is still the better choice
WebP wins on size for delivery, but PNG keeps real advantages in other parts of the workflow:
- Source files you will edit again, since lossy WebP discards detail.
- Workflows built around tools that cannot open WebP; Google says developers have added support to a variety of image editing tools, so check yours.
- Very large images, because WebP has a hard size ceiling.
Google’s FAQ gives the maximum pixel dimensions of a WebP image as 16383 x 16383 pixels. Few web graphics come near that, but large scans or stitched panoramas can. Both points appear in the FAQ and on the WebP page.
For logos and icons that must stay sharp at every size, the comparison of png vs svg may point you away from both raster formats.
Can I use also notes, in its October 2026 data, that AVIF and JPEG XL are designed to supersede WebP. That makes WebP a sensible format for now rather than a final one, as the Can I use page shows.
Frequently asked questions
Is WebP always smaller than PNG?
Show answer
Not always, but usually. Google’s study found WebP achieved higher compression density than size-optimized PNGs for over 99% of tested web images, which leaves room for exceptions (study). Convert a sample and keep whichever file is smaller.
Does WebP support transparency?
Show answer
Yes. Google says lossless WebP supports an alpha channel at a cost of just 22% additional bytes, and lossy WebP can carry transparency too (WebP overview).
Which browsers cannot display WebP?
Show answer
Can I use lists Internet Explorer 11 as not supported and Safari 14 to 15.6 as partial support (Can I use). If your audience includes those browsers, keep a PNG fallback.
Is it safe to convert every image to WebP?
Show answer
The Web Platform DX explorer lists WebP as Widely Available since 2023-03-16 (web-features explorer). Even so, hold on to your PNG originals so you can re-export later.



