Shopify Image Optimization Guide
E-commerceChoose source images, responsive sizes, and crops for Shopify.
For Shopify product photos, use a consistent crop and a source with enough detail for the theme’s zoom view. Shopify suggests 2048 × 2048 pixels for square products; this is guidance, not the upload ceiling. Use responsive theme output instead of sending the largest source to every screen.
Recommended Image Sizes
These are suggested design canvases, not maximum upload dimensions. The theme or publishing placement determines the final display.
| Image Type | Recommended Size | Aspect Ratio |
|---|---|---|
| product | 2048x2048 | 1:1 |
| collection | 1920x1080 | 16:9 |
| banner | 1920x600 | 16:5 |
| logo | 450x450 | 1:1 |
| slideshow | 1920x1080 | 16:9 |
| favicon | 32x32 | 1:1 |
| social sharing | 1200x628 | 1.91:1 |
| blog featured | 1920x1080 | 16:9 |
Platform Features
- ✓ Automatic delivery-format selection
- ✓ Theme-controlled responsive image requests
- ✓ Separate source detail for product zoom
Recommended Format
JPEG for photos; PNG when transparency is needed. Compare the final output at its displayed size.
Upload size guidance: Smaller than 20 MB for product and collection images
What size can Shopify accept?
Shopify currently documents product and collection images up to 5000 × 5000 pixels or 25 megapixels, with a file size smaller than 20 MB. A 2048-pixel square is its suggested starting point for square product photos. Theme layout and required zoom detail determine the source you need.
How should the theme deliver images?
Request useful widths through Shopify’s image transformations and describe the layout with responsive image markup. Check the downloaded source on mobile and desktop. Use the same aspect ratio across a collection so the product grid stays consistent.
Which images should load first?
Load the first visible product or hero image promptly and reserve its layout space. Defer images farther down the page and fetch large zoom images when requested. Inspect the real page rather than assuming the CDN corrects every theme issue.
Related Guides
The Complete Responsive Images Guide
Responsive images with srcset, sizes and picture: resolution switching, art direction, and the patterns that stop the browser guessing wrong.
Lazy Loading Implementation Strategies
Image lazy loading done right: the native loading attribute, Intersection Observer, placeholders, and the images you must never defer.
Image Optimization for Core Web Vitals
Fix LCP, CLS and INP problems caused by images: loading order, explicit dimensions, format choice, and the checks that prove it worked.
WebP Guide: Browser Support, Quality Settings and Transparency
WebP works in every current browser; Safari added it last, in version 14. Quality settings, lossless or lossy, transparency, animation and conversion.
Frequently Asked Questions
Is 2048 × 2048 a Shopify upload requirement?
No. It is Shopify’s suggested size for square product images. The documented upload constraints are separate, and your theme can use other aspect ratios.
Should I upload WebP or AVIF myself?
Use a high-quality source in a format Shopify accepts. Shopify can choose an appropriate delivery format for the visitor; inspect the actual response if format or transparency is important.