The measured difference
Both figures below come from converting the same source with this site’s own converters, over a fixed corpus.
| PNG | JPG | |
|---|---|---|
| Photograph | 3.97 MB | 375 KB |
| Compression | Lossless | Lossy |
| Transparency | Yes, including partial | None |
| Text and sharp edges | Exact | Visible haloing |
| Repeated saving | No degradation | Degrades each time |
| Published | 1996 | 1992 |
For a photograph, JPG is 91% smaller with no visible difference at normal viewing sizes. That is not a close call.
Why the rule is about content, not quality
The instinct is to treat this as a quality decision — PNG is lossless, therefore PNG is better. That reasoning gives you 4 MB screenshots of holiday photos and is wrong in both directions.
The real question is what the image contains.
Photographs are made of fine, continuous, slightly noisy variation. Lossless compression can find almost no exact repetition to exploit, so PNG stores something close to raw pixels. Meanwhile JPG’s approach — discard the high-frequency detail the eye is worst at — was designed for exactly this content and works beautifully.
Screenshots, logos and diagrams are the opposite. Large flat areas, exact repetition, hard edges. PNG compresses them superbly. JPG’s discarding of high-frequency detail is catastrophic, because a black letter against white paper is high-frequency detail. You get grey haloing around every character.
The two failure modes
Both are common, and both are visible at a glance once you know to look.
A photograph saved as PNG — the file is ten times larger than it needs to be. Nothing looks wrong; the page just loads slowly and the email bounces.
A screenshot saved as JPG — the file is small and the text looks slightly grubby. Zoom in and you will see grey fringing around the letters. This one is permanent: no amount of converting back to PNG removes it.
Transparency settles it outright
If the image needs a transparent background, JPG is simply not a candidate. It has no alpha channel and never has.
Converting a transparent PNG to JPG fills the transparency with a solid colour — white, on this site’s converter — and that is the correct behaviour rather than a bug. Something has to go behind it.
If you want transparency and a small file, the answer is neither format: convert to WebP.
For the web, both are the wrong answer
This is worth saying plainly, because the PNG-vs-JPG question is usually asked about a website.
WebP does what both do — photographic compression and transparency — and every current browser supports it. On our test image it was 94% smaller than PNG and 40% smaller than JPG.
PNG or JPG on a modern web page is usually a decision inherited rather than made.
Quick reference
- Photograph, sent to a person → JPG
- Photograph, on your website → WebP or AVIF
- Screenshot or diagram → PNG, optimised losslessly
- Logo with transparency, for print or a document → PNG
- Logo with transparency, for the web → WebP
- Working copy you will edit repeatedly → PNG