WebPBaseline · Widely available
The WebP image format is a raster graphics file format that supports animation, alpha transparency, and lossy as well as lossless compression.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Sep 16, 2020. Widely available since Mar 16, 2023.
Browser support
DesktopChrome
1–31Not supported
32+Supportedsince Jan 14, 2014
Current: 155Edge
12–17Not supported
18+Supportedsince Oct 2, 2018
Current: 154Firefox
1–64Not supported
65+Supportedsince Jan 29, 2019
Current: 157Safari
1–13.1Not supported
14+Supportedsince Sep 16, 2020
Current: 27MobileChrome Android
18–31Not supported
32+Supportedsince Jan 15, 2014
Current: 155Firefox Android
4–64Not supported
65+Supportedsince Jan 29, 2019
Current: 157Safari iOS
1–13.4Not supported
14+Supportedsince Sep 16, 2020
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
HTML
<picture> <source type="image/webp" srcset="photo.webp"> <img src="photo.jpg" alt="…"> </picture>
Feature detection
There’s no simple runtime check for this feature; rely on the support table and test in your target browsers.
Documentation (MDN)
Specification
Usage share
Sub-features
Support for each part of the feature (5). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| mediatypes.image.webp | 17 | 18 | 65 | 14 | 18 | 65 | 14 |
| mediatypes.image.webp.alpha | 23 | 18 | 65 | 14 | 25 | 65 | 14 |
| mediatypes.image.webp.animation | 32 | 18 | 65 | 14 | 32 | 65 | 14 |
| mediatypes.image.webp.lossless | 23 | 18 | 65 | 14 | 25 | 65 | 14 |
| mediatypes.image.webp.lossy | 17 | 18 | 65 | 14 | 18 | 65 | 14 |