Image tools

JPG vs PNG vs WebP: which image format should you use?

Each image format has a job. Learn when to pick JPG, PNG or WebP, and how to convert between them for free without losing control of quality.

Published
Reading time
2 min
Share

If a website, form or app rejects your image, the format is often the reason. Here is what each of the three common formats is good at.

The short answer#

JPG / JPEGPNGWebP
Best forPhotosLogos, screenshots, graphics with textWebsites that want small files
CompressionLossy (smaller, loses some detail)Lossless (exact, larger)Both lossy and lossless
Transparent backgroundNoYesYes
File size for photosSmallLargeSmallest of the three
SupportEverywhereEverywhereAll modern browsers; some older apps and forms reject it

JPG: the everyday choice for photos#

JPG shrinks photographs well because it throws away detail your eye barely notices. The catch is that each time you re-save it, a little more detail is lost, and sharp edges and text can look fuzzy. Most exam forms and ID uploads ask for JPG for this reason.

PNG: when sharpness and transparency matter#

PNG keeps every pixel exactly, so it is ideal for logos, icons, charts and screenshots. It also supports a transparent background. For a normal photo it makes a very large file, so avoid it for pictures you need to keep small.

WebP: small files for the web#

WebP can produce files noticeably smaller than JPG or PNG at similar quality, which helps pages load faster. It is widely supported in modern browsers, but some older software, government portals and email tools do not accept it. If an upload fails, convert it.

Convert in your browser#

All of these run on your device, so the image is not sent anywhere:

Which one should I pick?#

  • Uploading a photo to a form: JPG.
  • Sending a logo or a screenshot: PNG.
  • Publishing images on your own website: WebP, with a JPG fallback if you need to support old software.
  • Not sure: check what the upload page says, and match it.

Format is not the same as size#

Changing the format does not guarantee a smaller file, and shrinking the pixel dimensions is a separate step from compression. If you also need to hit a size limit, read resize vs compress, then use the image compressor or the image resizer.