A/B Test Idea: JPG vs. WebP Banners and Landing Page CTR

Published on June 12, 2024 • Updated on September 8, 2026

Quick summary

Test WebP versus JPG landing-page images with a clean A/B experiment. Measure load speed, LCP, and CTA click-through rate without confusing format changes with audience or design changes.

Topic: Image tools

The Hypothesis: Faster Images, More Clicks

We know that page speed is a critical factor in user experience and conversions. Slow-loading pages lead to higher bounce rates. Since images are often the largest element on a landing page, optimizing them is a top priority.

Modern image formats like WebP offer significantly smaller file sizes than traditional JPEGs at a comparable visual quality. This leads to faster loading times.

Our hypothesis is: By replacing a standard JPG hero banner with a highly optimized WebP version, we will reduce the page’s load time, leading to a better user experience and a measurable increase in the click-through rate (CTR) on the page’s main call-to-action (CTA).

Why This Test Matters

  • Validates Performance Efforts: It provides concrete data to prove that image optimization efforts have a direct impact on user behavior and business goals.
  • Improves Core Web Vitals: A faster-loading hero image will directly improve your page’s Largest Contentful Paint (LCP) score, a key Google metric.
  • Incremental Gains: Even a small lift in CTR (e.g., 0.5%) can lead to significant revenue gains at scale.

How to Set Up the A/B Test

You will need an A/B testing tool like Google Optimize (sunsetting, but principles apply to others), VWO, or Optimizely.

Step 1: Prepare Your Image Assets

  1. Create the Control (JPG): Take your original hero banner and save it as a high-quality JPG. This is your “Version A”.
  2. Create the Variant (WebP): Take the same original banner and convert it to WebP using our Image Converter tool. Adjust the quality settings to get a file size that is at least 30-40% smaller than the JPG, while still looking visually sharp. This is your “Version B”.
  3. Host Both Images: Upload both the JPG and WebP images so they are accessible via a URL.

Step 2: Configure the A/B Test

  1. Set Up Your Experiment: In your A/B testing software, create a new A/B test on your target landing page.

  2. Define Your Variants:

    • Original (Control): This is your current page with the JPG banner. No changes are needed.
    • Variant 1 (WebP): In the editor, change the src attribute of the <img> tag for the hero banner to point to your new WebP image URL.

    Advanced Option: For the most robust test, use the <picture> element in your variant to serve WebP with a JPG fallback. This ensures the test doesn’t fail for users on very old browsers.

    <!-- Code for Variant 1 -->
    <picture>
      <source srcset="your-banner.webp" type="image/webp">
      <img src="your-banner.jpg" alt="...">
    </picture>
  3. Set Your Primary Objective: The main goal is to measure clicks on your primary call-to-action. Configure the test to track clicks on that specific button or link. This will be your primary conversion metric (CTR).

  4. Add Secondary Objectives (Optional but Recommended):

    • Page Load Time: Track the average page load time or LCP for each variant.
    • Bounce Rate: See if the faster-loading page reduces the number of users who leave immediately.

Step 3: Launch and Analyze

  1. Traffic Allocation: Start with a 50/50 split, sending half your visitors to the original page and half to the variant.
  2. Run the Test: Let the experiment run until you have reached statistical significance (usually at least a 95% confidence level). This might take a few days or a few weeks, depending on your traffic volume.
  3. Analyze the Results:
    • Did the WebP variant have a statistically significant higher CTR?
    • Did the page load time decrease for the variant group?
    • Did the bounce rate go down?

Interpreting Potential Outcomes

  • Clear Win: The WebP variant shows a significant increase in CTR and a decrease in load time. Action: Roll out WebP as the new default for all hero images across your site.
  • No Significant Difference: The CTR is roughly the same, even if the page loaded faster. Analysis: This could mean that for your specific audience or page, the load time difference wasn’t noticeable enough to impact behavior. However, the performance benefits (better Core Web Vitals) are still valuable on their own, so switching to WebP is likely still a good idea for SEO and user experience.
  • Loss: The WebP variant performs worse. Analysis: This is highly unlikely but could indicate a problem with the image itself (e.g., you compressed it too much and it looks blurry) or a technical glitch in the test setup.

This simple A/B test is a powerful way to connect the technical work of web performance optimization directly to tangible business results.

Keep the experiment valid

Change one meaningful variable at a time. Keep the image dimensions, crop, alt text, page copy, CTA, traffic allocation, and audience rules identical between variants. If you also change the headline or layout, you will not know whether the result came from WebP or the creative change.

Define the primary metric before launch and record a minimum detectable effect. A small page may not have enough conversions to distinguish a real lift from random noise, so use performance metrics as supporting evidence rather than forcing a positive conclusion. Check that the image request, cache behavior, and browser support are comparable, and exclude bots or internal traffic from the analysis.

If the variant wins, verify that the improvement remains after the cache warms up and across mobile devices. If it ties, you can still adopt the smaller format when visual quality and compatibility are equal. Use <picture> with a fallback so the optimization remains resilient for older clients.

Advertisement

Frequently asked questions

Can WebP improve conversion rate by itself?

WebP can reduce image bytes and improve loading, but it does not guarantee more conversions. Test the same page and creative so the result reflects performance rather than a different design.

What should I measure in a JPG versus WebP test?

Track the primary CTA click-through rate, LCP, image load time, bounce or engagement signals, and errors. Segment results by device and browser when the audience mix differs.

Should the JPG and WebP images look identical?

They should be visually comparable at the intended display size. If one image is blurrier, differently cropped, or has a different color profile, the experiment is testing creative quality as well as format.

Do I need an A/B test to switch from JPG to WebP?

No. A format migration can be justified by file size, compatibility, and Core Web Vitals testing. Use an A/B test when you need evidence about a conversion metric for a high-value landing page.

How long should an image format A/B test run?

Run until the sample size and decision rule are defined in advance and the result is stable across a complete business cycle. Avoid stopping after a short spike in traffic or a single significant-looking result.

Explore this topic

Image tools

Read more guides in this cluster and move between related tools faster.

View topic guides

Useful tools

Related Guides