Dev.to WebDev 🛠 Dev 👁 2 📖 3 min read

WebP vs PNG vs JPG in 2026: How Switching Uncompressed Hero Images Cuts Mobile LCP by 60%

When we benchmarked 59 live US small-business websites at SiteRedraft, one pattern stood out immediately: the median homepage loaded cleanly at the HTML layer, then stalled for seconds waiting on a handful of 2 MB to 6 M

When we benchmarked 59 live US small-business websites at SiteRedraft, one pattern stood out immediately: the median homepage loaded cleanly at the HTML layer, then stalled for seconds waiting on a handful of 2 MB to 6 MB uncompressed PNG or camera JPG hero images.

Google's Largest Contentful Paint (LCP) metric measures how fast the single largest above-the-fold element finishes rendering on a mobile connection. On most service, hospitality, retail, and B2B sites, that element is the hero banner photo. Serving a 3,800px wide PNG where the mobile viewport only displays 390px wide is the single most common self-inflicted speed penalty on the modern web.

When to Use WebP, PNG, or JPG

Each format solves a specific job. Picking the wrong one inflates transfer size without improving visual quality:

  • WebP (Quality 78% to 85%): The default choice for nearly all website photography, hero banners, blog illustrations, and transparent UI graphics. WebP supports both lossy compression and lossless alpha transparency, routinely cutting PNG payload size by 65% to 85% and JPG payload size by 25% to 35% with no visible degradation at normal viewing distances. Every major browser (Chrome, Safari, Firefox, Edge, iOS Safari, and Android Chrome) has supported WebP for years.
  • PNG (Lossless): Keep PNG only for source design exports, print assets, or legacy third-party portals and email tools that reject .webp uploads. Never ship multi-megabyte photographic PNGs as live web hero banners.
  • JPG (Quality 80% to 85%): Useful when uploading photos to older marketplaces, PDF workflows, or CRM/email editors that require .jpg files. For transparent assets exported to JPG, flatten onto a matching background color (such as #FFFFFF) so transparent edges do not turn solid black.

Resizing Matters as Much as Format Conversion

Switching formats without checking pixel dimensions leaves half the speed win on the table:

  1. Hero banners: Cap width at 1920px (or 1600px on content-focused layouts). A 5,400px DSLR export holds nearly 8x more pixels than a desktop screen can display.
  2. Blog and service page images: Cap width at 1200px.
  3. Team cards, feature tiles, and product thumbnails: Cap width at 800px or 400px.

Always include explicit width and height attributes on your <img> tags so the browser reserves vertical layout space before the image bytes arrive, preventing Cumulative Layout Shift (CLS). Reserve fetchpriority="high" (and never loading="lazy") for your single above-the-fold hero image, and add loading="lazy" to every image below the fold.

Platform Notes for Hosted CMS Owners

If your site runs on a managed platform, avoid fighting the platform's asset pipeline:

  • Shopify and Squarespace: Both platforms serve WebP dynamically through their CDNs, but uploading a 10 MB camera raw export still hurts processing and responsive srcset efficiency. Resize and compress source files under 1920px before upload.
  • WordPress: Native WordPress media uploads do not always convert older PNGs automatically unless configured. Converting hero and gallery assets to WebP before uploading avoids adding heavy image-optimization plugins that bloat wp-admin and slow down PHP requests.
  • Webflow: Use Webflow's built-in Asset Panel WebP compression tool for existing assets, and pre-resize new uploads to <= 1920px so large assets never ship unscaled.

Convert and Optimize Locally in Your Browser

You should not need to upload private client photography or unreleased product shots to an ad-heavy third-party server just to convert formats.

We built a free, 100% browser-side WebP, PNG & JPG Website Image Converter that processes up to 30 images locally via HTML5 Canvas, shows exact before-and-after byte savings per image, resizes to clean web breakpoints (1920px, 1200px, 800px, 400px), and exports a single .zip archive with zero uploads and zero signup.

If you want to see whether oversized images, render-blocking scripts, or slow server response times are actually holding back your live homepage, run a free 30-second check with our Website Speed Test or full diagnostic at SiteRedraft.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.