The one-line rule
Photos: JPG or WebP. Graphics, text and transparency: PNG. Websites: WebP where you can. The rest of this guide explains why, and the exceptions.
JPG
JPG (or JPEG) uses lossy compression tuned for photographs. It throws away detail the eye is unlikely to miss, which makes photo files small. Its weaknesses: no transparency, and visible smudging around sharp edges like text, lines and logos. Every re-save at a lossy setting loses a little more, so edit from an original rather than re-saving the same JPG repeatedly.
Use it for photos you share, email, print or upload to places with strict format rules. It opens everywhere.
PNG
PNG is lossless: it stores every pixel exactly. That keeps text, screenshots and logos razor sharp and supports full transparency. The cost is size. A photo saved as PNG can be several times larger than the same photo as JPG.
Use it for logos, icons, screenshots, diagrams, cut-out images with transparent backgrounds, and any image you will keep editing.
WebP
WebP, developed by Google, can be lossy or lossless and supports transparency. For photos it is typically smaller than JPG at similar visual quality, and for graphics it often beats PNG. All current major browsers display it. The catch is that some older apps, editors and upload forms still refuse it.
Use it for images on your own website, where smaller files mean faster pages. Keep a JPG or PNG copy for everything else.
Side by side
| JPG | PNG | WebP | |
|---|---|---|---|
| Compression | Lossy | Lossless | Lossy or lossless |
| Transparency | No | Yes | Yes |
| Photo file size | Small | Large | Smallest |
| Sharp text and lines | Smudges | Perfect | Good to perfect |
| Compatibility | Universal | Universal | Browsers yes, some apps no |
What about GIF, AVIF and HEIC?
GIF is old, limited to 256 colours and mainly survives for simple animations. AVIF is a newer format that can compress even smaller than WebP; browser support is good, but app support is thinner. HEIC is what iPhones save by default; it is efficient but poorly supported outside Apple devices, which is why sharing an iPhone photo as JPG is often easier.
Quick picks for common jobs
| Job | Format |
|---|---|
| Holiday photos to family | JPG |
| Logo for a website header | SVG, or PNG/WebP with transparency |
| Screenshot for a help article | PNG |
| Product photos on your shop | WebP, with JPG for marketplaces that refuse WebP |
| Cut-out image for a slide | PNG |
| Print shop upload | Whatever the shop asks for, usually high-quality JPG or PDF |
Converting between them
Use the image converter to switch formats in a batch, or the dedicated WebP to JPG converter. Remember that converting a JPG to PNG does not restore lost detail; it only stops further loss.