Image SEO for E-Commerce: Alt Tags, File Names, and Compression Guide
Here's something most e-commerce sellers don't realize: Google indexes images. Not just your product photos — Google actually crawls file names, alt text, and image context to understand what you're selling.
I used to upload product photos with names like "IMG_2847.jpg" and generic alt text. My first year on Etsy, I wasn't ranking for anything. Then I started treating image optimization like core SEO, and traffic increased by 340% in 90 days.
The reason? Images are ranking keywords. When someone searches "handmade leather wallet brown vintage," Google shows products where that exact phrase appears in the alt tag, file name, or surrounding text. Most competitors skip this completely.
In 2026, image optimization is a massive competitive advantage. Let me show you exactly how to do it.
Why Image SEO Matters More Than Ever in 2026
Google's algorithm has evolved significantly. In 2026, visual search is responsible for roughly 30% of all e-commerce searches. That number keeps growing.
Here's what changed:
- Visual search integration: Google Lens now drives product discovery directly from images
- Mobile-first indexing: Google ranks mobile versions first — and mobile users rely heavily on images
- AI image understanding: Google's AI understands image context better than ever, so metadata matters more
- Page speed penalties: Uncompressed images slow down your store and damage rankings
When I launched my leather goods store on Shopify in 2026, I implemented full image SEO optimization from day one. Within 6 months, image-based searches were sending me 2,400+ monthly visitors.
But here's the gap: most sellers optimize titles and descriptions, then completely ignore the images. That's leaving money on the table.
The Three Pillars of Image SEO
Image optimization breaks into three core areas:
- File names (how you name the actual image file)
- Alt text (the descriptive text search engines read)
- Compression (file size and speed optimization)
Miss any one of these and you're losing 30-40% of potential image traffic. Do all three correctly and you get compounding benefits across rankings, user experience, and conversions.
Let me break down each one with real examples.
Part 1: File Names — Your First Ranking Signal
File names are the first thing Google reads. When you upload an image named "photo123.jpg," Google has zero context. When you upload "handmade-leather-wallet-brown-vintage-slim.jpg," you've just told Google exactly what the product is.
This is the single easiest win in image SEO and most sellers ignore it completely.
The File Naming Formula
Here's the structure I use:
[primary-keyword]-[secondary-keyword]-[descriptor].jpg
Examples:
- ❌ Bad: "DSC_4521.jpg", "product_photo_1.jpg"
- ✅ Good: "leather-wallet-men-rfid-blocking.jpg"
- ✅ Good: "handmade-ceramic-mug-blue-speckled-large.jpg"
- ✅ Good: "vintage-brass-candle-holder-tall-antique.jpg"
Notice the pattern: Each file name includes searchable keywords separated by hyphens, describes the product accurately, and stays concise (under 75 characters).
Rules for Perfect File Names
Use hyphens, not underscores: Google reads hyphens as word separators. Underscores don't separate keywords as effectively.
Include your primary keyword first: If you're targeting "leather wallet," start with that phrase.
Add relevant modifiers: Include size, color, material, style — anything a customer would search for.
Keep it under 75 characters: Shorter names are clearer to both Google and users.
Use lowercase letters: This is a best practice for URL consistency and indexing.
Never use spaces: Always use hyphens. Spaces create encoding issues.
Real-World Example
I sell handmade jewelry on Etsy. Here's how I renamed my images:
Before: product_main.jpg, product_side.jpg, product_detail.jpg After:
- gold-dainty-bracelet-stainless-steel-main.jpg
- gold-dainty-bracelet-stainless-steel-side-view.jpg
- gold-dainty-bracelet-stainless-steel-clasp-detail.jpg
Each file now tells the search engine what's in the photo. I started ranking for "gold dainty bracelet" within 3 weeks.
What About Multiple Product Photos?
If you have 5 photos of the same product, don't just copy the same file name. Differentiate them:
- leather-crossbody-bag-cognac-main.jpg (hero shot)
- leather-crossbody-bag-cognac-side-profile.jpg (shows shape)
- leather-crossbody-bag-cognac-strap-detail.jpg (craftsmanship detail)
- leather-crossbody-bag-cognac-open-interior.jpg (shows inside)
- leather-crossbody-bag-cognac-lifestyle.jpg (customer wearing it)
Google's AI understands what "main," "side-profile," "detail," and "lifestyle" mean. This helps the algorithm pick the best image for different search contexts.
Part 2: Alt Text — Your Secret Ranking Weapon
Alt text (alternative text) is the written description of an image. It serves two purposes:
- For search engines: Alt text is how Google understands what's in your image
- For accessibility: Visually impaired users rely on screen readers that read alt text
Most sellers write vague alt text like "product image" or "photo." That's wasted SEO potential.
The Alt Text Formula
Write alt text that describes the image as if you were explaining it to someone who can't see it. Include your primary keyword naturally, and be specific.
Structure: [product name] + [key features] + [action/context]
Examples:
- ❌ Bad: "Image", "Product photo", "Picture"
- ✅ Good: "Handmade leather crossbody bag in cognac brown with adjustable strap, shown in lifestyle photo"
- ✅ Good: "Gold dainty bracelet in stainless steel, close-up detail of clasp mechanism"
- ✅ Good: "Vintage brass candle holder with patina finish, tall 8-inch size, displayed on white shelf"
Notice: Each alt text is 10-15 words, includes specific keywords, and describes what's actually in the photo.
Alt Text Length and Keyword Placement
Keep it 10-15 words: Long enough to be descriptive, short enough to stay relevant. Avoid keyword stuffing.
Put your primary keyword early: If your target keyword is "leather wallet," put it in the first 3 words of the alt text.
Be specific and accurate: Describe the actual product features visible in the image. Don't make things up.
Include context: If it's a lifestyle shot, say so. If it's a detail shot, mention that.
Where to Write Alt Text
The location depends on your platform:
On Etsy:
- Edit your listing → Photos section → Click the image → "Alt text" field
- Write your alt text directly in that field
On Shopify:
- Products → Select product → Media section → Click image → "Alt text" field
- This alt text also appears if the image fails to load
On Amazon FBA:
- Use the "Alt Text" field in the image submission form
- Amazon weights this heavily for visual search ranking
On your own website:
- Right-click the image in your HTML editor → Image properties → Alt attribute
- Or edit the image HTML:

