JPG vs PNG: which format should you use?
Photos, screenshots, logos and transparency: what JPG and PNG are each good at, how much size difference to expect, and how to convert between them safely.
Image formats · 2 min read · Updated
The short answer
- Photos: JPG. Smaller files, and the losses are invisible at sensible quality.
- Screenshots, text, logos, charts and interface graphics: PNG. Edges stay sharp and colours stay exact.
- Anything that needs a transparent background: PNG, or WebP and AVIF on the web. JPG cannot store transparency.
How they differ
JPG (JPEG, from 1992) is lossy. It splits the image into small blocks and discards fine detail and colour information the eye is least sensitive to. That is why photos shrink so well, and why sharp lines and text get fuzzy halos and blocky artifacts when compression is pushed too far.
PNG (from 1996) is lossless and supports full alpha transparency. Flat areas of colour compress very well, but photographic detail does not, so photos saved as PNG are often 3 to 10 times larger than as JPG.
Converting PNG to JPG
Converting a photo from PNG to JPG usually cuts the size dramatically. Two things to watch:
- Transparent areas have to become a solid colour. PNG to JPG fills them with white by default, and you can choose another colour.
- Screenshots and graphics can look worse as JPG and may even get larger. If a PNG is big because it is a screenshot, compress it as a PNG instead.
Converting JPG to PNG
Saving a JPG as PNG does not restore any quality. The artifacts already in the JPG are preserved exactly, and the file usually gets several times larger. It makes sense when the next step needs a lossless format, for example so repeated edits do not add new JPEG artifacts, or when you are about to add transparency.
What about the newer formats?
On websites, WebP and AVIF can replace both. They offer lossy and lossless compression and support transparency at smaller sizes. For email, documents, printing and upload forms, JPG and PNG remain the safest choice because practically everything opens them.
Tools in this guide
- PNG to JPGConvert PNG to JPG in your browser, with transparency filled in a colour you pick. Batch, private, no uploads.
- JPG to PNGConvert JPG to PNG in your browser, ready for screenshots, logos, graphics and anything that needs transparency. Batch, private, no uploads.
- Compress PNGCut PNG size by up to 80% with smart palette reduction and OxiPNG lossless optimisation, keeping transparency.
- Compress JPGMake JPEG photos smaller with MozJPEG, the encoder that beats standard JPEG by 10-15% at the same quality.
- Image ConverterConvert between 34 image formats in bulk: HEIC, WebP, AVIF, JPEG XL, PNG, JPG, GIF, TIFF, SVG, ICO, PSD, RAW and more.
Related guides
- What is JPEG XL, and can you use it yet?
- WebP vs JPG: is it time to switch?
- WebP vs AVIF: what AVIF is and when it is worth it
- What is HEIC, and how do you open it on Windows or the web?