MEDIA GUIDES / Ecosystems

10 Steps for Shopify Image Optimization

Images are the most important performance variable on any Shopify store. They determine how fast your pages load, how your Core Web Vitals scores rank against Google’s thresholds, and whether a shopper on a mobile connection sees your products before losing patience and leaving. Get image optimization right, and everything else (like product SEO, collection rankings, and conversion rates) improves with it.

This guide covers everything a Shopify merchant needs to know about image optimisation: the formats that deliver the best balance of quality and speed, the correct dimensions for every image context, compression and delivery best practices, alt text for SEO and accessibility, and how to apply all of it at scale across a large product catalogue.

What Is Shopify Image Optimisation?

Shopify image optimization is the process of reducing the file size and delivery overhead of images on a Shopify store without compromising their visual quality. It covers four interconnected areas:

  1. Format selection by choosing the most efficient file type for each use case
  2. Compression through reducing file size through quality and data optimization
  3. Sizing via serving images at the correct dimensions for each device and context
  4. Delivery using CDN infrastructure and loading strategies to minimise the time between request and display

Properly optimised images make Shopify stores faster, rank higher in Google search, and convert better. Unoptimised images are the primary cause of poor Core Web Vitals scores and slow page load times on most Shopify stores.

Why Shopify Image Optimisation Matters for SEO and Conversions

Core Web Vitals: The Direct Ranking Connection

Since 2021, Google has used Core Web Vitals as a confirmed ranking signal. These three metrics measure real-world page experience from actual Chrome user data:

  • Largest Contentful Paint (LCP): How long the largest visible element takes to load. On most Shopify stores, this is a hero image or a product image. Google’s threshold for ‘good’ is under 2.5 seconds.
  • Cumulative Layout Shift (CLS): Visual stability during page load. Images without explicit dimensions cause content to jump as they load, incrementing the CLS score. Threshold: under 0.1.
  • Interaction to Next Paint (INP): Responsiveness to user interactions. Threshold: under 200ms. Primarily affected by JavaScript, but image-heavy pages that block the main thread contribute.

A Shopify store that fails LCP thresholds on its product pages is at a systematic ranking disadvantage against stores that pass them, regardless of how well-optimised its titles, descriptions, and links are. Images are almost always the cause, and image optimisation is almost always the fix.

Conversion Rates

Page speed directly affects conversion rates. Studies consistently show that a 1-second improvement in mobile page load time increases conversion rates. For Shopify stores where product images are the primary purchase-decision content, ensuring those images load fast and display correctly on every device is a commercial priority, not just a technical one.

Image Search Traffic

Correctly optimised, properly named, and alt-text-tagged product images rank in Google Image Search. A shopper who finds your product through Google Images is close to making a purchase decision.

What Leading Shopify Merchants Achieved with Cloudinary

These are documented results from brands that implemented Cloudinary’s image and video delivery on Shopify:

Mattel: 80% faster page load times across their Shopify product catalogue

Puma: 71% faster page load times across their global storefront

Mint Velvet: +75% Core Web Vitals improvement — from failing to passing Google’s thresholds

Manscaped: 25% improvement in Largest Contentful Paint score

Forrester Research: 203% ROI on Cloudinary investment (independent total economic impact study)

For the full technical breakdown of how these results were achieved, see the Core Web Vitals for Shopify page.

Step 1: Choose the Right Image Format

Image format is the single most impactful file-size decision you make. The difference between a product image served as an unoptimized JPEG versus a well-compressed WebP can be 30–50% in file size at identical visual quality.

WebP

WebP is the recommended format for the vast majority of Shopify product and marketing images. It delivers 25–35% smaller files than JPEG at equivalent visual quality and is supported by all modern browsers. For any image that was previously a JPEG converting to WebP is the highest-return single optimisation available.

AVIF

AVIF offers even greater compression than WebP, typically 30–50% smaller than WebP for comparable quality. Browser support is slightly lower but growing. When stores need to squeeze every bit of performance and compression out of important pages, AVIF is a good bet. Cloudinary automatically serves AVIF to browsers that support it and falls back to WebP or JPEG for others.

