ShopifySeptember 22, 2025

Image Optimization for Shopify

How to optimize images on your Shopify store for faster loading, better SEO, and higher conversion. File formats, sizing, compression, alt text, and the mistakes that slow you down.

Mark Cijo

Mark Cijo

Founder, GOSH Digital

Image Optimization for Shopify

Your Shopify store is slow because of your images. I can say that without seeing your store because it's true for 90% of eCommerce sites. Images account for 50-75% of total page weight on most product pages. Unoptimized images are the number one reason Shopify stores fail Google's Core Web Vitals.

A 1-second delay in page load time reduces conversion rates by 7%. If your store does $100,000/month and your images are adding 2 seconds to load time, that's costing you roughly $14,000/month in lost sales. From slow images.

The fixes aren't complicated. They just require discipline and the right setup. Let me walk you through everything.

File Formats: What to Use

JPEG

Best for: product photos, lifestyle images, any photograph with many colors and gradual color transitions.

JPEGs compress well and produce small file sizes while maintaining visual quality. For most eCommerce product images, JPEG is the right choice.

Quality setting: 80-85% quality is the sweet spot. Below 75%, you start seeing visible compression artifacts. Above 90%, file sizes balloon with minimal visual improvement. The difference between 85% and 100% quality is often invisible to the human eye but can double the file size.

PNG

Best for: graphics with transparency (logos, icons), screenshots, images with text overlay, and images where precise color reproduction matters.

PNGs are larger than JPEGs for photographs. Don't use PNG for product photos — it's overkill and creates unnecessarily large files.

WebP

Best for: everything. WebP provides 25-34% better compression than JPEG at equivalent visual quality, and it supports transparency like PNG.

Good news: Shopify automatically serves WebP versions of your images to browsers that support it (which is all modern browsers). You don't need to manually convert to WebP. Upload high-quality JPEGs or PNGs, and Shopify handles the WebP conversion and serving.

AVIF

The newest format, offering even better compression than WebP. Shopify has been rolling out AVIF support. It's a "nice to have" — the infrastructure handles it automatically.

SVG

Best for: logos, icons, and simple graphics. SVGs are vector-based (they scale to any size without quality loss) and are typically very small files.

Use SVGs for your logo, social icons, and any simple graphics. Don't use SVGs for product photos.

Image Dimensions and Sizing

Product Images

Shopify recommends product images at 2048x2048 pixels (square). This provides enough resolution for zooming and looks crisp on retina displays.

But here's the thing: if your product images are 4000x4000 or 6000x6000 (straight from a DSLR), Shopify will serve them at whatever size the theme requests. Larger source images mean larger file transfers, even with responsive image serving.

Resize before uploading. Max 2048px on the longest side for product images. This is more than enough for any display. Uploading 6000px images is wasting bandwidth.

Hero/Banner Images

Hero images span the full width of the page. On a large desktop monitor, that's 1920px wide. On retina, it could display at 3840px.

Recommendation: 2400px wide for hero images. This covers most displays including retina without being excessively large.

Height depends on your design: 800-1200px is common for hero banners.

Collection/Category Images

