WebP vs PNG comes down to where the image goes. On a website, WebP usually wins: Google reports lossless WebP about 26% smaller than PNG, with transparency supported, and every current major browser shows it. For files you email, upload to forms or send to others, PNG and JPG are safer, because support outside browsers is still patchy.
What is the WebP format?
WebP is an image format developed by Google, first announced in 2010. One format covers several jobs that used to need different files:
- Lossy compression for photos, similar to JPG.
- Lossless compression for graphics and screenshots, similar to PNG.
- Transparency (an alpha channel) in both modes.
- Animation, as a lighter replacement for GIF.
Files end in .webp. Chrome, Edge, Firefox and Safari all display them, with Safari joining at version 14. Any visitor on an up-to-date browser sees WebP images without you doing anything special.
You've probably met WebP already. Many sites serve it automatically, which is why a picture you save from a web page sometimes downloads as .webp even though it looked like an ordinary photo. Our guide to what a WebP file is covers opening and editing them.
WebP vs PNG: which is smaller, and when to use each
Google's figures put lossless WebP at about 26% smaller than PNG. Both are lossless, so you get the same pixels in less space. For graphics with transparency, lossy WebP can go much further: Google says it typically gives files about three times smaller than the PNG equivalent.
Use WebP over PNG when:
- The image sits on your own website, such as a logo, illustration, product cutout or screenshot.
- You want transparency without the weight of a PNG.
- Page speed matters and the image is large.
Stick with PNG when:
- You're sending the file to someone else, attaching it to a document, or uploading it to a form that lists accepted types.
- You need a master copy for editing in software that may not open WebP.
- The graphic is a logo or icon you could serve as SVG instead, which is often smaller still and stays sharp at any size.
Lossy WebP with transparency is a good fit for product cutouts and illustrations with soft edges. For pixel-perfect screenshots and UI mockups, lossless WebP keeps text crisp, just like PNG. Learn more about PNG's strengths in what is a PNG file.
WebP vs JPG for photos
For photos, Google measured lossy WebP at 25 to 34% smaller than comparable JPGs at the same SSIM quality score. On a page with a dozen product shots or a large hero image, that adds up to a faster load, especially on mobile data.
JPG still has two advantages. It opens everywhere, from old photo viewers to printers, and it's the safe answer for any upload portal. And modern JPG encoders are good, so a well-compressed JPG at the right dimensions comes fairly close. If you can only do one thing, sizing a photo correctly beats switching formats. A 4000 pixel photo shown 800 pixels wide wastes far more bytes than the format choice.
A practical approach for a site: keep originals as JPG or PNG, and publish WebP versions sized to the display width. The broader PNG vs JPG comparison helps when you're choosing the master format.
Quick comparison
- File size on the web: WebP is usually smallest, then JPG for photos or PNG for graphics.
- Transparency: WebP and PNG yes, JPG no.
- Animation: WebP yes, PNG and JPG no (GIF or video instead).
- Compatibility outside browsers: JPG best, PNG close behind, WebP weakest in older apps and upload forms.
- Editing without loss: PNG or lossless WebP.
How to convert PNG or JPG to WebP
For a handful of files, a browser tool is the fastest route. The image to WebP converter works locally in your browser, so the images aren't uploaded anywhere.
- Resize first if the image is larger than it will be displayed. The Resize Image tool sets an exact width and keeps the aspect ratio.
- Open the WebP converter and add your JPG or PNG files.
- Convert and download. Check that transparent areas are still transparent and that text in screenshots is sharp.
- If the WebP is still heavier than you want, compress it again with a target size in KB.
- Upload the WebP to your site and update the image references.
For photos, a lossy quality setting around 75 to 85 is a sensible starting point. Compare the result with the original at full size, and drop the quality further only if you can't see a difference.
Many content management systems and image CDNs create WebP copies automatically. If yours does, you may only need to upload a good JPG or PNG and let it handle the rest.
How to check that your site is serving WebP
Your CMS or CDN may say it creates WebP, but it's worth confirming. In Chrome or Edge, open the page, press F12 to open developer tools, and switch to the Network tab. Reload the page and filter by Img. The Type column shows the format each image arrived in, and the Size column shows how many bytes it took.
If you still see large JPG or PNG files there, the WebP copies aren't being served. Common causes are a caching plugin serving old HTML, images added through custom code that skips the CMS, or a theme that hard-codes image URLs. Fix those pages first, starting with the heaviest images.
Should every image on your website be WebP?
Most of them can be. A few exceptions are worth knowing:
- Simple logos and icons are often better as SVG.
- Files people are meant to download, such as a press kit photo or a printable graphic, are friendlier as JPG or PNG.
- Social sharing images (the Open Graph image shown when a link is shared) are safest as JPG or PNG, since you don't control every app that reads them.
- If you must support a very old browser, serve a JPG or PNG fallback with the HTML
pictureelement.
You may also see AVIF mentioned. It's a newer format that can be smaller again than WebP and has broad support in current browsers. WebP remains the easier default because more tools and platforms accept it.
How to open or convert a WebP file you downloaded
Current versions of Windows Photos and Mac Preview open WebP files, and any browser displays one if you drag it into a tab. Trouble starts when you upload the file somewhere that only accepts JPG or PNG, or edit it in an older program.
The fix is a quick conversion. The WebP to PNG or JPG converter handles single files or batches. Pick PNG if the image has transparency or sharp text, and JPG for a photo where you want a smaller file. Renaming the extension doesn't convert anything, so always export a real copy.
Free tools that run in your browser
Frequently asked questions
What is the WebP format?
WebP is an image format made by Google for the web. It supports lossy and lossless compression, transparency and animation, usually in smaller files than JPG or PNG.
Is WebP better than PNG?
For images on a website, usually yes. Google reports lossless WebP about 26% smaller than PNG, with transparency supported. PNG is still safer for files you send or upload elsewhere.
WebP vs JPG: which is better for photos?
Google measured lossy WebP photos 25 to 34% smaller than comparable JPGs. JPG remains more widely accepted by forms, printers and older apps.
Do all browsers support WebP?
All current major browsers do, including Chrome, Edge, Firefox and Safari from version 14. Only very old browsers lack support.
Why do images I save from websites download as WebP?
Many sites serve WebP automatically to make pages load faster. Convert the file to JPG or PNG if you need it for another app or an upload form.