PNG

Use PNG only for images that require transparency; like product cutouts, logos, or icons. PNG files are significantly larger than WebP for photographic content. If your product images don’t require a transparent background, PNG is almost never the right choice.

JPEG

JPEG is the legacy standard. It’s widely supported and works, but produces consistently larger files than WebP at the same quality level. For new images, there is no reason to use JPEG over WebP. For existing JPEG catalogues, converting to WebP at upload is worthwhile.

Cloudinary Assetlink automatically delivers every image in the optimal format for each visitor’s browser without any manual format management. Install Assetlink free from the Shopify App Store.

Step 2: Use the Correct Dimensions for Every Image Context

Serving a 3,000 × 3,000px product image to a mobile visitor whose screen displays it at 400 × 400px sends 56 times more data than necessary. Every pixel beyond what’s needed on screen is wasted bandwidth, directly contributing to slower load times and worse LCP scores.

Key Dimensions by Image Type:

  • Product images: 2048 × 2048px at a 1:1 square aspect ratio. Sufficient for zoom functionality and retina displays.
  • Hero and banner images: 1600–2400px wide, depending on theme. Most themes display banners at approximately a 3:1 aspect ratio.
  • Collection images: 2048 × 2048px, 1:1 square, consistent with product images.
  • Blog featured images: 1200 × 628px (1.91:1) is the Open Graph standard, optimised for both display and social sharing.
  • Favicons: 512 × 512px. Shopify scales to 32px automatically.

For the complete reference table covering all Shopify image contexts (including slideshows, logos, gift cards, and banner images) see our dedicated Shopify Image Sizes guide.

Critically, using the right source dimensions is only half the solution. Responsive delivery requires delivery infrastructure that Shopify doesn’t provide natively. Cloudinary Assetlink handles this automatically, generating the correct dimensions for each visitor’s device on the fly from a single uploaded source file.

Step 3: Compress Images Intelligently

Image compression reduces file size by discarding data that isn’t visually perceptible. The goal is the smallest file that looks identical to the uncompressed version at normal viewing distances and screen resolutions.

Lossy vs Lossless Compression

Lossy compression (used for JPEG, WebP in standard mode) permanently removes image data to reduce file size. Lossless compression (from PNG, WebP lossless) reduces file size without discarding any data. For photographic product images and marketing visuals, lossy compression at quality settings of 75–85% is typically indistinguishable from the original at normal sizes while delivering significant file size reductions.

Perceptual Compression

Advanced compression tools use perceptual compression: analysing the visual content of each image and applying variable quality settings based on what the human eye will actually notice. A product image with a busy textured background can tolerate more compression in low-detail areas than a product image with fine text or sharp geometric edges. Perceptual compression consistently achieves smaller files at better visual quality than blanket quality settings.

File Size Targets

  • Product images: under 500KB after optimisation
  • Banner and hero images: under 600KB after optimisation
  • Thumbnails and collection images: under 100KB after optimisation
  • Blog images: under 200KB after optimisation

Use the free Shopify image compression tool to compress individual images before uploading to your store.

Step 4: Write Descriptive Alt Text for Every Image

Alt text is the written description of an image stored as the alt attribute in HTML. It serves two purposes: it tells search engines what an image depicts (contributing to image search rankings and page context signals), and it provides an accessible text alternative for visually impaired users who rely on screen readers.

What to Write

Good alt text describes the image specifically and includes relevant keywords naturally. For product images: include the product name, key attributes (like material, colour, or view angle), and any other terms a customer might search for. ‘Brown full-grain leather bifold wallet, front view showing card slots’ is better than ‘wallet’ or ‘product image’.

The Scaling Problem (and the Cloudinary solution)

For stores with hundreds or thousands of product images, maintaining accurate, descriptive alt text manually is not feasible. Merchants recognize the importance of alt text, but the manual workload prevents most large Shopify catalogues from having adequate alt text.

