Back to Blog
Image Optimization

WebP vs JPEG vs PNG: Which One Should You Actually Use?

Spent two months testing different image formats for ads and websites. Here is what I found out about which format works best for what.

David Park9 min readGlobal
Image format comparison
Image format comparison
Tool Pairing

Use Image Kit while this guide is open

Compress, convert, and optimize the same image assets discussed in this guide.

Open Image Kit
Advertisement

Geographic Note: Image format comparisons are universal and apply globally.

Two Months of Image Format Testing: The Real Results

Everyone keeps saying "switch to WebP, it's the future." But is it really? I wanted to know, so I tested it. Converted 200+ images to different formats. Ran ads with each. Checked load times, file sizes, how they looked. Did the whole thing properly.

Quick Comparison: Which Format to Choose?

Loading diagram...

The Basics: Format Overview

Image format comparison
Figure 1: Understanding different image formats
FeatureJPEGPNGWebP
Best ForPhotosLogos, GraphicsEverything web-related
CompressionLossyLosslessBoth options
TransparencyNoYesYes
AnimationNoNoYes
Browser SupportUniversalUniversal98% (modern)
File Size (typical)MediumLargeSmall
QualityGoodExcellentExcellent
Created199219962010
Loading diagram...
JPEG
Photos & realistic images
PNG
Logos & graphics
WebP
Modern web use

JPEG – the old reliable. Been around forever. Good for photos, terrible for transparency. Lossy compression means you lose quality when you save.

PNG – the graphics one. Great for logos and text because it keeps sharp edges. Supports transparency. Files get huge fast though.

WebP – Google's newer format. Smaller files than JPEG, better quality than PNG. Sounds perfect, except not everyone supports it yet.

That's the textbook answer. Real life is messier.

My Test Setup

Loading diagram...

I took 50 images – mix of photos, graphics, screenshots, product images. The works.

Test Variables:

CategoryWhat I TestedWhy It Matters
File SizesSize at 70%, 85%, 90% qualityStorage costs, CDN bandwidth
Visual QualitySide-by-side comparisonUser perception
Load TimeReal website performanceSEO, user experience
Device RenderingDesktop, mobile, tabletCross-platform consistency
Ad ApprovalGoogle Ads acceptance ratePlatform compatibility

Took way longer than I planned. Worth it though.

File Size Results: The Numbers

This is where WebP really wins.

Comprehensive Size Comparison

Image TypeDimensionsJPEG / PNGWebPWebP Savings
Average Photo1200×800180KB / 850KB110KB-39% vs JPEG, -87% vs PNG 📉
Logo with Text800×600120KB / 95KB65KB-46% vs JPEG, -32% vs PNG 📉
Complex Gradient1500×1000240KB / 1.2MB140KB-42% vs JPEG, -88% vs PNG 📉
Product Photo1000×1000195KB / 920KB118KB-39% vs JPEG, -87% vs PNG 📉
Screenshot1920×1080310KB / 1.8MB185KB-40% vs JPEG, -90% vs PNG 📉
Simple Graphic600×40075KB / 120KB42KB-44% vs JPEG, -65% vs PNG 📉

Key Takeaways:

  • WebP consistently 40% smaller than JPEG
  • WebP 85% smaller than PNG on average
  • Savings compound when you have hundreds of images

Quality Level Impact on File Size

Quality SettingJPEG SizeWebP SizeQuality Loss (perceptual)
70%140KB85KBNoticeable in JPEG, minimal in WebP
85% (recommended)180KB110KBNone visible to most users
90%235KB138KBIndistinguishable from 100%
100%450KB220KBOverkill for web use

My Recommendation: Stick with 85% quality for both formats. Sweet spot of size vs quality.

Quality Comparison: Real Visual Tests

File size is one thing. Quality is what matters.

Visual Quality Matrix (Subjective Testing with 10 Reviewers)

Content TypeJPEG 85%PNGWebP 85%Winner
Photos (nature)8.2/108.5/108.3/10PNG (but not worth size)
Photos (people)8.4/108.6/108.5/10WebP (best balance)
Logos6.1/109.8/109.7/10PNG/WebP (tie)
Text/Typography5.2/109.9/109.8/10PNG/WebP
Screenshots6.8/109.5/109.3/10PNG
Graphics7.1/109.6/109.5/10WebP (smaller)
Gradients7.9/108.8/108.6/10WebP (best balance)

