Image optimization tips for Shopify merchants you can start using today
When you create an ecommerce store on Shopify, one of the first things you need to focus on are your images. You need to ensure that your store features high quality, fully optimized images. After all, images help you sell your products/services, and that’s why you have to pay attention to the way they look and function. That's why we've created a list with some of the best image optimization tips you can use for your Shopify store!
Images sell your products, so they have to look good. They're also usually the heaviest part of every page, so they decide a lot of how fast your store feels. On a collection page with dozens of products, that adds up quickly.
The good news is that Shopify already does some of the work for you. This post covers what Shopify handles on its own, what you still need to do, and the mistakes we see most often. For everything else that affects speed, like apps and themes, see our post on speeding up a Shopify store.
Why is image optimization important?
Optimized images make pages load faster, and faster pages keep more visitors and help your search rankings. Good images also help people decide to buy, and alt text makes your store usable for people who can't see the images. Image optimization is about getting all three right: quality, speed and description.
What does Shopify do with my images automatically?
When your theme displays an image, Shopify's CDN (the network of servers that delivers your store's files) creates resized versions for different screen sizes. It also serves WebP or AVIF automatically to browsers that support them, which makes files noticeably smaller than JPG.
That means you don't need to convert your images to WebP yourself, and you don't need an app to do it. According to Google's data, WebP images are on average 25-34% smaller than comparable JPEGs. Shopify gives you that saving for free, as long as your theme uses Shopify's current image filters, which modern themes do.
What size should my Shopify product images be?
For square product photos, 2048 x 2048 pixels is a good size. It's sharp enough for zoom and for large screens. Images need to be at least 800 x 800 pixels for zoom to work well.
Shopify accepts images up to 5000 x 5000 pixels and 20 MB, but uploading that much is rarely useful. Bigger originals mean longer uploads and heavier files in places where the theme doesn't resize them.
Whatever size you choose, keep the same aspect ratio for all products in a collection. Mixed shapes make collection grids look messy and can cause the page to jump as it loads.
Do I need to compress images before uploading?
For product photos straight from a good camera or a photo editor, Shopify's resizing handles most of it. Compressing first still helps when your files are very large, or for images your theme might show at full size, like banners. Tools like TinyPNG, Optimizilla and Compressor reduce file size without a visible loss in quality.
Pick the right format to upload
- JPG for photos. It's the safest choice for product photography.
- PNG only when you need a transparent background or sharp graphics with text. PNG photos are much larger than JPGs.
- WebP is fine to upload too, but since Shopify converts JPGs for you, there's no need to do it yourself.
Use alt text for every product image
Alt text is a short description of the image. It matters for three reasons:
- Screen readers read it aloud, so people with visual impairments know what the image shows. Accessibility matters for every store.
- It shows in place of the image if the image doesn't load.
- It helps search engines understand the image, which helps in image search.
Describe what's actually in the image, like "Black leather tote bag with gold zipper, side view." Don't stuff it with keywords. In Shopify, you can add alt text by clicking an image in the product's media section.
Give your image files descriptive names
Rename files before uploading. "black-leather-tote-side.jpg" tells search engines more than "IMG_4521.jpg," and Shopify keeps the file name in the image's address. Keep names short, use hyphens between words, and describe the product.
Choose the right product angles
Shoppers can't pick up your product, so your photos have to answer their questions. Shoot from many angles, then pick the ones that show what matters: the front, the back, the details, the size in someone's hand or on a model, and the product in use. Six good photos beat fifteen that repeat each other.
Lazy load images, but not the first one
Lazy loading means images further down the page only load when the visitor scrolls near them. It makes the first view of the page much faster, and many current Shopify themes already do it.
The exception is the first large image on the page, like your hero image or main product photo. That one should load right away. If it's lazy loaded, the most important part of the page appears last.
Avoid too many decorative images
Background images, textures and decorative graphics make a store look nice, but they don't sell anything and they all add weight. Keep the focus on your product images, and use decoration only where it adds something.
Test your pages after changes
Run your key pages through Google PageSpeed Insights before and after you change images. It flags images that are too large for where they're shown, images that could be lazy loaded, and the image that's slowing down the first view. Check the mobile results first.
Use captions where they add something
Captions aren't required, but people read them, and they give search engines more context about the image. They work well on blog posts and lookbooks, less so in product galleries.
Small changes add up
None of these steps takes long, and most only need to be done once, as part of how you add new products. Get them right and your store looks better, loads faster and is easier for everyone to use.
Related reading
Wondering what shape your own site is in?
Get a free 27-point Website Health Check - security, speed, accessibility and SEO. Plain English, no pitch.
Check my site