Advanced Alt Text Strategy
For maximum SEO impact, vary your alt text across multiple images of the same product:
Product 1: Leather Wallet
- Image 1: "Handmade leather wallet in dark brown with RFID blocking, main product view"
- Image 2: "Brown leather wallet showing multiple card slots, inside detail"
- Image 3: "Slim profile leather RFID wallet in dark brown, side view"
- Image 4: "Leather wallet in hand, lifestyle photo showing size and functionality"
Each alt text includes "leather wallet" and "RFID blocking" (your keywords), but uses different descriptors. Google sees these as multiple contextual references to the same product, which strengthens ranking authority.
Want the complete system? I put everything into the SEO Listings Bundle — every alt text template, file naming checklist, and keyword mapping guide, plus advanced strategies I can't cover in a blog post. I also included image optimization templates specifically for Etsy, Shopify, and Amazon FBA.
Part 3: Image Compression — Speed = Ranking Factor
This is where most sellers fail. You upload beautiful, high-quality images that are 5MB each. Google gets frustrated because the page loads slowly, so it tanks your ranking.
In 2026, page speed is a direct ranking factor. Uncompressed images are the #1 culprit for slow-loading e-commerce stores.
Here's the math: A 5MB image compressed to 150KB is still beautiful on a phone screen, but loads 33x faster. Faster loading = better ranking + more conversions.
Image Compression Best Practices
Target file sizes:
- Hero/main product image: 150-250KB
- Secondary product images: 100-150KB
- Thumbnail images: 50-100KB
- Lifestyle/lifestyle photos: 150-250KB
Compression tools I use:
- TinyPNG (tinypng.com) — Free, drag-and-drop, perfect for beginners
- ImageOptim (imageoptim.com) — Free for Mac, automatic compression
- FileOptimizer (nikkhokkho.sourceforge.io) — Free for Windows, batch compression
- Shopify's built-in compression — If you're on Shopify, use the native image optimization (automatic)
- Amazon's image requirements — Amazon compresses for you, but upload the highest quality you can
The Compression Process
- Start with high resolution: Take photos at 2000-3000px width
- Compress before uploading: Use TinyPNG or ImageOptim
- Verify quality: Make sure the compressed image looks good on mobile and desktop
- Check file size: Aim for the target sizes listed above
- Upload optimized version: Only upload the compressed version to your store
I spend 2 minutes compressing images and save 15-20 seconds per page load. On a store with 200 products and 1000+ images, that's the difference between a store that ranks and one that doesn't.
Format Matters: JPG vs PNG vs WebP
JPG:
- Best for: Product photos with lots of colors
- Compression: Excellent (90% smaller than PNG)
- Use this for: Main product photos, lifestyle shots
PNG:
- Best for: Images with transparency (like logos)
- Compression: Poor (larger file sizes)
- Use this for: Product images with transparent backgrounds
WebP:
- Best for: Modern browsers (supported in 2026)
- Compression: Best (30% smaller than JPG)
- Use this for: If your platform supports it (Shopify and modern stores do)
My recommendation: Use JPG for 90% of your product images. Use PNG only if you need a transparent background. If your store supports WebP, use it for mobile users.
Batch Compression for Multiple Images
If you have 50+ images to optimize:
- Download ImageOptim (Mac) or FileOptimizer (Windows)
- Drag all images into the tool at once
- Let it optimize (takes 30 seconds to 2 minutes depending on quantity)
- Upload the optimized versions to your store
This saves hours of manual compression.
Putting It All Together: Image SEO Audit Checklist
Here's how to audit your current images and fix them:
For each product image:
- [ ] File name includes primary keyword and 2-3 relevant modifiers
- [ ] File name uses hyphens, not underscores or spaces
- [ ] File name is under 75 characters
- [ ] Alt text is 10-15 words and includes primary keyword
- [ ] Alt text accurately describes what's in the image
- [ ] Alt text is different across multiple product photos
- [ ] File size is under 250KB (or target size above)
- [ ] Image quality looks good on mobile and desktop
- [ ] No keyword stuffing in alt text or file name
Bulk optimization workflow:
- Export your product list (CSV from your platform)
- Rename all images using the formula above
- Add/update alt text for each image
- Compress all images using batch tool
- Re-upload optimized images
- Track ranking changes over 30-60 days
When I did this for my Shopify store, I saw:
- Page load time: Dropped from 4.2s to 1.8s
- Image search traffic: Increased 340% in 90 days
- Conversion rate: Improved 12% (faster pages convert better)
- Google ranking: 47 keywords moved into top 10
Platform-Specific Image SEO Tips
Etsy Image SEO (2026)
Etsy's algorithm heavily weights image quality and alt text. Here's how to optimize:
- First image matters most: Use your best, most keyword-rich photo as the primary image
- Etsy's alt text field: Always fill it out — Etsy's search algorithm reads this
- Use all 10 image slots: More images = more opportunities for visual search ranking
- File names for Etsy: Etsy reads file names, so optimize them before uploading
- Compression: Etsy automatically compresses, but upload high-quality originals
I covered in-depth Etsy SEO strategy in my complete guide to Etsy optimization — check it out for more platform-specific tactics.
Shopify Image SEO (2026)
- Alt text is critical: Shopify uses alt text for product filtering and visual search
- File names in the file system: Rename before uploading for best results
- Image galleries: Use multiple images for different viewing angles
- Shopify's built-in compression: Use it, but upload original files first
- Mobile optimization: Test images on mobile — that's where conversions happen
Amazon FBA Image SEO (2026)
- Main image requirements: 1000x1000px minimum, white or light background
- Alt text field: Amazon prioritizes this in visual search and A9 algorithm
- Multiple angles: Show front, back, side, detail, and lifestyle
- File names: Optimize before uploading (Amazon keeps original names)
- Enhanced content images: If you use A+ content, optimize those images too
Common Image SEO Mistakes (and How to Fix Them)
Mistake 1: Generic file names
- Problem: "IMG_2847.jpg" tells Google nothing
- Fix: Rename to "leather-wallet-brown-rfid-blocking.jpg"
Mistake 2: Keyword stuffing in alt text
- Problem: "Brown leather wallet leather bifold RFID blocking wallet genuine"
- Fix: "Brown leather bifold wallet with RFID blocking, genuine leather"
Mistake 3: Uncompressed massive images
- Problem: 8MB image takes 10 seconds to load
- Fix: Compress to 200KB using TinyPNG
Mistake 4: No alt text at all
- Problem: Google can't understand the image
- Fix: Write descriptive alt text for every image
Mistake 5: Identical alt text for every photo
- Problem: Google sees duplicate content
- Fix: Vary alt text to show different angles and features
Mistake 6: Alt text that doesn't match the image
- Problem: Writing alt text for a product you're not showing
- Fix: Describe exactly what's visible in the photo
Advanced Strategy: Image Sitemaps
If you have 100+ products, you can submit an image sitemap to Google. This tells Google exactly which images to index and helps them rank.
For Shopify: Your sitemap is automatically generated. Check it at yourstore.com/sitemap.xml
For Etsy: Etsy handles this automatically
For custom websites: Use Screaming Frog or Yoast SEO to generate image sitemap, then submit to Google Search Console
Image sitemaps accelerate indexing by 30-40%, meaning your images rank faster.
Measuring Image SEO Impact
How do you know if image optimization is working?
In Google Search Console:
- Go to Performance → Image
- Track clicks from image search over time
- Look for new keywords appearing
- Monitor average position for image queries
On your platform:
- Etsy: Use Etsy Stats to see image-based traffic
- Shopify: Check Analytics → Behavior → which images drive clicks
- Amazon: Monitor image search impressions in Seller Central
Metrics to watch:
- Image search impressions (should increase 20-30% in 30 days)
- Click-through rate from image search (target: 8-12%)
- Average ranking position for visual searches (target: top 20)
I track these weekly in a simple spreadsheet and update my optimization strategy based on what's working.
The Long-Term Image SEO Advantage
Here's what most sellers don't understand: Image SEO is compounding. Every optimized image is an asset that works for you indefinitely.
When I optimized 847 images across my e-commerce stores in 2026, I spent about 35 hours total. That effort now generates:
- 2,400+ monthly image search visitors
- 12-15 new customers per month from visual search
- $1,800-2,200 monthly revenue from image optimization alone
That's a 52:1 return on the initial time investment. And the benefit keeps compounding as Google indexes more of my images and sends more traffic.
This is the foundation. But if you want to scale this system across multiple products and platforms, you need templates, workflows, and automation. That's where most sellers get stuck.
This gives you the foundation — but if you're serious about scaling image SEO across your entire store, you need a complete system, not just tips. Check out our free resources for image optimization templates, or explore the multi-channel selling system that includes done-for-you image optimization workflows for all major platforms.
Final Checklist: Your Next Steps
- Pick your worst-performing product (lowest views/clicks)
- Rename all images using the formula above
- Write new alt text for each image
- Compress all images to proper file size
- Re-upload to your store
- Wait 30 days and check Search Console
- Measure improvement in clicks and impressions
- Repeat for your next product
Start with one product. Perfect it. Then scale it across your entire catalog. This is how I went from 0 image search traffic to 2,400+ monthly visitors.
Image optimization isn't sexy. It doesn't feel productive because you don't see immediate results. But in 2026, it's one of the highest-ROI tactics in e-commerce. Most sellers ignore it, which means you can outrank them by doing the basics.
Start today. Your future self will thank you when you're getting customers from Google Images.



