WebP
Google's web image format — lossy, lossless, transparency and animation in one file, 25–35% smaller than JPEG and PNG.
Definition
WebP is an image format developed by Google, based on the VP8 video codec. It supports lossy compression, lossless compression, transparency (alpha channel) and animation within a single format, effectively replacing JPEG, PNG and animated GIF for web use.
In practice
At matched visual quality, WebP files are roughly 25–35% smaller than JPEG and 20–30% smaller than PNG lossless. Universally supported since around 2020. It's the pragmatic default format for web images when AVIF isn't available.
When AVIF is available it beats WebP on size; see What Is AVIF? for when it wins and when it doesn't.
Why it became the default
WebP succeeded where earlier format attempts failed, and the reasons explain when to keep using it.
It replaces three formats at once. Before WebP, a site needed JPEG for photographs, PNG for transparency, and GIF for animation. WebP covers all three in a single format — one conversion path, one set of fallbacks, less to reason about.
Encoding is fast. This is the practical difference from AVIF. WebP encodes in a fraction of the time, which matters if your images are generated on demand, transformed in a CDN worker, or if you are processing a large batch and care how long it takes.
Support is effectively universal. Since roughly 2020 every current browser handles WebP, including older Safari versions that held out for years. That is why it remains the safe fallback beneath AVIF rather than being retired.
Lossy and lossless are different tools
WebP has two distinct modes and they are not interchangeable. Choosing the wrong one is a common mistake.
Lossy WebP replaces JPEG. Use it for photographs and anything with continuous tone. Quality 75–85 is the usable band, mirroring JPEG's.
Lossless WebP replaces PNG. Use it for logos, icons, screenshots, UI graphics and anything with flat colour or text. It is frequently 20–30% smaller than an equivalent PNG.
Converting a screenshot or logo to lossy WebP is where WebP gets blamed unfairly — the artifacts around sharp edges and text are the result of choosing the wrong mode, not a flaw in the format.
Related guides
Compress your images now — free and private
Process up to 200 images locally. Choose a format, compare the results and download a ZIP.