The short rule: use JPG for photos, PNG for screenshots, text and anything that needs a transparent background, SVG for logos and icons, and WebP or AVIF for images on websites. JPG makes small files by discarding detail you mostly can't see; PNG keeps every pixel, so it's bigger but perfectly sharp.
The formats side by side
| Format | Compression | Transparency | Best for | Works in |
|---|---|---|---|---|
| JPG / JPEG | Lossy | No | Photos, email, social media, printing | Everything |
| PNG | Lossless | Yes | Screenshots, text, logos, graphics, cut-outs | Everything |
| WebP | Lossy or lossless | Yes | Website images | All current browsers; many but not all apps |
| AVIF | Lossy or lossless | Yes | Website images (smallest files) | Current Chrome, Edge, Firefox and Safari; few other apps |
| GIF | Lossless, 256 colours | On/off only | Short simple animations | Everything |
| SVG | Vector (not pixels) | Yes | Logos, icons, diagrams at any size | Browsers, design apps |
| HEIC | Lossy | Yes | iPhone camera photos | Apple devices; limited elsewhere |
JPG vs PNG
JPG (also written JPEG) is built for photographs. It splits the image into small blocks and stores a simplified version of each, which is why photos shrink to a fraction of their size. Push the quality too low and you see the cost: blurry edges, blocky skies and smudged text. Editing and re-saving a JPG again and again wears it down (see our re-save test).
PNG stores every pixel exactly, like a ZIP file for images. Screenshots, charts and text stay razor sharp, and PNG can be partly transparent, which JPG can't. The price is size: in our test the same iPhone photo was 13.8 MB as PNG and 2.5 MB as an 85% JPG.
| You have | Use | Why |
|---|---|---|
| A photo from a camera or phone | JPG | Much smaller, and the difference isn't visible |
| A screenshot, chart or scanned text | PNG | Text and lines stay crisp |
| A logo or cut-out on a transparent background | PNG (or SVG) | JPG can't be transparent |
| A photo for a website | WebP or AVIF | Smaller than JPG at the same quality |
| An image for print | JPG at high quality, or PNG | Accepted everywhere, full resolution |
| An image for an AI assistant | PNG for screenshots, JPG for photos | Every assistant reads both |
Converting doesn't add quality back: a JPG saved as PNG keeps its JPG blur, it just stops losing more. Convert with PNG to JPG or JPG to PNG.
WebP and AVIF: the formats for websites
WebP (from Google) and AVIF (from the Alliance for Open Media) do the jobs of both JPG and PNG in smaller files: lossy for photos, lossless for graphics, and transparency for both. In our tests WebP photos were 30–47% smaller than JPG at the same quality setting, and AVIF is usually smaller still. Faster pages help visitors and search rankings, which is why most image CDNs now serve these formats automatically.
The catch is outside the browser. Some photo editors, office apps, printers and upload forms still don't accept WebP or AVIF. If someone can't open an image you sent, convert it: WebP to JPG, WebP to PNG or AVIF to JPG. To make your own site lighter, go the other way with JPG to WebP or PNG to WebP.
GIF, SVG and HEIC
- GIF is limited to 256 colours, so photos look grainy. It survives because animated GIFs play everywhere. For anything longer than a few seconds, a short video file is far smaller.
- SVG is a drawing described in code, not a grid of pixels, so it stays sharp at any size and is often tiny. It's ideal for logos and icons, not photos. When an app needs pixels, use SVG to PNG.
- HEIC is what iPhones save photos as by default: about half the size of JPG. Windows and many websites don't open it, so convert with HEIC to JPG, or see how to convert HEIC on any device.
What we measured
We converted real files in Chrome with the image converter (November 2026): two iPhone photos (CC0, from Wikimedia Commons), a screenshot of a web page, and a logo with a transparent background.
| File | PNG | JPG (85%) | WebP (85%) |
|---|---|---|---|
| iPhone photo, 4032 × 3024 | 13.8 MB | 2.5 MB | 1.9 MB |
| Web page screenshot, 1440 × 900 | 333.8 KB | 123.8 KB | 64.7 KB |
| Logo with transparency, 512 × 512 | 25.4 KB | 15.0 KB, background turned white | 9.2 KB, transparency kept |
Re-saving a JPG. We also saved two photos as JPG 20 times in a row with libjpeg, the JPEG library most apps use, and compared each copy with the original. Without edits, almost all of the loss happened on the first save: the river photo scored 36.3 dB against the original after one save and 36.25 dB after twenty (PSNR, a standard measure where higher means closer to the original), and the file size didn't change at all. With a tiny edit before each save, it dropped to 33.1 dB after ten rounds. The busy river scene held up better than a studio portrait, which slid from 39.9 to 37.0 dB over twenty plain re-saves.
The practical rule: re-saving a JPG once more won't ruin it, but don't use a JPG as your working copy. Edit from the original, or keep a PNG while you're still editing, and export a JPG at the end.
Make any image smaller
- Pick the right format from the table above. A screenshot saved as JPG, or a photo saved as PNG, is the most common cause of oversized images.
- Resize it to the size it will be shown at. A 4000-pixel-wide photo on a 1200-pixel-wide page is wasted weight: resize image.
- Compress it: in our test a 75% JPG looked the same as the original even zoomed to 100%, and was 55–60% smaller. Compress image does this in your browser.
All of these run in your browser with nothing uploaded. Or use the image converter for any format.