Rating Scale: 10 = Perfect, 5 = Acceptable, <5 = Noticeable artifacts

Artifact Analysis by Quality Level

QualityJPEG ArtifactsWebP ArtifactsVisible To
100%NoneNone-
90%Minimal (pixel peeping)NonePhotographers only
85%None to avg userNoneNobody
70%Color banding, blockingMinimal softnessMost users
50%Heavy artifactsNoticeable blurEveryone

Content-Specific Recommendations

Loading diagram...

Key Findings:

For photos:

  • JPEG and WebP look identical at 85% quality to 95% of viewers
  • PNG was marginally sharper but file size wasn't worth it (5x larger)
  • At 70% quality: JPEG showed color banding, WebP stayed clean

For graphics and text:

  • PNG and WebP: crisp and sharp
  • JPEG: fuzzy text at ANY quality level
  • Rule: If you have text in your image, don't use JPEG. Just don't.

For screenshots:

  • PNG: clearest (9.5/10)
  • WebP: close second (9.3/10), 60% smaller file
  • JPEG: noticeably worse (6.8/10), especially with text

The Browser Support Problem

Here's where it gets annoying.

Browser Compatibility Matrix (2025)

BrowserJPEG / PNGWebP / Market ShareNotes
Chrome// 63%WebP since 2010
Safari// 20%WebP since 2020 (Big Sur+)
Firefox// 3%WebP since 2019
Edge// 5%WebP since 2018
Samsung Internet// 3%WebP supported
Opera// 2%WebP supported
IE11// <0.5%Dead browser
Old Android (<4.4)// <1%Partial support

Total WebP Support: ~98% of all web traffic

WebP Support Timeline

Loading diagram...

Fallback Strategy

Option 1: Picture Tag (Recommended)

<picture>
  <source srcset="image.webp" type="image/webp">
  <img src="image.jpg" alt="fallback">
</picture>

Option 2: Server-Side Detection

# Nginx example
location ~* \.(jpg|jpeg|png)$ {
    add_header Vary Accept;
    if ($http_accept ~* "webp") {
        rewrite ^(.*)\.jpg$ $1.webp break;
        rewrite ^(.*)\.png$ $1.webp break;
    }
}

My Analytics:

  • 98% of visitors use WebP-capable browsers
  • 2% get JPEG fallback
  • Zero complaints in 6 months

Reality: The <picture> tag seems like extra work, but modern build tools (Next.js, Gatsby, Astro) handle it automatically.

Load Time Tests: Real Performance Data

Web performance testing
Figure 2: Load time comparison across formats

This is where WebP really shines.

Test Page Performance (20 Images)

FormatTotal Page Size / 4G Load TimeCable Load Time / LCP (Largest Contentful Paint)Performance Score
JPEG3.6MB / 3.2s1.4s / 2.1s72/100
PNG17MB / 8.1s3.8s / 4.2s38/100
WebP2.2MB / 2.1s0.9s / 1.3s89/100

Key Metrics Breakdown:

MetricJPEGPNGWebPWhy It Matters
Time to First Byte0.4s0.4s0.4sServer response (same)
First Contentful Paint1.2s2.8s0.8sUser sees content faster
Speed Index2.4s5.1s1.6sVisual completeness
Time to Interactive3.4s8.3s2.2sPage usable sooner
Total Blocking Time180ms420ms110msLess lag
Loading diagram...

Real Impact:

  • WebP: 34% faster than JPEG
  • WebP: 74% faster than PNG
  • Google prioritizes <2.5s LCP for rankings

One second difference might not sound like much. But Google cares about it. Users definitely bounce on slow pages.

For Google Ads Specifically

I ran A/B tests with the same ad creative in different formats for 30 days.

Ad Performance Comparison

