Short answer
A WebP file is an image file browsers know how to decode. Google's WebP page says the format supports both lossy and lossless compression, plus transparency and animation. The same page says lossless WebP is 26 percent smaller than PNG, and lossy WebP is 25 to 34 percent smaller than comparable JPEG images at equivalent SSIM quality.
Last verified against the sources listed below.
Key takeaways
- WebP is an image format. The MIME type is image/webp and the extension is .webp.
- Google's page documents both lossy and lossless WebP, including transparency and animation.
- Google's published comparison is 26 percent smaller than PNG and 25 to 34 percent smaller than JPEG.
- Chrome's doc lists current Chrome, Firefox, Safari, Edge, and Opera, and still tells you to keep a fallback.
- MDN says use lossless for screenshots and line art, and lossy is usually acceptable for photos.
A reader who asks what is webp file wants the format browsers decode, not a history of image codecs. Google’s WebP page calls it an image format for the web. MDN lists it as a Web Picture file with the type image/webp and the extension .webp.
The useful details are the ones those pages print: lossy and lossless modes, the size comparisons Google publishes, which browsers decode it, and when a PNG or JPEG should stay in the page as a fallback.
What is a WebP file?
It is a raster image file a browser can decode into pixels. MDN’s image-type table puts WebP next to PNG, JPEG, and GIF, and marks it as a strong choice for still images and animation. The file is not SVG, and it is not a document.
Google’s format page says a WebP file consists of VP8 or VP8L image data in a container based on RIFF. The reference library is libwebp. The same page names the command-line tools cwebp and dwebp for converting to and from WebP. Those names are the project’s tools, not a requirement that you install them before a browser can show the file.
Page speed is why the format shows up in performance work. web.dev’s image compression guide says images often account for most of the downloaded bytes on a page, and that fewer bytes leave more room on the connection for the rest of the page. A smaller image file is one way to cut those bytes. It is not the only way.
Does WebP do lossy and lossless?
Yes. Google’s page says WebP provides both lossless and lossy compression, and that both modes can include transparency. Animated WebP supports lossy, lossless, and transparency together. That is the page’s claim, not a guess from a converter dialog.
Lossy WebP uses predictive coding. Google says that is the same method VP8 uses to compress keyframes: neighboring blocks predict a block, and the encoder stores the difference. Lossless WebP uses fragments of the image that were already seen so new pixels can be reconstructed exactly. It can also use a local palette when no useful match is found.
MDN describes the same split in shorter language. Lossy WebP is predictive coding based on VP8. Lossless WebP uses substitutions for repeating data. Lossy WebP stores the image in 8-bit Y’CbCr 4:2:0.
Lossless WebP uses 8-bit ARGB, 8 bits per component, 32 bits per pixel. Those storage details are MDN’s, and they matter when you compare a WebP export with a PNG of a screenshot.
web.dev separates the idea from any one format. A lossy step may drop pixel data. A lossless step compresses what remains without dropping it. The guide also says a quality number is not comparable across formats: a quality 90 JPEG is not the same result as a quality 90 WebP.
If a converter shows one slider, read which mode it applies before you replace a file.
How much smaller does Google claim?
Google prints two comparisons, and they are not a single round number. Lossless WebP images are 26 percent smaller than PNGs. Lossy WebP images are 25 to 34 percent smaller than comparable JPEG images at an equivalent SSIM quality index. The page’s own last-updated line is 2025-08-07 UTC.
Those sentences were still on the page in December 2026.
MDN is close and not identical. It says lossy WebP images are on average 25 to 35 percent smaller than JPEG images of visually similar compression, and that lossless WebP is typically 26 percent smaller than the same images in PNG. Use Google’s 25 to 34 percent range when you cite Google, and MDN’s 25 to 35 percent range when you cite MDN. Neither page says “about 30 percent” as the figure to quote.
Google adds two transparency notes. Lossless WebP supports an alpha channel at a cost of 22 percent additional bytes. When lossy RGB compression is acceptable, lossy WebP with transparency typically provides 3 times smaller file sizes compared with PNG. Those are Google’s figures.
They are not a promise for every icon or screenshot you export.
| Claim on the page opened | Figure the page prints |
|---|---|
| Lossless WebP versus PNG (Google) | 26 percent smaller |
| Lossy WebP versus JPEG at equivalent SSIM (Google) | 25 to 34 percent smaller |
| Lossless alpha, extra bytes (Google) | 22 percent additional bytes |
| Lossy WebP versus JPEG (MDN average) | 25 to 35 percent smaller |
| web.dev on WebP versus older raster formats | Usually far smaller, no single percent |
How to optimize images for SEO is the wider job: format, dimensions, and the text around the image. Swapping the container without checking the pixels can make a file smaller and the picture worse. web.dev says not to over-compress, and it points at Largest Contentful Paint because a hero image is often that element.
Which browsers decode WebP?
Current major browsers do. Google’s format page lists native support in Chrome, Safari, Firefox, Edge, and Opera. Chrome’s Lighthouse document repeats that list for the latest versions of those five browsers. MDN’s table matches, and then adds a macOS limit: Safari on macOS needs Safari 14 or later and macOS Big Sur (11) or a more recent macOS.
The Chrome document also says WebP will not work on iPhones below iOS 16. That line is in the stack notes on the Lighthouse page, fetched in December 2026. It is a support floor, not a reason to skip WebP for current phones. The same page says the old “serve images in modern formats” audit moved into the Improve image delivery insight as of Lighthouse 13.
A report that still uses the older audit name is a tool version issue, not a change to the file format.
MDN says WebP can also be produced from a canvas through HTMLCanvasElement.toBlob(). That is a browser API path, separate from cwebp. If you export from a design app, you are using that app’s encoder. The browser still only needs a valid WebP file and a supported version.
When should you keep a fallback?
Keep a PNG or JPEG when you still have to serve browsers that do not decode WebP. MDN says support is broad in current major browsers and shallow in older ones, and it tells you to provide a JPEG or PNG fallback, for example with the picture element. Chrome’s document says the same thing: a fallback PNG or JPEG for older browser support.
MDN’s choice of mode depends on the picture. Screenshots, diagrams, logos, and line art should prefer lossless encoding, because blur and colored fringes on text and sharp edges are easy to see. Photographs and other continuous-tone images can usually tolerate lossy compression. Charts and icons that must stay sharp at many sizes should be SVG, not a raster WebP.
A PNG to WebP converter can make the WebP file in the browser from a PNG you already have. The conversion does not choose your fallback. Leave the PNG or JPEG in the picture element when the support notes above still apply to your audience.
web.dev’s checklist line is the practical summary: prefer WebP or AVIF over older raster formats, because those newer files will usually be far smaller. Pair that with Google’s exact percentages when you need a number, and with a fallback when the browser list says you still need one.
Frequently asked questions
What is a WebP file in plain terms?
It is an image file that browsers can decode as a picture. MDN's image type table lists WebP as the Web Picture format, with the MIME type image/webp and the file extension .webp. Google's format page calls it an image format for the web that offers both lossless and lossy compression. A WebP file is not a document format and not a vector drawing.
Does WebP support both lossy and lossless images?
Yes. Google's WebP page says the format provides superior lossless and lossy compression, and that lossy, lossless, and transparency are all supported in animated WebP too. Lossy WebP uses predictive coding, the method VP8 uses for video keyframes. Lossless WebP uses image fragments that were already seen so new pixels can be reconstructed exactly, and it can use a local palette.
Are WebP files 30 percent smaller?
Do not round this to a single 30 percent. Google's page, last updated 2025-08-07 and still showing these lines in December 2026, says lossless WebP images are 26 percent smaller than PNGs. It says lossy WebP images are 25 to 34 percent smaller than comparable JPEG images at an equivalent SSIM quality index.
Which browsers decode a WebP file?
Google's format page says WebP is natively supported in Google Chrome, Safari, Firefox, Edge, and Opera. MDN's compatibility line lists all versions of Chrome, Edge, Firefox, Opera, and Safari, with a note that Safari on macOS needs Safari 14 or later and macOS Big Sur (11) or a newer macOS.
Should every image on a page be WebP?
Not blindly. MDN says screenshots, diagrams, logos, and line art should prefer lossless encoding because blur and colored fringes show on text and sharp edges. Photographs and other continuous-tone images can usually tolerate lossy compression. Diagrams that must stay sharp at many sizes should be SVG instead. Google's page also says a WebP file is VP8 or VP8L image data in a RIFF container.
Sources
- An image format for the Web · Google for Developers, 2026
- Image file type and format guide · MDN, 2026
- Serve images in modern formats · Chrome for Developers, 2026
- Compress images · web.dev, 2026