TabGarden

Guides

JPG vs PNG vs WebP: Which Image Format to Use

When to save photos, screenshots and logos as JPG, PNG or WebP, with file sizes measured on the same images in all three formats.

Most images you handle every day are saved in one of three formats: JPG (also written JPEG), PNG or WebP. All three open in every current browser, but they store pictures in very different ways, and choosing the wrong one can make a file ten times bigger than it needs to be, or blur the text in a screenshot. This guide explains what each format does, then shows what happened when we saved the same photos, screenshots and a logo in each of them.

The short answer

The rest of this page explains why, with numbers.

How the three formats differ

JPG: lossy, made for photographs

JPG splits the picture into small blocks and stores a simplified description of the brightness and color changes inside each block. The quality setting decides how much of that detail is thrown away. Smooth gradients and natural textures survive this well, which is why cameras and phones have saved JPG by default for decades. Hard edges, such as black text on a white background, do not: the encoder produces faint grey speckles around them.

JPG has no transparency channel. Each time you open a JPG and save it again as JPG, a little more detail is lost, so always edit from the original file rather than from a copy that was already compressed.

PNG: lossless, made for graphics

PNG stores every pixel exactly. When you open a PNG you get back precisely the colors that were saved, which makes it right for screenshots, charts, interface mock-ups, line art and images that will be edited further. PNG also supports full transparency, including soft semi-transparent edges.

The price is size. PNG compression works by finding repeated patterns, and a photograph of leaves, water or skin has very few exact repeats. That is why a photo saved as PNG is usually several megabytes.

WebP: both modes in one format

WebP can be saved either lossy (similar in spirit to JPG) or lossless (similar to PNG), and both modes support transparency. Google's WebP documentation states that lossless WebP images are 26% smaller than PNGs and that lossy WebP images are 25 to 34% smaller than comparable JPG images at equivalent SSIM quality. Those figures come from Google's own encoder and test sets; the measurements below show what one specific browser encoder did with our images.

How we measured

All numbers on this page come from a test we ran on 28 November 2026.

Sizes below are in KB, where 1 KB = 1024 bytes. "Median" is the middle value of the set; the range shows the smallest and largest result.

Results: photos

For the 12 photos at 2000 pixels wide:

At quality 75, the WebP file was smaller than the JPG file for all 12 photos, with a median size of 68% of the JPG (range 46 to 99%). The advantage was largest on the goose close-up (WebP was 46% of the JPG size) and almost disappeared on the four photos with the most fine detail, which also had the largest JPG files: the river rapids, the capybara, the mushroom and the mountain panorama (92 to 99% of the JPG size).

The lossless options are not practical for photos. Even lossless WebP, which beat PNG on every photo, produced files 6 to 24 times larger than lossy WebP at quality 75 (median about 11 times). Unless you need to edit a photo further without any loss, there is no reason to share it as PNG.

Results: screenshots

For the three synthetic 1600 × 1000 screenshots:

Two things stand out. First, PNG is not huge for screenshots the way it is for photos: the light settings page was only 157 KB as PNG, because flat areas of a single color compress very well without loss. Second, JPG gained the least here. At quality 75, the JPG files were 37 to 67% of the PNG size, while lossy WebP files were 23 to 32%. WebP was also closer to the original: we measured the difference from the source pixels as PSNR (peak signal-to-noise ratio, a standard measure where higher means closer), and at quality 75 WebP scored higher than JPG on all three screenshots (36.6 to 40.8 dB against 34.6 to 39.1 dB).

When we enlarged crops of the text, JPG at low quality showed the typical faint grey "mosquito" speckles around letters and field borders. WebP at the same setting kept the edges cleaner but slightly smoothed thin details. See how the quality setting changes JPG and WebP for the full quality comparison.

Results: a logo with transparency

For the 800 × 800 logo on a transparent background:

So for this logo, lossy WebP gave the smallest file while keeping the transparent background, and PNG was the smallest exact copy. The lossless WebP result surprised us; it shows that the browser's built-in lossless encoder is not always tuned for size, so do not assume "WebP" automatically means "smaller".

Which format for which job

Photos for a website, chat or email

Use JPG at around 75 to 85, or WebP at a similar setting if the destination accepts it. Our photo test gives a sense of scale: going from PNG to JPG at 75 cut the size by roughly 88 to 95%. If the photo is also larger in pixels than it will be displayed, shrink the dimensions first; that usually saves more than any format change. The guide on resizing without losing quality explains how.

Screenshots of documents, code or interfaces

If the screenshot will be read closely, edited, or used in documentation, keep it as PNG. If you need it smaller for a message or a web page, lossy WebP at 75 or higher kept text readable in our test and was 23 to 32% of the PNG size. Avoid low-quality JPG for text.

Logos, icons and images with transparent backgrounds

Use PNG or WebP. Never use JPG unless a solid background color is acceptable. If you convert a transparent PNG to JPG with TabGarden, the transparent parts become white.

Images that must open everywhere

Some older software, office tools and upload forms still accept only JPG and PNG. If a form rejects WebP, convert to JPG for photos or keep PNG for graphics. Check the accepted formats listed on the form before you choose.

Printing and archiving

Keep the original file from the camera or the original export from your design program. Make compressed copies for sharing, and never overwrite the original with a lossy version.

Converting between formats with TabGarden

Compress Image can save any JPG, PNG or WebP file as JPG or WebP. Its Auto setting keeps JPG and WebP files in their own format and turns PNG files into WebP, because browsers offer no quality setting when writing PNG. It never gives you a file that is larger than the one you put in: if the re-encoded result would be bigger, you get the original back. The conversion runs inside your browser; the images are not uploaded.

If you need a PDF rather than an image file, for example to send several photos as one attachment, use Images to PDF.

Common questions

Is WebP always smaller than JPG?

Not at the same quality number. In our test it was smaller at quality 75 and 95 on all 12 photos, but at quality 30 and 50 four of the most detailed photos came out larger as WebP than as JPG. In those cases the WebP file was also measurably closer to the original, which shows that the same quality number does not mean the same visual result in two different encoders.

Does converting a JPG to PNG improve its quality?

No. The detail that JPG compression removed is already gone. Saving the result as PNG only preserves the current, already-compressed pixels exactly, in a much larger file.

Why is my screenshot blurry after sharing it?

Many apps recompress images when you send them, often as JPG. If text gets fuzzy, send the PNG as a file attachment rather than as an inline picture, or reduce the dimensions yourself so the app has less reason to recompress.

Which format keeps the photo's location data?

Format alone does not decide that. TabGarden's image tools redraw the picture on a canvas, which does not copy EXIF metadata such as GPS location into the new file, whichever format you choose.