Cloudinary Assetlink addresses this directly. Cloudinary’s AI analyses each image and automatically generates structured metadata and descriptive tagging, which feeds directly into alt text across your entire catalogue, applied consistently with no manual work. For a complete guide to alt text best practices and how to implement them at scale, see our Shopify Image Alt Text guide.

Step 5: Implement Lazy Loading for Below-Fold Images

Lazy loading defers the loading of images that are not currently visible in the viewport. When a visitor lands on a product page, they see the above-fold content first. The remaining product images, related products section, and footer imagery are loaded only as the visitor scrolls toward them.

This reduces the initial page payload (the data that needs to download before the page becomes interactive) which directly improves LCP and Time to First Byte (TTFB). Most modern Shopify themes implement native lazy loading via the loading='lazy' attribute on images. Verify your theme supports this and that it’s enabled, particularly for product galleries and collection grids where multiple images load together.

One important exception: the LCP image (typically the hero or first product image) should NOT be lazy loaded. It needs to be prioritised and loaded as quickly as possible. Use the fetchpriority='high' attribute on your LCP image to signal to the browser that it should be loaded first.

Step 6: Serve Images via a Global CDN

A Content Delivery Network (CDN) stores copies of your images on servers distributed around the world. When a visitor requests an image, it’s served from the CDN node geographically closest to them, reducing the network latency between request and display.

Shopify serves images through its own CDN, which provides reasonable global coverage for most use cases. For merchants targeting international markets or requiring maximum delivery speed (particularly for large product catalogues with many images per page) a dedicated image CDN provides additional performance and flexibility.

Cloudinary operates a globally distributed CDN specifically optimised for image and video delivery. Images delivered through Cloudinary Assetlink benefit from edge caching, automatic format selection per browser, and delivery performance that consistently outperforms general-purpose CDNs for media-heavy pages.

Step 7: Use Responsive Image Delivery

Responsive image delivery means serving each image at the dimensions appropriate for the requesting device:

  • A mobile phone at 400px wide
  • A tablet at 800px wide
  • A desktop monitor at 1600px wide

Instead of uploading separate images for each breakpoint, modern delivery infrastructure generates the correct variant on the fly from a single source file.

Shopify’s CDN handles basic responsive sizing through URL parameters (?width=800) and auto-generated size variants. However, this requires either manual implementation in Liquid templates or theme-level configuration, and doesn’t apply intelligent compression or format selection to the generated variants.

Cloudinary Assetlink handles responsive delivery automatically and comprehensively. Every image request is analysed for the requesting device’s screen size, resolution, and browser capabilities. The optimal variant (with correct dimensions, best format, right compression level) is generated and delivered in milliseconds, with no manual configuration required. For more on resizing strategies, see How to Resize Images for Shopify.

Step 8: Optimise Video Alongside Images

Product videos increase engagement and conversion rates, and they also represent the most significant page performance risk if handled poorly. An unoptimized video file on a product page can weigh 50–200MB, completely overwhelming any gains made through image optimisation elsewhere on the page.

The Shopify Video Limitation

Shopify imposes size and duration limits on natively hosted video. It doesn’t support adaptive bitrate streaming (adjusting quality to the visitor’s connection speed), doesn’t optimise video for mobile delivery, and doesn’t generate preview thumbnails that load before the video itself.

Cloudinary Video Delivery

Cloudinary handles product videos with the same automatic optimisation applied to images: adaptive bitrate streaming adjusts quality to each visitor’s connection; AI-generated thumbnail previews render instantly at page load; automatic format conversion reduces file size while maintaining quality. Video content that previously slowed product pages to a crawl loads instantly through Cloudinary’s delivery infrastructure.

Step 9: Audit and Monitor Your Image Performance

Image optimization is not a one-time project. New products are added, themes are updated, content changes, and performance degrades over time if not actively monitored. A regular audit process catches issues before they affect your rankings and conversion rates.

