JPG, PNG or WebP? How to choose the right image format

What each format is good at, measured sizes for a photo, a screenshot and a graphic, where AVIF and SVG fit in, and why renaming a file does not convert it.

Most image questions come down to three formats. They are not better or worse than each other in general: each one is good at a different kind of picture. Pick by what is in the image and where it is going, not by habit.

The short answer

You haveFor a websiteTo send or share
A photoWebP (or AVIF), quality 75 to 85JPEG
A screenshot, chart or interfaceWebP, or PNG when every pixel must stay exactPNG
A logo or iconSVG if you have it; otherwise PNG or WebPPNG
Anything with transparencyWebP or PNGPNG
A short animationA video (MP4 or WebM) rather than a GIFMP4, or GIF where video is not accepted

“To send or share” favours the oldest formats because the recipient may open the file in an email program or an older app that cannot read WebP.

Lossy and lossless

Lossy formats (JPEG, and WebP or AVIF in their usual mode) throw away detail the eye is unlikely to miss, which makes photos much smaller. The quality setting controls how much is thrown away. The damage shows first around sharp edges and on flat areas next to text.

Lossless formats (PNG, and WebP in lossless mode) store every pixel exactly. That is ideal for screenshots and graphics, which have large flat areas that compress well, and wasteful for photos, whose fine noise cannot be compressed without loss.

Edge of a large dark letter on a light background saved as PNG: clean, sharp edges.PNG
The same letters saved as JPEG at quality 80: faint speckles around the edges.JPEG 80
The same letters saved as WebP at quality 80: edges slightly softened.WebP 80
Letters from our graphic sample, enlarged four times. PNG keeps the edges exact; JPEG adds faint speckles around them; WebP softens them slightly. At normal size all three look sharp.

Measured: a photo, a screenshot and a graphic

We saved three typical images in each format with Toolora’s Image Compressor. Each group is drawn on its own scale.

Three things stand out:

  • PNG is the wrong choice for photos. The photo was 535 KB as PNG and 38 KB as WebP 80.
  • WebP was the smallest for all three kinds of image at quality 80. For the screenshot and the graphic it was less than half the JPEG.
  • Re-saving a PNG did not make it smaller. The browser’s PNG encoder produced bigger files than the originals here. Converting to PNG is for compatibility, not for saving space.

The trade-off is visible in the close-up above: lossy WebP is small partly because it softens edges. For a screenshot people need to read closely, such as documentation, PNG is still the safe choice.

Transparency and animation

  • JPEG has no transparency. Converting a transparent PNG to JPEG fills the transparent areas with a solid colour. The Image Converter says so before you convert and lets you pick the colour; white is the default.
  • PNG, WebP and AVIF keep transparency. Use them for logos and cut-out images.
  • GIF is limited to 256 colours per frame and produces large files. web.dev recommends replacing animated GIFs with video. If a GIF is required, the GIF guide explains how to keep it small.

Where each format works

  • JPEG and PNG open everywhere: browsers, phones, email, office software.
  • WebP is shown by every current major browser: Can I use lists support in Chrome, Edge, Firefox and Safari (fully from Safari 16). Some older desktop programs and email clients still cannot open it.
  • AVIF is newer and often smaller still. Can I use lists full support from Chrome 85, Firefox 93, Safari 16.4 and Edge 121. Many browsers can show AVIF but not save it, which is why the Image Converter only offers AVIF where your browser can create it.
  • SVG is not a grid of pixels but a drawing described in code, so it stays sharp at any size. It suits logos, icons and simple diagrams, and is not a format a photo can be converted into.

Converting between formats

  1. Open the Image Converter and add one or more images. Each file’s real format is detected from its contents, not its name.
  2. Choose the target format. Notes appear when a conversion will make files larger or remove transparency.
  3. For JPEG, WebP and AVIF, set the quality; 80 to 85 is a good start for photos.
  4. Convert and check the size change shown for each file, then download them one by one or as a ZIP.
Image Converter after converting the three samples to WebP, listing each file with its size before and after and the percentage change.
The Image Converter after converting our three samples to WebP: each file shows its size before and after.
Open the Image ConverterConvert between JPG, PNG, WebP and more in your browser.

Why renaming is not converting

Changing photo.png to photo.jpg changes the name, not the data inside. Some programs still open the file because they look at its contents; others refuse it or show an error, and upload forms that check the real type reject it. A real conversion decodes the picture and encodes it again in the new format. Toolora’s tools read the first bytes of each file to find out what it really is, so a renamed file is treated as what it actually contains.

How these numbers were measured

We used Toolora’s Image Compressor in Chromium 141.0.7390.37 on 25 October 2026, choosing each format and quality in the tool and saving the result. The samples: a photo of an espresso cup by Rachel Michetti (CC0, from the scikit-image sample collection), saved as JPEG at quality 95; a screenshot of Toolora’s Merge PDF page taken on a screen with twice the usual pixel density; and Toolora’s own 1200 × 630 social preview image. The close-ups were cut from the files the tool produced and enlarged without smoothing. Results vary with the image and the encoder, but the direction of the differences is typical.

Questions and answers

Can every browser show WebP?

Every current major browser can. Can I use lists WebP support in Chrome, Edge, Firefox and Safari, with Safari fully supporting it from version 16. Some older desktop apps and email programs still cannot open WebP, so send JPEG or PNG when you do not know what the recipient uses.

Should I convert all my PNG files to WebP?

For images on a website, usually yes: in our test a screenshot was far smaller as WebP. Keep the PNG originals, though, and keep PNG for files that other people will edit or that must stay pixel-perfect, such as UI screenshots for documentation.

Does converting a JPG to PNG improve its quality?

No. The detail lost when the JPEG was saved is gone. Converting to PNG stores the damaged picture exactly, in a much larger file.

Can I save AVIF here?

Only in browsers that can encode AVIF. The Image Converter checks this and greys out AVIF when your browser cannot save it. Viewing AVIF is widely supported; saving it in the browser is not.

What about HEIC photos from an iPhone?

HEIC can only be opened where the system provides a decoder, which in practice means Safari on Apple devices. There you can convert it to JPEG with the Image Converter. In other browsers, change the iPhone camera setting to Most Compatible, or export as JPEG from the Photos app.

Sources

  1. Choose the right image format, web.dev (Google)
  2. Image file type and format guide, MDN Web Docs
  3. WebP image format: browser support, Can I use
  4. AVIF image format: browser support, Can I use
All guides