WebP

WebP is a web-oriented image format from Google that supports both lossy and lossless modes, transparency and animation in one file type. At matched quality it is usually smaller than JPEG or PNG.

At a glance

MIME type
image/webp
Extensions
.webp
Kind
Image
Compression
Lossy or lossless
Type
Encoded bitstream
Transparency
Supported
Bit depth
8-bit per channel

File structure

WebP uses the RIFF container. The first chunk identifies the variant: "VP8 " for lossy, "VP8L" for lossless, "VP8X" for extended files that carry alpha or animation. Metadata is stored in EXIF and XMP chunks.

How the data is compressed

Lossy WebP uses VP8 intra-frame coding — the same prediction and transform machinery as VP8 video, applied to one frame. Lossless WebP uses a dedicated entropy-coded format. Alpha is compressed separately, which is why transparent WebP assets are so much smaller than PNG.

Where it is accepted

Current Chrome, Edge, Firefox and Safari (14+) all decode WebP. Older Safari, many office suites and most print workflows do not, so JPG or PNG remains the safe fallback.

Strengths

  • Usually 20–35% smaller than JPEG on photos at matched quality.
  • Transparency and animation supported in the same format.
  • Decodes natively in every modern browser.

Weaknesses

  • Older desktop software and print pipelines cannot open it.
  • Colour profile handling is less consistent than JPEG.
  • Lossy mode can soften very sharp edges such as small icons.

Typical uses

  • Web images where you control the delivery pipeline.
  • Transparent interface graphics that need to stay small.
  • Replacing PNG screenshots on content sites.

Common problems

  • Uploading WebP to a form that whitelists .jpg/.png fails before the file is even examined.
  • Re-encoding through Canvas drops the ICC profile, which shifts brand colours.
  • Animated WebP is not a substitute for video: it has no audio and no seeking.

Convert or compress it

Related formats