JPG vs PNG vs WebP: which image format to use, and when
The format you save an image in decides how big the file is, whether it can have a transparent background, and where it will open. The wrong choice gives you a 4 MB photo, a screenshot with fuzzy text, or a file an upload form refuses.
The formats at a glance
| Format | Compression | Transparency | Best for |
|---|---|---|---|
| JPG | Lossy | No | Photos, uploads |
| PNG | Lossless | Yes | Screenshots, logos |
| WebP | Lossy or lossless | Yes | Websites |
| HEIC | Lossy | Rarely used | iPhone photo library |
| AVIF | Lossy or lossless | Yes | Websites |
JPG and PNG open on nearly every device, app and form. WebP opens in all modern browsers, but some forms and older apps refuse it. HEIC only opens in Safari 17 and later, on iPhones and on Macs; Windows needs add-ons. AVIF works in Chrome 85, Firefox 93 and Safari 16.4 (iOS 16) or later, and on Android 12 or later.
Lossy means some detail the eye barely notices is thrown away to make the file small, and it can't be recovered. Lossless means every pixel is stored exactly.
Real file sizes from our tests
We saved four images with Chrome's encoders, the same ones the swift.id tools use in Chrome: landscape photos 1 (1920 × 1012 pixels) and 2 (1920 × 1080), a screenshot of a web page (1280 × 800), and a banner-style text graphic (1200 × 630). AVIF was made with the sharp library at its default setting (quality 50), because Chrome can't save AVIF from a web page: ask it for AVIF and you get a PNG.
| Format | Photo 1 | Photo 2 | Screen | Text |
|---|---|---|---|---|
| PNG | 3.19 MB | 4.04 MB | 95 KB | 96 KB |
| WebP lossless | 1.87 MB | 2.40 MB | 66 KB | 77 KB |
| JPG 85% | 276 KB | 356 KB | 67 KB | 71 KB |
| JPG 75% | 207 KB | 254 KB | 56 KB | 59 KB |
| WebP 85% | 195 KB | 286 KB | 34 KB | 39 KB |
| WebP 75% | 127 KB | 177 KB | 27 KB | 32 KB |
| AVIF (quality 50) | 91 KB | 121 KB | 18 KB | 20 KB |
What the numbers say:
- PNG is wasteful for photos. Both photos were about 12 times bigger as PNG than as JPG at 85%.
- WebP beats JPG, by a varying margin. At 85% quality, WebP was 29% smaller for photo 1, only 20% for photo 2, and about half the size for the screenshot. Google quotes 25 to 34% for photos at equivalent quality; our results land around that range, not always inside it.
- Lossless WebP was 20 to 42% smaller than PNG on all four images, with every pixel kept. Google's figure is 26%.
- AVIF was smallest, but quality numbers don't mean the same thing across formats, so judge by looking at the result, not only by the setting.
Transparency
PNG, WebP and AVIF can store transparent areas, such as a logo without a background or a signature you want to place on a document. JPG can't. When a transparent image is turned into a JPG, the transparent parts have to be filled with a colour. In Image Converter you choose it under Background colour (white unless you change it), and the result row notes that transparent areas were filled. If the logo will sit on a coloured background, keep it as PNG or WebP.
When converting costs you quality
- Every save to a lossy format. JPG, lossy WebP, HEIC and AVIF discard detail each time they are saved. Re-saving a JPG again and again piles up damage, especially around letters and lines.
- JPG to PNG restores nothing. The PNG faithfully stores the JPG's compression artefacts. Same picture, much bigger file.
- Screenshots to JPG. Text and sharp lines suffer most from lossy compression. If text must stay crisp, use PNG or lossless WebP.
- Other things get dropped. Files from Image Converter carry no EXIF data and are saved in the sRGB colour space; from an animated GIF only the first frame is kept.
The rule of thumb: keep the original, and make each copy in another format from that original, not from a previous copy.
Quick picks
- Photos for forms, email or printing: JPG at 80 to 90%.
- Photos and illustrations on your own website: WebP, or AVIF if your site builder supports it.
- Screenshots, tables and anything with small text: PNG, or lossless WebP for a website.
- Logos or signatures with a transparent background: PNG or WebP.
- Photos on an iPhone: keep HEIC if storage is tight, but send JPG copies to other people.
How to convert
- Open Image Converter and press Choose files. It takes JPG, PNG, WebP, GIF, BMP, AVIF and SVG, several at once.
- Under Convert to, choose JPG, PNG or WebP. In Safari the WebP option can be greyed out because the browser can't create WebP files.
- For JPG and WebP, set the Quality; at 85% it is hard to tell from the original.
- Compare the before and after sizes in each row, then download each image or use Download all (ZIP).
For iPhone HEIC photos, use HEIC to JPG, which reads HEIC in any browser; the HEIC guide explains why that is needed. If you are aiming for a size limit such as 200 KB, Compress Image adjusts quality and dimensions together to hit it.