What is WebP?

One format that does JPEG's job and PNG's job, both of them roughly 25–35% smaller, supported by every browser people actually use.

WebP at a glance

Extension
.webp
Compression
Both lossy and lossless, in one format.
Transparency
Full 8-bit alpha, in both lossy and lossless modes.
Animation
Yes, and far more efficient than GIF.
vs JPEG
Typically 25–35% smaller at matched visual quality.
vs PNG
Typically 25% smaller losslessly, with the same alpha channel.
Browser support
Universal, including Safari since 2020.
Weak spot
Support outside browsers — email clients, older desktop software, print.

Understanding WebP

Why it is smaller than JPEG

The difference is architectural. JPEG describes each 8 × 8 block independently using a frequency transform. WebP's lossy mode borrows intra-frame prediction from the VP8 video codec: it predicts each block from the pixels already decoded above and to its left, then stores only the difference between the prediction and reality.

Most of an image is highly predictable from its neighbours, so those differences are small — and small numbers cost few bits. That single change accounts for most of the 25–35% advantage.

It also degrades more gracefully. At low quality WebP tends to blur, where JPEG breaks into visible 8 × 8 squares. WebP at quality 60 is still usable; JPEG at 60 generally is not.

One format instead of two

The genuinely useful thing about WebP is that it covers both jobs. Lossy WebP replaces JPEG for photographs. Lossless WebP replaces PNG for screenshots, logos and line art. Both modes support a full alpha channel.

That means a site can standardise on one format for every image rather than deciding per file — and every one of them is smaller than what it replaced.

Quality settings are not interchangeable with JPEG

Do not carry your JPEG number across. WebP holds together better at the low end, so WebP at 75 looks roughly like JPEG at 82 while being noticeably smaller.

Starting from your usual JPEG value produces WebP files larger than they need to be, which is exactly how people conclude — wrongly — that WebP did not help. For photographs, 75 to 80 is the useful range.

Where it still falls short

Outside the browser. Email clients are unreliable, plenty of desktop applications still refuse it, and print workflows generally do not accept it. Send a stranger a WebP and there is a real chance they will not know what to do with it.

Decode speed. Slightly slower than JPEG, which is measurable on low-powered devices rendering many images at once.

AVIF is smaller. Typically another 20–30% below WebP. If you have a build pipeline that can produce three formats, AVIF first with WebP as the fallback captures more. For most sites, WebP alone captures the majority of the benefit for a fraction of the effort.

The safe way to serve it

If you want the saving without the compatibility question, serve both and let the browser choose:

<picture>
  <source srcset="photo.webp" type="image/webp">
  <img src="photo.jpg" alt="Description" width="1600" height="1067">
</picture>

Browsers that understand WebP take the first source; everything else falls through to the JPEG. One extra line of markup and one extra file.

Try it yourself

Everything below runs in your browser, so you can test any of this on your own files without uploading them.

  • Compress WebP

    Re-encode existing WebP files, or convert JPEG and PNG into WebP.

    Open the tool
  • JPG to WebP

    Typically 25–35% smaller at matched quality. The standard web win.

    Open the tool
  • WebP to PNG

    When software refuses WebP. Expect a larger file — that is the trade.

    Open the tool
  • Compress JPEG

    Shrink JPG and JPEG photographs with a quality slider or an exact target size.

    Open the tool

Questions

Frequently asked questions

Every answer below is present in the page source, expanded, so it can be read without opening anything.

Do all browsers support WebP?

Every current one, including Safari on both iOS and macOS since 2020. Browser support is no longer a reason to avoid it. The remaining gap is outside the browser — email clients, older desktop applications and print workflows.

Is WebP lossy or lossless?

It can be either, which is unusual and useful. Lossy mode replaces JPEG; lossless mode replaces PNG. Browser canvas encoders — including the tools on this site — produce the lossy variety.

Does WebP support transparency?

Yes, a full 8-bit alpha channel in both modes. That is what makes it a genuine replacement for PNG rather than only for JPEG: you can have a transparent logo at a fraction of the PNG file size.

Why is my WebP bigger than the JPEG I started from?

Usually the quality setting is too high for the content, or the source JPEG was already heavily compressed and the WebP encoder is faithfully preserving its artefacts. Try quality 75, and always encode from the highest-quality original you have.

Should I convert my whole image library to WebP?

For images served on your website, yes. For originals and archives, no — keep those in their original format, because converting an already-lossy file to another lossy format incurs generation loss for a saving you may not need.

Can I convert WebP back to JPG or PNG?

Yes, and there are converters for both on this site. Understand what it is, though: converting to JPEG is a second lossy encode, and converting to PNG produces a much larger, lossless copy of the already-compressed image. Neither recovers detail.

From the blog

Related reading

Longer, more practical guides from the blog.

  • Image Formats

    WebP vs JPEG: Which Should You Use, and When JPEG Still Wins

    WebP produced a 27.0 KB file against MozJPEG's 41.1 KB on the same photograph at slightly higher measured fidelity — 34% smaller. It also produced a larger file than JPEG on random noise. The advantage is real and content-dependent.

    9 min read

  • Practical Guides

    How to Compress Images for a Website Without Wrecking Them

    Resize before you compress. Measured on one photograph: half the width at quality 80 produced a 16.4 KB file, while full width at quality 40 produced 20.6 KB and looked far worse. The order of operations matters more than the settings.

    8 min read

  • Image Formats

    PNG vs JPEG: When to Use Each, With the File Sizes to Prove It

    PNG stored the same photograph in 1274.1 KB where JPEG needed 67.5 KB — nineteen times larger. On a flat graphic PNG won. On a smooth gradient PNG lost to JPEG by a factor of two, which surprises most people.

    9 min read