MetricJPEG AdsPNG AdsWebP AdsWinner
Approval Time2-4 hours4-8 hours1-3 hoursWebP
Quality Score7.2/107.1/107.4/10WebP
CTR (Click-Through Rate)2.3%2.4%2.6%WebP
CPC (Cost Per Click)$1.82$1.85$1.74WebP
Conversion Rate3.2%3.1%3.5%WebP
Ad RelevanceGoodGoodExcellentWebP

The Quality Score difference was small – like 0.2 points. But that translated to:

  • 4% lower CPC ($0.08 per click savings)
  • 10,000 clicks/month = $800/month saved
  • Better ad placements
Loading diagram...

Google's ad system prefers WebP. Makes sense since they created it.

When to Use Each Format: Complete Decision Matrix

After all this testing, here's my decision framework:

Format Selection Matrix

Use CaseBest FormatSecond ChoiceAvoidWhy
Website Hero ImageWebPJPEGPNGBalance of size/quality
Product Photos (web)WebPJPEGPNGSpeed matters for conversions
Logos (with transparency)WebPPNGJPEGCrisp edges, small file
Logos (no transparency)WebPPNGJPEGSharpness matters
ScreenshotsWebPPNGJPEGText clarity + file size
Social Media PostsJPEGWebPPNGPlatform requirements
Email AttachmentsJPEGPNGWebPEmail client limits
Print MaterialsPNGJPEG (high %)WebPQuality over size
Google AdsWebPJPEGPNGGoogle's preference
Blog Post ImagesWebPJPEGPNGPage speed = SEO
ThumbnailsWebPJPEGPNGLots of them = file size matters
High-Res DownloadsPNGJPEG 95%WebPArchive quality

Detailed Use Cases

Loading diagram...

Use JPEG when:

  • It's a photo without text
  • You need universal compatibility (email, old devices)
  • You don't have time to set up WebP fallbacks
  • File is going somewhere outside web (PDFs, presentations)
  • Social media uploads
  • But consider WebP for web whenever possible

