Skip to content
Toolwright

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

Use JPG for photos when file size matters and you do not need transparency, PNG for screenshots, logos and graphics that need sharp edges or transparency, and WebP when you want smaller files than either for the web and your audience uses current browsers. JPG and WebP are lossy; PNG is lossless.

By the Toolwright team · Published · Updated

The short comparison

JPG, PNG and WebP compared
JPGPNGWebP
CompressionLossyLosslessLossy or lossless
TransparencyNoYesYes
Best forPhotosScreenshots, logos, line art, textPhotos and graphics on the web
File size for a photoSmallLargeUsually the smallest
SupportEverywhereEverywhereCurrent browsers and most apps

Lossy means some detail is thrown away to save space, and every re-save at a lower quality throws away a little more. Lossless means the picture can be restored exactly.

Which one for which job

  • A photograph to email or upload: JPG, or WebP if the place accepts it.
  • A screenshot with text: PNG, because lossy compression smears small text.
  • A logo or icon with a transparent background: PNG or WebP.
  • A picture on a web page where speed matters: WebP, with JPG as the safe fallback.
  • A file you will edit again: keep a PNG or the original, and export JPG or WebP copies, because each lossy save costs detail.

Converting between them

Changing a PNG to JPG fills transparent areas with a background color, because JPG has no transparency. Changing a JPG to PNG makes the file larger without making the picture better, since the detail the JPG already lost does not come back.

Convert images between JPG, PNG, WebP and AVIF in your browser. Open Image Converter.

AVIF is a newer format that can be smaller still. Whether your browser can create it depends on the browser, so the converter lists it as depending on your browser.

Common mistakes

  • Saving a JPG as PNG to improve it. The detail the JPG already lost does not come back, so the file only gets bigger.
  • Saving the same JPG again and again at a lower quality. Each save costs a little more detail, so keep an original and export copies from it.
  • Using JPG for a screenshot with small text. The compression smears the edges of letters; PNG keeps them sharp.
  • Sending a 12-megapixel phone photo where a page shows 1,600 pixels across. Resizing first often saves more than any quality setting.

A photo that is several megabytes as a PNG is often several times smaller as a JPG or WebP, which is why photos on the web are rarely PNG.

Making files smaller

A PNG is lossless, so lowering a quality setting does not shrink it; resizing the picture or switching to WebP or JPG does. For JPG and WebP, a quality around 75 to 85 percent is a common starting point that keeps files much smaller with little visible loss, but look at the result.

Compress JPG, PNG and WebP images and compare the sizes before and after. Open Image Compressor.

Resize large photos to the dimensions you actually need. Open Image Resizer.

Frequently asked questions

Is WebP better than JPG?

For most photos WebP gives a smaller file at similar quality, and it supports transparency. JPG is still the safest choice when a place may not accept WebP.

Does converting PNG to JPG lose quality?

Yes. JPG is lossy, so some detail is discarded, and transparent areas are filled with a color.

Why is my PNG so large?

PNG stores every pixel without loss, which suits graphics but makes photos large. Resize the picture or save it as WebP or JPG to shrink it.