Skip to content

WebP

Google's web image format — lossy, lossless, transparency and animation in one file, 25–34% smaller than JPEG and about 26% smaller than PNG.

On this page

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–34% smaller than JPEG (Google’s WebP documentation) and about 26% 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. Google puts it at about 26% 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.

Compress your images now — free and private

Process up to 200 images locally. Choose a format, compare the results and download a ZIP.

Open the compressor
100% private No signup

Frequently asked questions

WebP is used for web images — photographs, graphics with transparency, and animations. It produces files 25–34% smaller than JPEG at equivalent quality, which reduces page weight and improves load times.

Yes. WebP supports a full 8-bit alpha channel for transparency in both lossy and lossless modes.

For web use, yes. WebP produces files 25–34% smaller than JPEG at matched visual quality and additionally supports transparency and lossless compression. JPEG remains useful only for maximum compatibility.

Serve AVIF first and WebP as the fallback. AVIF usually produces smaller files than WebP at matched quality, but WebP encodes far faster and has marginally broader support. In a <picture> element the browser picks the best format it understands, so offering both costs nothing.

Almost always because a flat-colour graphic was saved in lossy mode. Screenshots, logos, icons and anything with text or sharp edges should use WebP lossless, which Google puts at about 26% smaller than PNG. Lossy WebP is for photographs.