If your collections have header images, size them at 1600x800px (or your theme's recommended dimensions). These are typically smaller than hero images.

Thumbnail Images

For product grids and carousels, Shopify generates thumbnails automatically from your full-size images. You don't need to upload separate thumbnails. But make sure your source images are composed well at small sizes — a product photo that looks great at 2048px but is hard to identify at 300px needs to be reframed.

Compression

Before uploading to Shopify, compress your images. Even if you've saved at 80% JPEG quality, additional compression can reduce file sizes by another 20-50% without visible quality loss.

Free tools:

  • TinyPNG / TinyJPG (web-based, free for up to 20 images at a time)
  • Squoosh (Google's free web-based compression tool — excellent quality/size control)
  • ImageOptim (free Mac app — drag and drop batch compression)
  • ShortPixel (Shopify app for automatic compression of all uploaded images)

Target file sizes:

  • Product images: 100-300 KB
  • Hero images: 200-500 KB
  • Thumbnails: 20-50 KB

If your product images are over 500 KB, they need compression. If they're over 1 MB, they're actively hurting your site speed.

Alt Text

Every image on your Shopify store should have alt text. This is non-negotiable for three reasons:

SEO. Google can't "see" images. Alt text tells Google what the image contains. Product images with descriptive alt text rank in Google Images and contribute to your product page's overall SEO.

Accessibility. Screen readers read alt text to visually impaired users. An image without alt text is invisible to them.

Image load failures. When an image doesn't load (slow connection, server issue), the alt text displays as a placeholder. "Blue leather handbag, front view" is infinitely better than a broken image icon.

How to Write Alt Text for Product Images

Describe what you see. "Women's blue leather crossbody bag with gold chain strap, shown from front angle"

Include the product name and key attributes. "Aurora Wireless Headphones in Midnight Black, over-ear design with memory foam cushions"

Include relevant keywords naturally. If your target keyword is "vegan leather tote bag," make sure your alt text includes that phrase (when it accurately describes the image).

Don't stuff keywords. "bag tote bag leather bag women's bag blue bag cheap bag" is keyword stuffing. It hurts SEO and is useless for accessibility.

Bulk Editing Alt Text in Shopify

For product images: edit the product, click on each image, and add alt text in the popup.

For many products, this is time-consuming. Use Shopify's bulk editor or a CSV export/import to add alt text across your catalog.

Some apps (like SEO Manager or Smart SEO) can automatically generate alt text based on product titles and variant names. This gets you 80% of the way there. Review and refine the auto-generated text for your most important products.

Lazy Loading

Lazy loading means images below the fold don't load until the customer scrolls to them. This dramatically improves initial page load time because the browser only downloads the images visible on screen.

Shopify's modern themes (Online Store 2.0) implement lazy loading by default. If you're on an older theme, verify that lazy loading is active. Look for loading="lazy" on image tags in your theme code.

Don't lazy-load above-the-fold images. Your hero image and the first row of products should load immediately (eager loading). Only images below the visible viewport should be lazy-loaded.

Responsive Images

Shopify themes generate multiple sizes of each image and serve the appropriate one based on the visitor's device and screen size. A mobile user gets a 400px-wide image. A desktop user gets a 1200px-wide image. A retina display gets 2x resolution.

This happens through the srcset attribute in HTML. Modern Shopify themes handle this automatically. If your theme is outdated, you might be serving full-size 2048px images to mobile devices — which is a huge waste of bandwidth.

Check by inspecting a product image in your browser (right-click, Inspect Element). If the rendered image is 400px wide but the loaded source is 2048px wide, responsive images aren't working properly.

Common Mistakes

Uploading raw camera files. A DSLR photo straight from the camera is 5000x3500 pixels at 8-15 MB. Resize and compress before uploading. Always.

Using PNG for product photos. PNGs are 3-5x larger than equivalent JPEGs for photographs. Use JPEG for photos. Reserve PNG for graphics with transparency.

No alt text. One of the most common SEO and accessibility failures. Every product image needs descriptive alt text.

Inconsistent image dimensions. If some products have square images and others have rectangular, your collection grids look messy. Standardize your image dimensions (square is the most common and versatile format for eCommerce).

Too many images per product. 4-8 images per product is the sweet spot. More than that increases page load time without proportionally increasing conversion. Every additional image adds 100-300 KB to the page weight.

Decorative images without compression. Background images, lifestyle banners, and decorative elements often get uploaded at full quality because they're "not product images." They still affect page speed. Compress everything.

Measuring Image Performance

Use Google PageSpeed Insights (pagespeed.web.dev) to test your pages. It will specifically flag:

  • Images that could be compressed further
  • Images that are served at a larger size than needed
  • Images that aren't using next-gen formats (WebP/AVIF)
  • Images that aren't lazy-loaded

Run PageSpeed Insights on your homepage, a collection page, and your best-selling product page. Fix the image issues it flags. Then retest.

Target: Lighthouse Performance score of 85+ on mobile and 95+ on desktop.

The Bottom Line

Image optimization isn't glamorous work. Nobody brags about their compressed JPEGs. But it's the highest-impact site speed improvement you can make, and site speed directly affects conversion rate, SEO ranking, and customer experience.

Resize before uploading. Compress everything. Add alt text. Let Shopify handle format conversion and responsive serving. Monitor with PageSpeed Insights.

If you want a comprehensive Shopify performance audit — including image optimization, theme performance, and page speed improvements — book a call with our team. We'll get your store loading fast and converting better.

Mark Cijo

Written by Mark Cijo

Founder of GOSH Digital. Klaviyo Gold Partner. Helping eCommerce brands grow revenue through data-driven marketing.

Book a free strategy call →

Want results like these for your brand?

Book a free call. We'll look at your data and show you what's possible.

Pick a Time

15 minutes. No pitch deck. Just your data and our honest take.