Skip to content
Image Toolkit
All guides
Formats/ 7 min

What Is WebP?

Learn what WebP supports, where it fits in a modern image workflow, and when JPEG, PNG, AVIF or SVG may still be a better choice.

Updated September 5, 2026

A web browser displaying a compact landscape image.
On this page

WebP is a web-focused raster format

WebP is an image format designed for efficient delivery. It supports lossy and lossless compression, transparency and animation, so it can replace several older delivery formats in many web workflows.

It does not replace every source format. Keep editable originals, camera files and vector artwork in formats appropriate to production, then generate WebP as a delivery asset.

Lossy WebP for photographs

Lossy WebP discards selected visual detail to reduce bytes. It works well for photographs, thumbnails and interface imagery when the quality setting is tested against the actual source. Watch fine text, hair, foliage and smooth gradients as quality falls.

Quality values are encoder controls, not universal percentages. Compare output visually instead of assuming a WebP quality number equals the same JPEG setting.

Lossless WebP and transparency

Lossless mode preserves decoded pixels and can store an alpha channel. It can be useful for interface assets and screenshots, but compare against an optimized PNG. A simple flat graphic may compress differently from a complex translucent texture.

For transparent images, inspect the RGB color hidden under partially transparent pixels. Poor edge handling can reveal a light or dark fringe when the image is placed on a new background.

Animation

Animated WebP can be substantially more capable than a simple still image, but animation changes the performance question. Compare frame count, dimensions, decode work and accessibility. A short video may be better for long or photographic motion, while CSS may be better for interface animation.

Respect reduced-motion preferences when motion is not essential.

Browser and application support

Current major browsers support WebP, but an image often travels beyond the browser: email clients, document editors, social platforms and older desktop applications may have different support. Test the complete publishing chain.

When a fallback is required, use picture:

<picture>
  <source srcset="product.webp" type="image/webp">
  <img src="product.jpg" width="800" height="600" alt="Product description">
</picture>

For current format details and compatibility notes, consult the MDN image type guide.

When another format is better

  • Use JPEG when interoperability with older software matters more than the last byte.
  • Use PNG for exact pixels when lossless WebP does not improve the workflow.
  • Use AVIF when tests show a useful photographic saving and your pipeline can handle its encode cost.
  • Use SVG for logos, icons and diagrams made from vector paths.
  • Keep the original source format for future editing.

A dependable export process

  1. Correct orientation and crop the source.
  2. Resize to the largest required display dimensions.
  3. Export at a moderate WebP quality.
  4. Inspect difficult areas at actual display size.
  5. Compare bytes with an equivalent JPEG or AVIF.
  6. Preserve transparency and required color information.
  7. Add responsive widths rather than serving one oversized file everywhere.

Common questions

Does changing the extension convert an image?

No. The file must be encoded as WebP. Renaming .jpg to .webp changes only the filename and can cause software to reject the file.

Can WebP be edited later?

Many editors support it, but WebP is best treated as an output format. Keep a higher-quality master so repeated edits do not accumulate loss.

Is WebP always smaller than JPEG?

No guarantee applies to every source and encoder. Compare at matched dimensions and perceived quality, then keep the result that meets your requirements.