Skip to content
HandyKit

JPG vs PNG vs WebP: Which Image Format to Use

· 3 min read

Every image you save for a website, an email or an upload form has a format. The three you meet most often are JPG, PNG and WebP. They differ in file size, sharpness, transparency and where they are accepted.

This guide explains what each one is good at and when to pick it. If a file is already in the wrong format, the Image Converter changes it in your browser.

The three formats at a glance

FormatCompressionTransparencyAnimationBest for
JPGLossyNoNoPhotos
PNGLosslessYesRarelyScreenshots, logos, text, diagrams
WebPLossy or losslessYesYesPhotos and graphics on the web

Lossy and lossless

Lossy compression throws away some detail to make the file much smaller. Each time you save an image as JPG, it loses a little more, so edit from the original and save the JPG last.

Lossless compression keeps every pixel exactly as it was. The file is larger, but nothing is lost however often you save it.

JPG

JPG is the most widely accepted format: every device, app and upload form takes it. That makes it the safe choice when you do not know where a file will end up.

Its weakness is sharp edges. Text, thin lines and hard borders pick up blurry smudges, called artefacts, around them. JPG suits photos, where colours blend smoothly, and suits screenshots poorly.

PNG

PNG keeps sharp edges and text crisp, and supports transparent backgrounds, so a logo can sit on any coloured page without a white box around it.

The cost is size. A photo saved as PNG is usually several times larger than the same photo as JPG, so use PNG for screenshots, logos, text and diagrams rather than photos.

WebP and AVIF

WebP was made by Google. It can be lossy or lossless, supports transparency and can be animated, so one format covers most of what JPG and PNG do. In Google's own tests, lossless WebP was about 26% smaller than PNG, and lossy WebP 25–34% smaller than JPG at the same quality.

All current major browsers show WebP. Some older apps and upload forms still reject it, and that is when you convert WebP to JPG or PNG.

AVIF is newer and often smaller still. Current browsers support it, but it is slower to make and fewer other programs accept it. The Image Converter does not make AVIF files.

What happens when you convert

  • Transparent areas become white when you convert to JPG, because JPG has no transparency.
  • Converting a JPG to PNG makes the file bigger, but it does not bring back detail the JPG already lost.
  • An animated GIF becomes a still image of its first frame.
  • Most browsers cannot open iPhone HEIC photos; only Safari can. To avoid HEIC, set the iPhone camera to "Most Compatible", which takes JPGs.

Making files smaller

Resizing usually saves the most. A phone photo 4,000 pixels wide, shown 1,200 pixels wide on a page, wastes most of its pixels.

Then lower the quality. For most photos, a JPG or WebP quality of around 75 to 85 looks the same as the original at a fraction of the size.

Many upload forms set a size limit. The Image Compressor can aim for a target such as under 1 MB or under 200 KB, so you do not have to guess the quality setting.

Quick rules

SituationFormat
Photo for a websiteWebP, or JPG for the widest support
Logo, icon or screenshotPNG or lossless WebP
Needs a transparent backgroundPNG or WebP
Email attachment, or a form that may be oldJPG

Try it

Use the Image Converter to switch formats, or the Image Compressor to shrink files. Both handle many images at once, give you a ZIP, and run in your browser, so your images are not uploaded.

Tools in this guide

  • Image Converter

    Convert a batch of images to JPG, PNG or WebP and download them as a ZIP. Free, private: nothing is uploaded.

  • Image Compressor

    Shrink many images at once by quality or to a maximum file size, resize them and download a ZIP. Free, private: nothing is uploaded.

  • · 2 min read

    How to Make a Photo Collage Online, Free

    Combine up to 50 photos into one image: pick a layout, cell shape, spacing and size for social media or print, then save as JPG, PNG or WebP. No watermark.

  • · 2 min read

    YouTube Thumbnail Size and Image URLs

    The size to upload a YouTube thumbnail at, the five sizes YouTube serves, the image URL for each, and why the largest one is sometimes missing.

  • · 2 min read

    How to Compare Two JSON Files

    Find what changed between two JSON documents, ignoring key order and formatting. A worked example, how to read JSONPath, and how arrays and numbers compare.