Key takeaways
- Use JPG for photos you need to open anywhere, PNG for screenshots, logos and transparency.
- WebP does both jobs in smaller files and works in every current browser.
- Google's own figures: lossy WebP is 25 to 34% smaller than comparable JPEG; lossless WebP is 26% smaller than PNG.
- Converting a JPG to PNG does not restore lost quality; it only makes the file bigger.
On this page
Quick decision table
| You have… | Best choice | Why |
|---|---|---|
| A photo for email, print or an old system | JPG | Opens everywhere, small for photos |
| A photo for a website | WebP (or AVIF) | Same look in a smaller file |
| A screenshot, chart or text image | PNG or lossless WebP | Sharp edges and text stay crisp |
| A logo or icon with a transparent background | PNG, WebP or SVG | JPG cannot be transparent |
| An iPhone photo (HEIC) to share with Windows users | JPG | HEIC does not open everywhere |
The formats in one paragraph each
JPG (JPEG) uses lossy compression tuned for photographs: it throws away detail the eye barely notices. It has no transparency, and text or sharp lines get blurry "halos" at strong compression. Every device and program opens it.
PNG is lossless, so it keeps every pixel exactly. It supports full transparency. It is ideal for screenshots, diagrams and logos, but photos saved as PNG are often five to ten times larger than JPG.
WebP, developed by Google, has both a lossy mode (for photos) and a lossless mode (for graphics), and supports transparency in both. Google reports lossy WebP files 25 to 34% smaller than comparable JPEGs and lossless WebP 26% smaller than PNG. Every current major browser displays it; some older desktop software still does not.
AVIF is newer and often smaller again than WebP for photos, but encoding is slower and support in older software is thinner. HEIC is what iPhones save by default; it is efficient but not universally supported, so convert it with HEIC to JPG before sharing widely.
Myths worth dropping
- "PNG is higher quality, so convert my JPG to PNG." Detail lost in a JPG is gone. Saving it as PNG keeps the damage exactly and makes the file bigger.
- "WebP looks worse." At the same quality setting it looks comparable; problems usually come from setting quality too low.
- "DPI changes file size." The pixel count does. A 300 DPI and a 72 DPI version of the same 2000 × 1500 image are identical on screen.
Convert and shrink
Convert image format switches between JPG, PNG and WebP in your browser, in batches, without uploading. Then Compress images brings the size down further. For a website, aim for photos under about 200 KB each; our guide to making images smaller for websites explains the steps.
Sources
- MDN: Image file type and format guidedeveloper.mozilla.org
- Google for Developers: An image format for the web (WebP)developers.google.com
- web.dev: Use WebP imagesweb.dev