WebP vs PNG: which should you use?
WebP vs PNG at a glance
| WebP | PNG | |
|---|---|---|
| Full name | WebP | Portable Network Graphics |
| File extension | .webp | .png |
| Introduced | 2010 | 1996 |
| Created by | PNG Development Group (W3C recommendation) | |
| Compression | Lossy or lossless | Lossless |
| Transparency | Yes | Yes (full alpha) |
| Animation | Yes | Only as APNG |
| Support | All modern browsers; some older desktop apps can’t open it | Every browser, app and device |
When to use WebP
WebP is a modern image format from Google that produces files 25–34% smaller than JPG at similar quality (according to Google’s WebP study), while also supporting transparency and animation.
- Website images
- Replacing both JPG and PNG on the web
- Animated images smaller than GIF
When to use PNG
PNG is a lossless image format that keeps every pixel exactly and supports full transparency. It is the standard for logos, icons, screenshots and graphics with sharp edges.
- Logos, icons and UI graphics
- Screenshots and text
- Images with transparent backgrounds