Skip to main content
Image format guide

What is a WebP file?

WebP is Google’s image format for the web: smaller files, decent transparency, and broad browser support. Here is when it helps and when JPG or PNG still wins.

  • Usually much smaller than JPG or PNG
  • Supports transparency and animation
  • Displayed by all current major browsers

WebP can be lossy or lossless. Modern browsers display it, but some older applications and upload forms still require JPG.

How WebP compares

WebP was built to reduce the number of bytes a web page downloads. For the same visual result it is typically smaller than JPG, and it can also carry an alpha channel like PNG. An animated WebP can replace an animated GIF at a fraction of the size.

The trade-offs are compatibility and workflow. Some image editors and older apps cannot open WebP, and converting to it is a one-way quality decision if you choose the lossy mode. Keep a lossless master if the image may be edited again.

WebP was introduced by Google in 2010 to reduce the number of bytes a web page downloads. It is not one encoding mode but several: a lossy mode derived from the VP8 video codec, a lossless mode derived from VP8L, and an extended mode that adds alpha and animation. The same file extension covers all of them, which is why two WebP images can behave very differently. A lossless WebP can be a valid working copy; a lossy WebP has already made a permanent quality decision.

The lossy mode uses techniques similar to H.264 and AV1: it predicts blocks from neighbouring pixels and stores the residual. At the same perceived quality it is usually smaller than JPG, with the gap widest on images containing flat areas, text and sharp edges. Photographs still benefit, but less dramatically. The lossless mode competes with PNG for screenshots and interface graphics and typically wins by a clear margin, which is why many sites serve icons as WebP.

Alpha support is where WebP diverges from JPG. An extended WebP can carry an eight-bit alpha channel with smooth edges, so a transparent logo does not need PNG. Animation is supported too, and an animated WebP generally replaces an animated GIF at a fraction of the size while keeping more colours. The trade-off is that a WebP animation is not understood by every chat app or older image viewer, so GIF still survives on compatibility grounds.

Browser display support is now essentially universal, but encoding support is a separate question. Chrome, Edge and Firefox can write WebP in a canvas; Safari added write support much later than read support. A converter running in the browser therefore has to check whether encoding is available before promising an output file. Any tool that silently produces an empty or wrong file on Safari is skipping that check.

WebP is a delivery format rather than an editing master. Once a lossy WebP has been saved, converting it to PNG or JPG cannot restore the detail that was discarded. Keep an original in PNG or TIFF if the image may be edited later, and generate WebP as the final step. For a one-off download that needs to open in a desktop application, converting to JPG or PNG is usually the more useful move.

WEBP at a glance

Extension.webp
IntroducedGoogle, 2010
ModesLossy (VP8), lossless (VP8L), extended (VP8X)
Colour depth8 bits per channel
TransparencyYes, 8-bit alpha in extended mode
AnimationYes, multiple frames with timestamps
Max dimensions16,383 × 16,383 pixels
Typical savingOften 25–35% smaller than JPG at similar quality

Where it works

Support changes between releases. The practical answer is always to convert when a tool refuses the file.

Chrome and EdgeDisplay and encode
FirefoxDisplay and encode
SafariDisplay in current versions; encode support varies by release
Windows PhotosSupported after the WebP extension is installed
Desktop design toolsVaries — many older versions only read JPG or PNG
Chat and emailIncreasingly common, but not universal

When to use WebP

  1. 01

    Web pages

    Use WebP for photos, illustrations and hero images where download size matters.

  2. 02

    Transparent graphics

    WebP can replace PNG for many icons, as long as every target browser supports it.

  3. 03

    Convert when needed

    Use WebP to JPG when an app refuses the format, or PNG to WebP to shrink a graphic.

Common questions

Is WebP better than JPG?+

Usually smaller at similar quality. Better is a matter of what the receiving app can open.

Does WebP support transparency?+

Yes, including smooth semi-transparent edges.

Can I open WebP on Windows?+

Recent Windows versions support it after the WebP image extension is installed; many other apps still do not.

Is WebP lossy?+

It can be either. The converter here uses lossy encoding for smaller files; pick PNG for a lossless working copy.

Which is smaller: WebP or JPG?+

Usually WebP, often by a noticeable margin at the same perceived quality. Exact savings depend on the image, so the converters here show the before and after file sizes.