Format, usage and framing details for a cleaner result.
Why WebP files come out smaller than PNG
PNG can only store an image exactly, using DEFLATE to pack repeated patterns. WebP offers a lossy mode that works more like video compression. It splits the picture into blocks, predicts each block from its neighbors and stores only the small differences, discarding detail the eye barely sees. Transparency is stored separately, so the color part can be lossy while the see-through part is kept accurately, edge by edge. According to Google's WebP documentation, this lossy mode with transparency is typically about 3 times smaller than PNG. That is Google's published figure for typical images, and your own result will depend on the picture. Convert one typical file first and compare the two sizes before you do the rest.
Photos, icons and screenshots compared
The saving depends on what the PNG contains. A photograph with soft gradients and noise gains the most, because PNG packs that kind of content poorly. A product shot with a transparent background also shrinks well. A small flat icon or a screenshot with sharp text may shrink less, and fine lettering can show slight softness at the lossy setting. If a graphic has only a few colors, test one file first. When the WebP is not clearly smaller, or the text looks soft, keep that PNG and convert only the images where the gain is obvious. That keeps the site light without hurting the sharpest graphics.
Using the WebP on your page
Upload the WebP to your site and point the image tag at it, or place it in a picture element with the PNG as a fallback for software that cannot open WebP. Inside a picture element, the browser skips a source whose format it does not support, as described on MDN. Keep the width and height attributes so the layout does not jump while the image loads, which also helps the page feel steady. Since the WebP is lighter than the PNG, your largest image arrives sooner, which is what Largest Contentful Paint measures. After the swap, test the page once to confirm that transparent edges sit well on your background colors. Also clear any cache in front of the site, so visitors get the new file.
Semi-transparent edges and shadows
Transparency is not just on or off. A soft drop shadow or an anti-aliased edge has dots that are partly see-through, and the WebP keeps those values. The lossy setting can leave a very faint halo or slight banding in a long soft shadow, so look at shadows at full size over a dark and a light background. If a shadow looks rough, the original PNG is still the right source for another export. Logos with a hard edge on a transparent background, such as a flat icon, almost never show a visible difference after conversion, since their edges are clean and the transparent part is simple.
Converting a folder of PNG files
A batch takes up to 30 files and 75 megabytes in total. Each file is converted on our server, and the results come back as one archive, with every WebP named after its PNG. Replacing the PNG files of a whole site therefore takes a few rounds, and files past the 75 megabyte total are left out and named in a message. Large PNG screenshots add up fast, so a folder of full-size captures reaches the total sooner than a folder of small icons, and fewer files fit in each round. If the server cannot be reached, each file is converted on your device instead, so the job still finishes. Convert the largest files in a smaller group if your connection is slow.
What the WebP carries from the PNG
The WebP carries the visible picture and its transparency. Camera details, location data and text fields stored in the PNG are not copied across, so only what you can see is written. We do not promise that a color profile survives, so for color-critical work compare the WebP with the original on a calibrated screen. Where the browser cannot write WebP itself, a small encoder module is downloaded first, and the conversion still runs on your device. An animated PNG becomes a single still image, so keep the original if the motion matters. The conversion never changes your PNG, so the original is always still there.