CompressImg
Guide··9 min read

How to Compress Images for Shopify — Speed Up Your Store (2026)

Uncompressed product images are the most common cause of slow Shopify stores. Shopify does apply some automatic optimization, but it is not enough to offset the impact of oversized source images. This guide covers the right image sizes, quality settings, and the pre-upload workflow that keeps your store fast.

Shopify Image Targets at a Glance

Product images2048 × 2048 px max< 500 KBQ82
Collection banner1800 × 1000 px< 300 KBQ80
Hero / homepage banner1920 × 800 px< 350 KBQ80
Blog post images1200 × 628 px< 200 KBQ80
Logo200–400 px wide< 50 KBQLossless

Why Image Size Matters for Shopify SEO

Shopify stores run on shared infrastructure. While Shopify serves images through a CDN and automatically converts uploads to WebP for supported browsers, it cannot fix the problems caused by oversized source images:

  • LCP (Largest Contentful Paint) — Google's Core Web Vitals measure how long until the largest visible element loads. For product pages, this is almost always the product image. A 3 MB source image, even CDN-served, will fail LCP on mobile connections.
  • Mobile conversion rates — Research consistently shows that each 100ms of additional load time reduces mobile conversion rates by 1–3%. A product gallery with 10 × 2 MB images adds multiple seconds on mobile.
  • Google Shopping visibility — Page experience signals (which include Core Web Vitals) affect visibility in Google Shopping. Stores with fast-loading product pages get better placement.
  • Shopify speed score — Shopify displays a store speed score in the admin dashboard. Image optimization is the fastest way to improve this score.

Step-by-Step: Compress Before Uploading to Shopify

1

Prepare the image at the right dimensions

Resize your product photo to 2048 × 2048 pixels maximum. Shopify will not display larger — it only generates thumbnails from the source. Any pixels above 2048 are wasted file size.

2

Compress with quality 82

Go to compressimg.pro, upload the resized image, and set quality to 82. This is the recommended setting for product photos — high enough to show product detail clearly, low enough to stay under 500 KB for most images.

3

Verify file size before uploading

The result card shows the compressed file size. Target under 500 KB for product images, under 300 KB for collection banners. If still too large, reduce quality to 78.

4

Name the file descriptively before uploading

Shopify uses the filename as part of image SEO. Rename from "IMG_4521.jpg" to "blue-denim-jacket-front.jpg" before uploading. Use hyphens, not spaces or underscores.

5

Add alt text in Shopify after upload

In the Shopify product editor, click on each image and add alt text. Describe what the image shows — include the product name and a descriptive detail. Shopify uses this for Google Images and accessibility.

Does Shopify Automatically Optimize Images?

Shopify applies several automatic optimizations to uploaded images:

  • Converts to WebP for browsers that support it (all modern browsers)
  • Generates multiple size variants for responsive display
  • Serves through a global CDN (Fastly)
  • Applies HTTP/2 and caching headers

What Shopify does not do:

  • Reduce quality below what was uploaded — if you upload an 8 MB photo, Shopify stores the full 8 MB and generates variants from it
  • Strip unnecessary EXIF metadata from images
  • Automatically rename files for SEO
  • Add alt text — that is always manual

The practical conclusion: compress before uploading. Shopify's CDN will then serve already-optimized images even faster.

Product Image Best Practices

Square format

1:1 ratio (2048×2048) is Shopify's recommended format. Consistent ratios prevent layout shifts in collection grids.

White or light background

Clean backgrounds compress better (less color information) and convert better for product marketplaces like Google Shopping.

Multiple angles

Show front, back, detail, and in-use views. Multiple images reduce return rates. Keep each image under 500 KB.

No watermarks

Watermarks create hard-to-compress artifacts and reduce perceived product quality. Use Shopify's built-in fraud protection instead.

High contrast, sharp edges

JPEG compression works best on smooth gradients. Product photos with sharp object edges compress better as WebP.

Lifestyle photos for collections

Collection banners can use lifestyle photos at 1800×1000 px. Compress to under 300 KB — these load on every category page.

Batch Compressing Existing Shopify Images

If your store already has unoptimized images, the most efficient approach is to export them from Shopify, compress in bulk, and re-upload.

  1. 1. In Shopify admin, go to Products → select products → Export to get a CSV with image URLs
  2. 2. Download the images from the URLs in the CSV
  3. 3. Use the batch compress tool to compress up to 5 at a time (download as ZIP)
  4. 4. Re-upload the compressed images to each product — Shopify will replace the old ones
  5. 5. Re-add alt text (it does not carry over on re-upload)

For stores with hundreds of products, Shopify app store has bulk image optimization apps. For under 50 products, manual compression is faster.

Related Tools

Frequently Asked Questions

What is the best image size for Shopify product photos?

2048 × 2048 pixels at a 1:1 aspect ratio is Shopify's recommended size for product images. This is the maximum resolution Shopify uses for zoom functionality. File size should be under 500 KB — compress at quality 82 before uploading.

Does Shopify convert images to WebP automatically?

Yes. When a browser supports WebP (all modern browsers), Shopify serves a WebP version of your uploaded image. However, the WebP is generated from your source — if the source is 5 MB, the WebP will still be large. Compress the source first.

What image format should I upload to Shopify?

Upload JPEG for product photos and PNG for images that require transparency (logos, overlays). Shopify converts to WebP for delivery automatically. You do not need to upload WebP files directly, though Shopify accepts them.

How do I fix a slow Shopify store caused by images?

Check your PageSpeed score at pagespeed.web.dev. If images are the cause, compress them at compressimg.pro (quality 82, under 500 KB per product image), re-upload to Shopify, then re-run PageSpeed. Typically improves LCP by 1–3 seconds on mobile.

What is the maximum file size for Shopify images?

Shopify accepts images up to 20 MB per file. However, you should never upload near this limit — product images should be under 500 KB and collection banners under 300 KB for optimal performance.

Does image compression affect product photo quality?

At quality 82 (recommended), compressed product photos are visually identical to uncompressed originals at normal viewing. The compression removes data the eye cannot perceive. At quality below 70, artifacts may appear on high-detail product areas.