JAY Project
JAY Project

PNG, JPG or WebP? — I Converted the Same 3 Images and Measured the File Sizes

2026-10-07| Jay

You try to upload a photo and get "file too large." Or you save a transparent logo and the background turns solid black. Both come down to picking the wrong image format.

"WebP is the smallest" and "use JPG for photos" are common advice — but measuring is the surest way to know. So I converted three very different images to PNG, JPG and WebP and compared the sizes.

1. Results — same image, different format

I used the same method as this site's Image Converter (Chrome's canvas encoder). Dimensions stay the same; only the format and quality change.

Image PNG JPG q80 WebP q80 JPG q95 WebP q95
Landscape photo (1920×1280) 3,566KB 321KB 263KB 463KB 552KB
App screenshot (1080×2339) 433KB 80KB 32KB 160KB 55KB
Transparent icon (1024×1024) 215KB 31KB ⚠️ 43KB 55KB ⚠️ 60KB

⚠️ marks results where the transparent background turned black. Small, but not usable.

2. The three formats work differently

Format Compression Transparency Best for
PNG Lossless ✅ Logos, icons, archiving originals
JPG (JPEG) Lossy (quality setting) ❌ Photos
WebP Lossy and lossless ✅ Almost anything you put on the web
  • PNG keeps every pixel, so complex photos balloon in size
  • JPG throws away detail you are unlikely to notice, and cannot store transparency
  • WebP, made by Google for the web, compresses lossily and keeps transparency

3. Three things the table shows

① A photo saved as PNG is 11 times larger. The same photo was 3,566KB as PNG and 321KB as JPG — with no visible gain.

② WebP dominates for screenshots. One thirteenth of the PNG (433KB → 32KB) and less than half the JPG. Large flat areas of color compress especially well in WebP.

③ At high quality, WebP can be larger. At quality 80 the WebP photo was 18% smaller, but at quality 95 it flipped: WebP 552KB vs JPG 463KB. Google reports WebP is 25–34% smaller than JPEG at equal visual quality — the quality numbers themselves don't mean the same thing across formats, so comparing equal numbers can reverse the result.

💡 Start with a quality between 70 and 85. On most screens it is hard to tell apart from the original, and the file shrinks a lot.

4. Three traps when converting

Transparent areas turn black in JPG

JPG has no concept of transparency, so transparent pixels are filled with black (RGB 0, 0, 0) — exactly what happened to the icon above. Save logos, icons and stickers as PNG or WebP. The WebP icon kept its transparency at one fifth of the PNG size.

Location and camera data disappear

Phone photos carry GPS location, camera model and capture time (EXIF). Converting in the browser redraws the pixels into a new file, so all of that is dropped — I checked with a photo containing GPS and camera tags.

  • 👍 Useful for stripping your home location before sharing a photo
  • 👎 If you sort photos by capture date, that date is gone from the converted copy — keep the original

Re-saving JPG over and over degrades it

JPG discards a little information every time it is saved. Edit first, convert once at the end, and keep the original in its first format.

5. What to pick

Situation Format Why
Photos for a blog or website WebP (quality 75–85) Smallest at the same quality
Photos for places that reject WebP JPG (around 80) Opens everywhere
Screenshots, diagrams WebP or PNG Sharp text, small files
Logos, icons (transparent) PNG or WebP JPG turns the background black
Archiving originals Keep the original format Losses add up on every re-save

All modern browsers display WebP. Some older apps or upload forms may not accept it — switch to JPG only then.

Wrap-up

  • Don't save photos as PNG (11x)
  • For the web, WebP at about 80 is usually best
  • Never JPG for transparent images
  • Converted files don't keep location data

In the Image Converter you see the before/after size immediately, so finding the right setting for your image takes seconds. Images never leave your browser.

Test setup: October 2026, Chrome canvas encoder (toBlob). Results vary with the browser and the image content.

Recommended Tools for You

🚀 JAY Project · 60+ Free Web Tools

60+ free web tools built as a hobby — no signup, no payment, every input stays in your browser.

Explore related categories