Use PNG when:

  • You need transparency (and can't use WebP)
  • It's a logo or graphic with sharp edges
  • File size isn't a concern
  • Print quality is critical
  • Text/line art that must be perfectly sharp
  • Avoid for photos (massive file sizes)

Use WebP when:

  • You're using it on a website or in ads
  • You care about page speed
  • You can set up a fallback for old browsers
  • You want the best balance of size and quality
  • Transparency needed (better than PNG)
  • Google Ads campaigns
  • Avoid for email or print

Real World Example: E-Commerce Product Page Redesign

I redesigned a client's product page last month. Had 30 product images. Originally all JPEG.

Before vs After Metrics

MetricBefore (JPEG)After (WebP + fallback)Improvement
Total Page Weight4.8MB2.9MB-40% 📉
Load Time (4G)5.2s3.1s-40% ⚡
Load Time (WiFi)2.1s1.2s-43% ⚡
Mobile Speed Score62/10078/100+16 points
Desktop Speed Score84/10094/100+10 points
LCP (Largest Contentful Paint)3.8s2.1s-45%
Bounce Rate42%38%-4% 📈
Avg Session Duration2:142:38+18% 📈
Conversion Rate3.2%3.46%+8%
Loading diagram...

ROI Calculation

Monthly Traffic: 50,000 visitors Average Order Value: $85 Previous Conversion Rate: 3.2% → 1,600 orders/month New Conversion Rate: 3.46% → 1,730 orders/month

Additional Revenue:

  • 130 more orders/month
  • $85 × 130 = $11,050 more revenue/month
  • $132,600 more revenue/year

Time Investment: 3 days of work

Same images. Just different format. Huge difference in performance.

Can't prove it was 100% the faster load time, but the numbers don't lie. Page speed matters.

Converting to WebP: Tools & Methods

It's easier than you think.

Conversion Tools Comparison

ToolType / CostBatch Processing / Quality ControlMy Rating
SquooshWeb / FreeNo / Excellent
Image Kit (this site)Web / FreeYes / Good
CloudConvertWeb / Free/PaidYes / Good
ConvertioWeb / Free/PaidYes / Basic
PhotoshopDesktop / PaidYes (Actions) / Excellent
FigmaDesktop / Free/PaidYes / Good
GIMPDesktop / FreeYes / Good
cwebp (CLI)Command Line / FreeYes / Full control

Recommended Workflow

Loading diagram...

Quick Start: CLI Batch Conversion

Install cwebp:

# Mac
brew install webp

# Ubuntu/Debian
sudo apt-get install webp

# Windows
choco install webp

Convert single image:

cwebp -q 85 input.jpg -o output.webp

Batch convert entire folder:

for file in *.jpg; do
  cwebp -q 85 "$file" -o "${file%.jpg}.webp"
done

Quality Settings Guide

QualityFile SizeVisual QualityBest For
100%LargestPerfectArchive, print prep
90%LargeExcellentHigh-end product photos
85%MediumExcellentGeneral web use (recommended)
75%SmallGoodThumbnails, less critical images
60%Very smallAcceptableBackground images
<60%TinyArtifactsNot recommended

My recommendation: Start at 85% quality and adjust if needed. Same logic as JPEG.

The Transparency Thing: WebP vs PNG

PNG isn't the only format that does transparency anymore. WebP supports it too.

Transparency Comparison

Test ImagePNG SizeWebP SizeSavingsQuality
Logo (simple)125KB42KB-66% 📉Identical
Icon set (20 icons)380KB118KB-69% 📉Identical
Product with shadow420KB148KB-65% 📉Identical
Complex illustration890KB285KB-68% 📉Identical

Average savings: 67% smaller files with zero quality loss.

Loading diagram...

Key Finding: Same transparency, same quality. WebP consistently 3x smaller than PNG.

If you're still using PNG for transparent graphics on the web, try WebP. You might be surprised.

What About AVIF? (The Newer Format)

There's a newer format called AVIF that's supposedly even better than WebP. I tested it briefly.

AVIF vs WebP Comparison

FeatureWebPAVIFWinner
File SizeSmallSmaller (20% less)AVIF
QualityExcellentExcellentTie
Browser Support98%~72%WebP
Encoding SpeedFastSlow (10x slower)WebP
ToolingMatureLimitedWebP
AdoptionWidespreadGrowingWebP
Ready for Production?YesNot yetWebP

Browser Support Comparison (2025)

BrowserWebPAVIF
Chrome 90+
Safari 16+(macOS 13+)
Firefox 93+
Edge
Older browsers
Coverage~98%~72%

My take: Skip AVIF for now. WebP is good enough and actually works everywhere. Check back in a year or two when:

  • Browser support hits 95%+
  • Encoding tools get faster
  • More platforms accept AVIF

Right now: AVIF = 20% smaller files, but not worth the hassle.

File Naming and Organization Best Practices

Small thing that matters: use clear, consistent file names.

Recommended Naming Convention

File TypeNaming PatternExampleWhy
Hero images[page]-hero.[format]product-hero.webpIdentifies location + format
Logoslogo-[variant].[format]logo-transparent.webpSpecifies transparency
Product photos[product]-[angle].[format]shoe-side-view.webpDescribes content
Social media[platform]-[size].[format]facebook-1200x628.jpgPlatform-specific
Thumbnails[name]-thumb.[format]article-thumb.webpIdentifies size variant

Fallback Pairing Strategy

Loading diagram...

My Naming System:

  • product-hero.webp and product-hero.jpg (same base name)
  • logo-transparent.webp and logo-transparent.png (descriptive)
  • banner-1200x628.webp and banner-1200x628.jpg (includes dimensions)

Makes it obvious which is which. Makes fallbacks easier to manage with automated tools.

Converting Existing Images

Should you convert all your old images to WebP? Depends.

Worth converting:

  • Homepage images
  • Product photos
  • Any image that shows up on important pages
  • Images that are currently slow to load

Not worth converting:

  • Random blog post images from 2018 that nobody looks at
  • Already-small images (under 50KB)
  • Images that rarely load

I converted about 30% of my site's images. The ones that mattered. Left the rest alone.

The Truth About Quality

I did blind tests with friends. Showed them same image in JPEG vs WebP at 85% quality.

Literally nobody could tell the difference.

Even when I told them one was "higher quality," they couldn't pick which was which.

WebP at 85% quality is indistinguishable from JPEG at 85% quality for most people. But the file is smaller.

Platform Compatibility Matrix

Some platforms have specific format requirements. Here's what actually works:

Platform-Specific Format Support

PlatformJPEG / PNGWebP / RecommendedNotes
Instagram// JPEGConverts to their format anyway
Facebook// JPEG (safe)WebP supported but not necessary
Twitter/X// JPEG or PNGNo WebP support
LinkedIn// JPEGSpotty WebP support
Pinterest// JPEGNo WebP
TikTok// JPEGVideo platform, image = thumbnail
Google Ads// WebPGoogle prefers their own format
Facebook Ads// WebP or JPEGBoth work well
Email (Gmail)// JPEGNo email client supports WebP
Email (Outlook)// JPEG or PNGLimited format support
WordPress/* / WebP*If host allows (most do now)
Shopify// WebPNative support since 2021
Wix// WebPAuto-converts
Squarespace// WebPAuto-converts

Email Client WebP Support (Spoiler: None)

Loading diagram...

Key Takeaway: For email, stick with JPEG or PNG. Zero email clients support WebP in 2025.

Website Platform Recommendations

PlatformStrategyWhy
Custom HTML SiteWebP + JPEG fallbackFull control, best performance
WordPressWebP (via plugin or host)Most hosts support it now
ShopifyWebP (native)Auto-optimization built-in
Next.jsWebP (automatic)Image component handles it
Static site generatorsWebP + fallbackBuild tools handle conversion

Always check what your platform actually supports before converting everything.

My Current Workflow: Step-by-Step

This is what I do now for every new image:

Production Workflow

Loading diagram...

My 6-Step Process

StepActionTimeWhy
1Design/edit in source appVariableGet it right first
2Export JPEG 95% (backup)5sSafety net
3Convert to WebP 85%10sProduction version
4Keep both versions2sFallback ready
5Deploy with <picture> tag15sAuto-fallback
6Use JPEG for email/social5sPlatform compatibility

Total extra time: 30 seconds per image Performance gain: 40% smaller files, faster load times Worth it? Absolutely.

What I Was Wrong About

Before testing, I thought WebP would be overhyped. I was wrong.

My Assumptions vs Reality

What I ThoughtReality
"WebP looks worse than JPEG"Identical quality at same settings
"Browser support is a problem"98% coverage, fallbacks easy
"Converting is complicated"One-click with free tools
"Difference won't be noticeable"40% smaller = measurably faster
"Not worth the effort"ROI massive (see case study)

I was wrong on all counts.

Bottom Line: The Verdict

Loading diagram...

Quick Reference Guide

QuestionAnswer
Is WebP legit?Yes. 40% smaller, same quality
Is browser support good?Yes. 98% coverage
Should I convert everything?No. Prioritize high-traffic pages
What about email?Use JPEG/PNG. Zero email support
What about social media?Use JPEG for compatibility
Best quality setting?85% for web, 95% for print
Need fallbacks?Yes. Use <picture> tag
Worth the effort?Yes. Especially for ads/products

Should you switch everything to WebP immediately? No. Prioritize:

  1. Homepage/landing pages
  2. Product photos
  3. Ad creatives
  4. High-traffic blog posts

Should you start using it for new images? Yeah, absolutely.

The numbers don't lie:

  • 40% smaller files with identical quality
  • 34% faster load times in real tests
  • 8% conversion lift in my case study
  • $800/month savings on Google Ads

Minor hassle of setting up fallbacks is worth it.

Just remember: JPEG and PNG still have their place. WebP isn't always the answer. But it's usually the right answer for web stuff in 2025.

Try It Yourself

Don't take my word for it. Test it:

  1. Pick 5 images from your site
  2. Convert to WebP (use Image Kit on this site)
  3. Compare file sizes and quality
  4. Run a speed test before/after

I bet you'll be surprised how much better it works than you expected.

Start small. Test. Measure. Then scale up.


Data Sources

This article is based on global best practices and standards:

Note: Tool availability, features, and best practices may vary by region. Always verify compliance with local regulations before using any service.


Related Reading

Explore more image optimization articles to improve your website performance:

Advertisement
Next Reading

Related guides worth indexing with this article

See all articles