When to use PNG
The three situations where PNG is clearly right, the one where it is clearly wrong, and why it is often the wrong default.
In short
Use PNG for transparency, for text and sharp edges, and for working files you will re-save. Do not use it for photographs — it produces files several times larger than JPG or WebP with no visible benefit.
PNG is lossless and supports transparency. Everything about when to use it follows from those two facts.
Use it when you need transparency
Logos over coloured backgrounds, icons, cut-out product shots, anything with rounded corners. JPG has no alpha channel at all — converting a transparent image to JPG flattens it onto a solid colour permanently.
Use it for text and sharp edges
Screenshots, diagrams, charts, line art, UI mockups. Lossless compression keeps every edge exactly as drawn, and hard black-on-white edges are precisely what JPEG handles worst — it puts a grubby halo around every letter.
PNG is also genuinely efficient here. Large areas of flat identical colour are exactly what lossless compression is good at, so a screenshot of a document is often smaller as PNG than as JPG, as well as looking better.
Use it for working files
If you will open, edit and re-save an image several times, PNG loses nothing on each round trip. A JPEG degrades every single time it is saved.
Do not use it for photographs
This is the common mistake. A photograph has almost no exact repetition for lossless compression to find, so PNG stores it close to raw — routinely five to ten times a JPG of the same photo, with no visible difference. It is the single most frequent cause of a slow-loading web page.
Mistakes worth avoiding
- Saving photographs as PNG "to keep the quality". The quality was already fine; the file is now enormous.
- Converting an existing JPEG to PNG. It cannot undo the compression already applied.
- Expecting the quality slider to shrink a PNG. PNG has no quality setting.
Tools used in this guide
Related guides
JPG vs PNG: which should you use?
A short answer for the common cases, the two properties that actually decide it, and what happens when you pick wrong in each direction.
2 min readimageWhen to use JPG
Where JPG is still the right answer in 2026, the quality range that actually matters, and the two things it fundamentally cannot do.
2 min readimageHow image compression works
The difference between lossy and lossless, what a JPEG actually discards, and why a screenshot and a photograph behave completely differently at the same setting.
3 min read