Best Image Formats for Web Performance in 2026 | Bulk Image Compressor
Images Are Your Biggest Performance Problem
On most websites, images make up 40-60% of total page weight. If your page loads slowly, images are probably the main reason. A single unoptimized hero image can be larger than all your HTML, CSS, and JavaScript combined.
This matters for users (nobody waits 5 seconds for a page to load) and for search rankings. Google’s Core Web Vitals directly measure how fast your content appears, and images are almost always the bottleneck.
Core Web Vitals and Images
Three metrics make up Core Web Vitals, and images affect all of them:
Largest Contentful Paint (LCP) measures how long it takes for the biggest visible element to load. On most pages, that’s an image. Google considers anything under 2.5 seconds “good.” A 3 MB hero image on a slow connection will blow right past that.
Cumulative Layout Shift (CLS) measures how much the page jumps around while loading. Images without specified width and height dimensions cause layout shifts because the browser doesn’t know how much space to reserve until the image downloads.
Interaction to Next Paint (INP) measures responsiveness. Large images that block the main thread during decoding can hurt this score, especially on mobile devices.
The fix for all three starts with using the right format and compression level.
Format Comparison for 2026
JPEG
Still works. Still supported everywhere. But for web performance specifically, there are better options now. JPEG files are typically 25-35% larger than WebP at the same quality, and they don’t support transparency.
Use JPEG when you need compatibility outside the web: email attachments, documents, social media uploads that don’t accept WebP.
PNG
Same story. PNG is perfect for screenshots, logos, and graphics, but file sizes are larger than modern alternatives. For lossless web images, WebP lossless produces smaller files.
Use PNG when you need to share files that will be opened in image editors, or when you need guaranteed compatibility in non-browser contexts.
WebP
WebP has become the default web image format in 2026. Browser support is universal across Chrome, Firefox, Safari, and Edge. CDNs and image services serve WebP automatically. Most CMS platforms handle WebP natively now.
The numbers speak for themselves: 25-35% smaller than JPEG for photos, 25% smaller than PNG for graphics, with the same visual quality. It supports lossy, lossless, transparency, and animation.
If you’re only going to pick one format for your website, WebP is the obvious choice today. For a deeper comparison with JPEG and PNG, see our JPEG vs PNG vs WebP breakdown.
AVIF: The Next Step
AVIF is based on the AV1 video codec and pushes compression efficiency even further. AVIF files are typically 20-30% smaller than WebP, which makes them about 50% smaller than JPEG.
Browser support has improved significantly. Chrome, Firefox, and Safari all support AVIF now. Edge supports it too. The main downside is encoding speed: creating AVIF files takes considerably longer than WebP or JPEG. For a site with thousands of images, the encoding time adds up.
AVIF is worth using if your build process can handle the encoding time. For most sites, serving AVIF with a WebP fallback is the ideal setup.
Responsive Images with srcset
Choosing the right format is only half the equation. You also need to serve the right size.
A visitor on a phone with a 390px-wide screen doesn’t need a 1920px image. The srcset attribute lets you provide multiple sizes and let the browser pick the best one:
<img
src="photo-800.webp"
srcset="photo-400.webp 400w, photo-800.webp 800w, photo-1200.webp 1200w"
sizes="(max-width: 600px) 400px, (max-width: 1024px) 800px, 1200px"
alt="Product photo"
width="1200"
height="800"
loading="lazy"
>
This tells the browser: on small screens, use the 400px version. On medium screens, use 800px. On large screens, use 1200px. The bandwidth savings on mobile are significant.
Also note the loading="lazy" attribute. This tells the browser to only load the image when it scrolls into view. Don’t use lazy loading on your LCP image (the first big image the user sees), but use it on everything below the fold.
Format Recommendations by Content Type
Hero images and banners: AVIF with WebP fallback. These are your largest images and benefit the most from better compression. Serve at 1920px max width, with smaller srcset variants for mobile.
Product photos: WebP lossy at quality 80. For e-commerce, you might serve hundreds of product images per category page. Even a 10% size reduction per image adds up fast.
Blog post images: WebP lossy at quality 75-82. Blog images are usually displayed at 800-1200px wide, so they don’t need to be huge. Resize them before compressing.
Icons and logos: SVG where possible. For raster logos, WebP lossless or PNG. These files are small either way, so format choice matters less here.
Screenshots and diagrams: WebP lossless or PNG. Both preserve text and sharp edges perfectly. WebP gives you about 25% smaller files.
User-uploaded content: Process everything to WebP on upload. Use Bulk Image Compressor to batch convert if you’re migrating existing image libraries.
Quick Wins for Page Speed
If you want to improve your site’s image performance today, here are the highest-impact changes:
- Switch to WebP for all web images. This alone can cut image payload by 25-35%.
- Resize images to the dimensions they’re actually displayed at. Don’t serve a 4000px photo in a 600px container.
- Add width and height attributes to every img tag. This prevents layout shifts.
- Lazy load images below the fold. Only your first visible images should load immediately.
- Preload your LCP image if it’s a static hero. Use
<link rel="preload" as="image" href="hero.webp">in your document head. - Use a CDN that serves images from locations close to your visitors.
What About the Future?
JPEG XL was another promising format, but browser adoption stalled. Chrome removed its experimental support, and without Chrome, widespread adoption is unlikely. AVIF is the more practical choice going forward.
The trend is clear: newer formats compress better, and browser support catches up over time. WebP is the safe default right now. AVIF is worth adopting if your tooling supports it. Either way, format choice combined with proper sizing and lazy loading will keep your images from being a performance bottleneck.
For more background on how image compression works at a technical level, our guide on why website images need compression covers the fundamentals.
Ready to compress your images?
Bulk compress JPEG, PNG, WebP, and AVIF images right in your browser. No uploads, no sign-ups.
Try Bulk Image Compressor