Shopify Image Optimization Guide (2026): Improve Speed, SEO & Sales

Images sell products but are usually the heaviest part of a page. Learn the right sizes and formats, how to compress, name and describe images, and how to load them fast.

Shopify Image Optimization Guide (2026): Improve Speed, SEO & Sales

Images sell products, but they are also usually the heaviest part of a Shopify page. A single uncompressed banner can add seconds on a mobile connection, and the hero image is often the element Google measures for Largest Contentful Paint.

This guide shows what Shopify already does for your images, what it doesn't, and the seven habits that keep a store fast and easy to find in Google Images.

Quick answer

  • Size: 2048 x 2048 px square for product images, same ratio for every product.
  • Format: upload JPG (photos) or PNG (transparency); Shopify serves WebP automatically.
  • Compress before upload with TinyPNG or Squoosh.
  • Name files descriptively and write alt text for every product image.
  • Lazy-load images below the fold, but never the main hero image.

What Shopify does for you, and what it doesn't

✓

Shopify does

Stores images on a global CDN, creates resized versions on request and serves WebP to browsers that support it.

!

You still need to

Upload sensibly sized, compressed files, name them well, add alt text and make sure the theme requests the right sizes.

Why image optimization matters

1

Faster pages

Smaller images load faster and improve Core Web Vitals, especially LCP.

2

Better SEO

Good file names and alt text help pages appear in Google Images.

3

More sales

Sharp, fast images build trust and keep shoppers browsing.

4

Accessibility

Alt text lets screen-reader users understand your products.

5

Lower bounce

Visitors stay when pages load quickly on mobile.

6

Consistent look

Same-ratio images keep grids tidy and professional.

1. Choose the right format

Each format has a job. Pick the one that fits the image.

  • JPG: product photos and lifestyle images
  • PNG: images that need a transparent background
  • WebP: Shopify serves it automatically to supported browsers
  • SVG: simple logos and icons

You don't need to convert photos to WebP before upload. Upload a good JPG and Shopify handles delivery.

Choose the right image format for Shopify

2. Compress before you upload

Large originals waste storage and can still slow pages if the theme loads big sizes.

  • Resize to the size you actually need first
  • Compress with TinyPNG, Squoosh or ImageOptim
  • Aim for product images of a few hundred KB
  • Check quality at 100% zoom after compressing

Compression usually cuts file size a lot with no visible difference.

Compress Shopify images before upload

3. Use descriptive file names

Google reads file names as a clue to what the image shows.

  • Good: organic-cotton-tshirt-front.jpg
  • Avoid: IMG_1234.jpg
  • Use hyphens, lowercase and no special characters
  • Rename before upload; Shopify keeps the name
Use descriptive image file names

4. Write alt text for every product image

Alt text helps screen-reader users and tells Google what the image shows.

  • Describe what's in the image, in plain words
  • Include colour, angle or detail where it helps
  • Use the product name naturally, no keyword stuffing
  • Leave decorative images with empty alt text

Add it in Shopify admin: open the product, click the image, then Add alt text.

Add alt text to Shopify images

5. Serve the right size to each device

A phone shouldn't download a desktop-sized banner.

  • Use Shopify's image_url and image_tag filters
  • Give the browser several widths to choose from
  • Set sizes to match the layout
  • Modern Online Store 2.0 themes do this by default
Responsive images on Shopify

If you build custom sections, this Liquid outputs a responsive, lazy-loaded image:

{{ product.featured_image | image_url: width: 1600 | image_tag: widths: '360, 540, 720, 1080, 1600', sizes: '(min-width: 990px) 50vw, 100vw', loading: 'lazy', alt: product.featured_image.alt }}

For the first, above-the-fold image, use loading: 'eager' and fetchpriority: 'high' instead of lazy.

6. Lazy-load below the fold only

Lazy loading delays images until the shopper scrolls near them.

  • Lazy-load product grids, galleries and footer images
  • Load the hero and first product image immediately
  • Set width and height to avoid layout shift
  • Check PageSpeed Insights for the LCP image

Lazy-loading the main hero image is a common mistake that makes LCP worse.

Lazy load Shopify images

7. Keep product, collection and blog images consistent

Consistent images look professional and load predictably.

  • Same aspect ratio for every product
  • Compress banners and collection images too
  • Resize blog images before upload
  • Audit old images every quarter
Optimize product, collection and blog images

Free tools for image optimization

TinyPNG logo

TinyPNGFast online compression for JPG, PNG and WebP

Squoosh logo

SquooshFree browser tool to resize and compare quality

ImageOptim logo

ImageOptimFree Mac app for batch compression

ShortPixel logo

ShortPixelCompression service with a free monthly quota

Google PageSpeed Insights logo

PageSpeed InsightsFinds the images slowing your pages

Codify image compressor

Codify Image CompressorOur free online compressor

Common mistakes to avoid

  • Uploading huge camera originals
  • Generic names like IMG_1234.jpg
  • Missing or keyword-stuffed alt text
  • Mixed image ratios in product grids
  • Lazy-loading the hero image
  • Text baked into banners (hard to read on mobile)
  • Not testing speed after a new banner
  • Leaving old, unused images in sections

Keep going with the Shopify speed optimization guide and the Shopify SEO checklist.

Need a faster store?

Our Shopify developers fix image loading, theme code and app bloat to improve Core Web Vitals. See our Shopify speed optimization service.

Get Free Quote

Frequently Asked Questions

Partly. Shopify's CDN creates resized copies and serves modern formats such as WebP to browsers that support them. It doesn't fix oversized originals, poor file names, missing alt text or a theme that loads the wrong size, so those are still up to you.
Shopify recommends 2048 x 2048 px square images for products. That is sharp enough for zoom and lets the theme serve smaller sizes on mobile. Keep all product images the same aspect ratio.
Upload high-quality JPG for photos and PNG for images that need transparency. Shopify converts them to WebP for supported browsers. Use SVG for simple logos and icons.
Aim for product images of a few hundred KB after compression. Hero banners can be larger, but test them in PageSpeed Insights because they are often the Largest Contentful Paint element.
Yes. Describe what the image shows, such as "navy linen shirt, front view". Alt text helps screen-reader users and helps Google understand the image. Don't stuff keywords.
No. Lazy-load images below the fold, but load the main hero or first product image straight away. Lazy-loading the largest visible image slows down Largest Contentful Paint.
It helps. Faster pages improve Core Web Vitals and user experience, and good file names and alt text help pages appear in Google Images.
TinyPNG, Squoosh and ImageOptim (Mac) are popular free options. Use PageSpeed Insights to find images that still slow your pages down.

Ready to Build or Improve Your Shopify Store?

Work with a Shopify Plus tier Partner to build, fix and grow your Shopify store faster.