Shopify SEO
Shopify Image SEO: File Names, Alt Text and Compression
By Shayan Ahmad · · 6 min read

On most Shopify stores, images make up a large share of every page. They sell the product, they drive Google Images traffic, and they are one of the biggest factors in how quickly a page loads. Yet image SEO is usually an afterthought, done in a rush when a new product goes live.
This article gives you a simple, repeatable routine for product photos, from naming the file to writing alt text, so that every image you upload helps both search and speed.
Why Image SEO Matters for Stores
Images help your store in three ways:
- Google Images and visual search. Many shoppers search visually, especially for fashion, home decor and gifts. Well-described images can bring in buyers browsing for ideas.
- Understanding the page. Image file names and alt text give Google more context about what your product is.
- Page speed. Oversized images slow your store down, particularly on phones, and slow pages lose shoppers.
There is also accessibility. Alt text is read aloud by screen readers, so it helps visually impaired shoppers understand your products. That alone makes it worth doing properly.
The Routine: Before You Upload
Step 1: Resize to a sensible size
Photos straight from a camera or phone are often several thousand pixels wide and several megabytes in size. Shopify will resize images for display, but very large originals still slow down your workflow and can affect how quickly some images load.
For most product photos, around 2,000 to 2,500 pixels on the longest side is plenty. That is large enough for zoom features and high-resolution screens. Check your theme's recommendations, as some themes suggest specific sizes or aspect ratios.
Step 2: Compress the file
Compression reduces file size without visibly reducing quality. Many free tools do this well. Aim for files that look sharp but are as light as possible. For photos, JPEG is usually a good choice for uploads, while PNG suits images that need transparency, such as logos.
Shopify's content delivery network can automatically serve modern formats, such as WebP, to browsers that support them, so you do not usually need to convert formats yourself.
Step 3: Name the file descriptively
Shopify keeps your original file name in the image's web address. A file called IMG_4821.jpg tells Google nothing. A file called linen-shirt-olive-green-front.jpg tells it exactly what the image shows.
A simple naming pattern works well:
product-type-key-detail-colour-view.jpg
For example: ceramic-coffee-mug-speckled-white-side.jpg or leather-crossbody-bag-tan-detail.jpg. Use hyphens between words, keep it lowercase, and keep it short.
Rename files before uploading. Once an image is in Shopify, changing its file name means re-uploading it.
The Routine: After You Upload
Step 4: Write alt text for every product image
In the product editor, click an image and add alt text. Describe what the image actually shows, as you would to someone who cannot see it. Good alt text is:
- Specific: "Olive green linen shirt, front view, buttoned" rather than "shirt".
- Accurate: describe this image, not the product in general.
- Varied: different images of the same product should have different alt text, such as front, back, detail and on a model.
- Natural: include the product type naturally, but do not stuff in keywords like "best cheap linen shirt buy online".
Step 5: Check alt text on collection and homepage images
Product images are not the only ones that matter. Collection banners, homepage hero images and blog images also need alt text. Most can be edited in the theme editor or in the relevant content section.
Purely decorative images, such as background patterns, do not need descriptive alt text. Describing them only adds noise for screen reader users.
Speed: How Images Are Loaded
Beyond file size, how images load affects speed too. Most modern Shopify themes handle this well, but it is worth checking a few things:
- Lazy loading: images further down the page should load only when the shopper scrolls near them. Most current themes do this automatically.
- The main image should not be lazy loaded. The first large image on a product page, or the hero image on your homepage, should load straight away. If it is lazy loaded, the page's main content appears more slowly.
- Responsive sizes: phones should receive smaller versions of images than large desktop screens. Shopify themes typically handle this using the image's URL parameters.
- Too many large images at once: big homepage slideshows with five full-width images are a common cause of slow homepages.
Run a product page through our free page speed check. If images feature heavily in the suggestions, start with your largest files.
Images for Google Shopping and Product Listings
If you list products through Google Merchant Center, your main product image matters even more. Google's image rules for product listings are stricter than for your own store. Main images should clearly show the product being sold, and should not carry promotional text, watermarks or borders added on top. A clean product shot, ideally on a plain background, is the safest choice for the first image. Lifestyle photos showing the product in use work well as second and third images, where they help shoppers picture it in their own home or wardrobe. Getting the main image right once avoids listing problems later.
Fixing an Existing Catalogue
If you already have hundreds of products with camera-named files and no alt text, do not try to fix everything at once. Prioritise:
- Best sellers first. Your top 20 products by sales or traffic.
- Main images first. The first image on each product matters most.
- Alt text before file names. Alt text can be edited in place. Renaming files means re-uploading, so save that for new products and your most important pages.
For large catalogues, alt text can also be updated in bulk through the product CSV export and import, which includes an image alt text column. Test with a small batch first.
Make It a Habit
The easiest way to keep image SEO under control is to build it into your product upload process. A short checklist for whoever adds products, covering size, compression, file name and alt text, takes a couple of extra minutes per product and saves hours of clean-up later. It is the kind of process we set up as part of our e-commerce SEO service.
FAQs
Does alt text help my Shopify products rank?
It helps Google understand your images, which matters most for image search, and adds a little context to the page. Its biggest benefit is accessibility for shoppers who use screen readers.
Do I need an image compression app?
Not usually. Compressing images before upload and letting Shopify's CDN serve optimised formats covers most needs. An app can help if many people upload images without a set process.
Should every image have alt text?
Every meaningful image should. Decorative images that add no information can be left without descriptive alt text.
Can I check whether my images have alt text without opening each product?
A product CSV export shows alt text for every image. For a single page, our free SEO tools help you check on-page elements quickly. If you are comparing agencies for this kind of ongoing work, see how Shopify SEO providers compare.
Want Your Product Images Checked?
Images are often the quickest speed win on a Shopify store, and alt text one of the most neglected basics. Request a free SEO audit and we will show you which images are slowing your pages and which are missing descriptions.
- image seo
- alt text
- page speed
- product photos
- shopify seo
Have a question about this for your own site?
A 15-minute call is usually enough to tell whether it applies to you and what to do first.


