What is WebP?
WebP is an image format developed by Google that supports lossy and lossless compression, alpha transparency and animation, usually producing smaller files than JPEG or PNG.
By Rocco Bombardieri · Updated
Want the full walkthrough? Read: WebP vs PNG for logos and graphics →
Explained in more detail
WebP was introduced by Google as a more efficient replacement for both JPEG and PNG on the web. A single WebP file can hold lossy photographic data, lossless pixel data, an alpha channel, or an animation, all inside a RIFF container.
Its lossy mode is derived from the intra-frame coding of the VP8 video codec. Its lossless mode is a separate algorithm designed specifically for images. Both modes can include transparency, which is a notable advantage over JPEG: you can have a lossy, photo-sized file with a soft-edged cut-out. Google's published comparisons report smaller files than JPEG and PNG at equivalent quality (lossy WebP versus JPEG, and lossless WebP versus PNG); results depend on the image.
Current versions of the major browsers support WebP, though MDN notes minimum versions for some, such as Safari 14 on macOS Big Sur or later. Older software and some upload forms, print workflows and desktop apps may still reject it, which is a common reason people convert WebP back to PNG or JPEG.
MDN lists a maximum WebP image size of 16,383 by 16,383 pixels.
When to choose it: photos and web graphics where file size matters, especially if you need transparency without paying PNG's size. When not to: assets that must open everywhere, or that you intend to keep editing, where a lossless PNG is safer.
Triim converts between PNG, WebP and JPEG in the browser, with a quality slider for the lossy formats and a display of input and output size so you can see the saving before you download.