WebP vs PNG vs JPG: which image format should you use?
Quick answer
Use JPG for photos that need to open everywhere, PNG for screenshots, logos and graphics that need sharp edges, exact pixels or transparency, and WebP for images on websites, where it is usually 25–35% smaller than JPG and supports transparency too. If you're unsure: photos to share are JPG, images for your own website are WebP, and anything you'll keep editing is PNG.
Quick rules
- Photo you're emailing, printing or uploading to a form: JPG. It opens in every app and almost every upload form accepts it.
- Image on your own website: WebP. Smaller files mean faster pages, and every current browser displays it.
- Screenshot with text, a diagram, a logo or an icon: PNG, or WebP if file size matters on the web.
- Anything with a transparent background: PNG or WebP. JPG can't do transparency.
- A master copy you'll keep editing: PNG, because saving it again never adds new compression artefacts.
WebP, PNG and JPG compared
| JPG / JPEG | PNG | WebP | |
|---|---|---|---|
| Compression | Lossy | Lossless | Lossy or lossless |
| Transparency | No | Yes, full alpha | Yes, full alpha |
| Animation | No | Via APNG | Yes |
| Typical 1920×1080 photo | 300–600 KB | 2–5 MB | 200–450 KB |
| Text and sharp edges | Can blur or ring | Pixel-perfect | Good; lossless mode is pixel-perfect |
| Browser support | Universal | Universal | All current browsers |
| Desktop apps and upload forms | Universal | Universal | Mostly; some older software rejects it |
The sizes above are rough guides for a typical photo at web-friendly quality (around 80%). A detailed photo of foliage compresses worse than a portrait against a plain background, and a screenshot of a text document is often smaller as PNG than as JPG.
JPG: the universal photo format
JPG throws away detail the eye barely notices, which makes photographs small. Quality is adjustable: 75–85% is hard to tell apart from the original for most photos, while 90% is a safe high-quality default. Its weaknesses are sharp edges and flat colour. Text, line art and logos pick up fuzzy halos, and each time a JPG is edited and saved again a little more detail is lost.
JPG has no transparency, so converting a PNG or WebP with a transparent background to JPG fills those areas with a solid colour. Our PNG to JPG converter uses white.
PNG: exact pixels and transparency
PNG stores every pixel exactly. That's ideal for screenshots, UI mockups, charts, logos and any image you'll edit repeatedly. It also supports smooth, semi-transparent edges, which is why logos and stickers are usually PNG.
The trade-off is size with photos: a PNG of a photograph is often 3–10 times bigger than the JPG. Re-saving a PNG as PNG rarely shrinks it much, because browsers and most simple tools can only write PNG losslessly. If you need a smaller file, convert it: PNG to WebP keeps transparency, and PNG to JPG is smallest for opaque photos.
WebP: smaller files for the web
WebP was designed by Google for web pages. It does everything JPG and PNG do in one format: lossy and lossless compression, transparency and animation. Google's own comparison found lossy WebP files 25–34% smaller than JPEGs of similar quality, and lossy WebP with transparency is often a fraction of the size of the equivalent PNG.
Every current browser displays WebP; Safari added support in version 14 in 2020. Where WebP still causes trouble is outside the browser: some older image editors, print services, email clients and upload forms reject it. If someone sends you a WebP you can't open, WebP to JPG or WebP to PNG fixes that.
What about AVIF, GIF and SVG?
- AVIF usually compresses even better than WebP and is supported by current versions of the major browsers, but support in other software is thinner. We can read AVIF (AVIF to JPG, AVIF to WebP) but can't create AVIF files, because browsers don't offer an AVIF encoder to web pages.
- GIF is limited to 256 colours. It's only worth using for simple animations or systems that demand it. For still images, PNG or WebP is better in every way.
- SVG is a vector format, ideal for logos and icons because it stays sharp at any size. Convert it to PNG (SVG to PNG) when a platform won't accept SVG.
Converting between formats: what to expect
- Converting to a lossless format doesn't restore quality. A JPG saved as PNG keeps its existing artefacts and gets much bigger.
- Check the result size. An already heavily compressed JPG can come out larger as WebP. The converters show before and after sizes, so lower the quality slider if needed.
- Animations become still images. Our converters keep the first frame of animated GIF and WebP files.
- Metadata is removed. Converting redraws the pixels, so EXIF data such as GPS location isn't carried over.
- Resize before you convert. For websites, scaling a 4000 px photo down to the size it is actually displayed at saves far more than any format change. Resize Image and Compress Image do both.
All conversions run in your browser, so your images stay on your device.
Frequently asked questions
For websites, usually: WebP keeps transparency and is typically much smaller. PNG is still better as an editable master copy and for software that doesn't accept WebP.
WebP is usually 25–35% smaller than JPG at similar quality and supports transparency. JPG is more widely accepted outside web browsers, so use it for sharing and uploads.
PNG keeps text perfectly sharp. If you need a smaller file and the screenshot is mostly photos or gradients, JPG or WebP at high quality also works.
No. It prevents further loss when you edit and re-save, but it can't restore detail that JPG compression already removed, and the file gets much bigger.
Some older image viewers and editors don't support WebP. Open it in a web browser, or convert it to JPG or PNG.