Skip to content

JPG vs PNG: which format should you use?

When to save an image as JPG and when as PNG, with measured file sizes for a photo, a graphic and a screenshot.

By Convero · Published

Use JPG for photographs and anything with smooth colour changes, where a small file matters more than perfect pixels. Use PNG for logos, diagrams, screenshots with sharp text, and anything that needs a transparent background. Converting a JPG to PNG does not improve its quality.

The short difference

  • JPG is lossy: it throws away detail the eye is unlikely to notice, and you choose how much with a quality setting.
  • PNG is lossless: every pixel is stored exactly, and it supports full transparency.
  • JPG has no transparency. Transparent areas must be filled with a colour when you save as JPG.
  • Every time a JPG is edited and saved again, a little more detail is lost. A PNG can be saved again without loss.

Measured file sizes

The same 1920 × 1080 images saved in each format. Smaller is better; PSNR measures how close the result is to the original (higher is closer, and lossless formats are exact).

File size by format, 1920 × 1080, Chromium canvas encoder
ImagePNGJPG quality 90JPG quality 75
Photo stand-in4,631 KB653 KB287 KB
Flat graphic133 KB99 KB70 KB
Screenshot with text314 KB313 KB218 KB

What the numbers show

For the photo stand-in, PNG was about seven times larger than JPG at quality 90. That is why photos are almost always shared as JPG (or WebP).

For the screenshot, PNG and JPG at quality 90 were the same size, but the PNG keeps text perfectly sharp while JPG adds faint blur and halos around letters. For screenshots and diagrams, PNG is usually the better choice.

For the flat graphic, JPG was smaller, but flat colours and hard edges are exactly where JPG artefacts are most visible.

Does converting JPG to PNG improve quality?

No. PNG stores the pixels it is given without further loss, but the detail JPG compression already removed cannot be brought back, and no transparency is added. The PNG is usually larger. Converting is still useful when you want to edit an image several times without adding more JPG loss, or when software only accepts PNG.

How this was measured

Measured on 6 December 2026 in a Chromium 156 browser on a 10-core Mac, using the browser's own canvas encoder, which is what Convero's image tools use. The three test images are generated from a fixed seed by scripts/benchmarks/image-benchmark.js in Convero's public repository, so anyone can run the same test. They are synthetic: the photo stand-in has strong fine grain, which makes lossless formats look worse than they would on a clean photo. Other browsers ship different encoders and will give different numbers.

Full results: image format benchmark.

Tools for this