Tools for Image Performance Auditing

  • Google PageSpeed Insights provides per-page analysis of image performance issues, including opportunities to serve next-gen formats, properly size images, and defer off-screen images. Test your homepage, top collection pages, and top product pages monthly.
  • Google Search Console Core Web Vitals report shows LCP, INP, and CLS performance data from real users, segmented by URL. This is the most important source of truth for how your store’s images are performing in the field.
  • Screaming Frog or Sitebulb crawl tools can identify all images on your store, flag oversized files, and surface missing alt text across your entire catalogue.
  • Core Web Vitals scores in Google Search Console — LCP under 2.5s on mobile for your highest-traffic pages.
  • Percentage of images served in WebP or AVIF, via Chrome DevTools Network tab, filter by Image.
  • Any product pages with total image payloads over 2MB.
  • Alt text coverage with a percentage of product images with non-empty alt attributes.
  • Image crawl errors in Google Search Console Coverage report.

Step 10: Automate Image Optimization with Cloudinary Assetlink

The nine steps above describe what needs to happen for every image on your Shopify store. For a store with 50 products, applying them manually is practical. For a store with 500 products and 3–6 images each, regular product launches, seasonal content changes, and multiple storefronts, manual image optimization doesn’t scale.

This is the problem Cloudinary Assetlink solves. It’s a free Shopify app that connects your store directly to Cloudinary’s media delivery infrastructure. Once connected:

  • Format selection is automatic: Every image is delivered as WebP, AVIF, or the best format for each visitor’s browser, with no manual conversion.
  • Responsive sizing is automatic: The correct dimensions for each device and context are generated on the fly from a single source file.
  • Compression is automatic: Perceptual compression is applied to every image, optimising quality settings based on visual content.
  • Alt text is automated: Cloudinary’s AI generates structured metadata and descriptive tags for every asset.
  • CDN delivery is global: Images are served from Cloudinary’s geographically distributed edge network, not from a single origin.
  • Video is handled too: Adaptive streaming, AI-generated thumbnails, and format optimisation apply to video automatically.

The result is complete Shopify image optimisation, applied automatically, consistently, at any scale, without developer involvement and without ongoing manual effort.

Install Cloudinary Assetlink free from the Shopify App Store →

Questions about your specific setup? Contact Cloudinary to discuss your requirements.

Explore More Cloudinary Capabilities for Shopify

Cloudinary’s Shopify integration extends across every part of the storefront. Visit the Cloudinary Shopify hub for case studies, use cases, and a full overview of how leading merchants use Cloudinary.

Shopify-specific capabilities:

Related Guides

Frequently Asked Questions

What is Shopify image optimization?

Shopify image optimization is the process of reducing image file sizes and improving delivery speed on a Shopify store without compromising visual quality. It covers format selection (WebP, AVIF), compression, correct sizing for each display context, alt text for SEO and accessibility, lazy loading, and CDN delivery. Properly optimised images improve Core Web Vitals scores, search rankings, and conversion rates.

How does image optimization improve Shopify SEO?

Image optimization improves Shopify SEO through two primary mechanisms. First, it improves Core Web Vitals scores — particularly Largest Contentful Paint (LCP), which is a confirmed Google ranking signal. Stores that pass LCP thresholds consistently outrank stores that fail them for equivalent on-page content. Second, properly sized images with descriptive alt text and keyword-relevant file names contribute to image search rankings, providing an additional source of organic purchase-intent traffic.

How do I check if my Shopify images are optimized?

Use Google PageSpeed Insights (pagespeed.web.dev) to test your key pages — it will specifically flag unoptimised images, including opportunities to serve next-gen formats, properly size images, and defer off-screen loading. In Chrome DevTools, open the Network tab, filter by Img, and check the Type column to see what formats are being served. Google Search Console’s Core Web Vitals report shows real-user LCP and CLS data by page, which reflects the cumulative impact of your image delivery.

Last updated: Jun 17, 2026
★★★★★
4.6 (30 reviews)