Shopify Product Image Size and Compression Targets
Upload square product photos at 2048 x 2048 pixels, saved as JPEG at around 80 to 85 quality, and aim for 200 to 500 KB per file. That's the practical answer for most Shopify stores. Shopify accepts far bigger files, up to 5000 x 5000 px and 20 MB according to its help pages, but going beyond 2048 rarely buys anything a shopper can see.
The rest of this page explains why, and what changes for banners, collection images and transparent files.
The short answer in numbers
| Image | Upload size | Format | File size target |
|---|---|---|---|
| Product photo, square | 2048 x 2048 px | JPEG | 200 to 500 KB |
| Product photo, portrait (clothing) | 1536 x 2048 px (3:4) or 1638 x 2048 px (4:5) | JPEG | 200 to 450 KB |
| Collection image | same ratio as your product photos, 1024 to 2048 px | JPEG | under 300 KB |
| Wide banner or slideshow | 2400 to 3000 px wide, height set by the theme | JPEG | under 600 KB |
| Logo | about twice its displayed width | PNG or SVG | under 50 KB |
Two limits sit behind the table. The hard ceiling is 5000 x 5000 px (25 megapixels) and 20 MB per file. The soft floor is 800 x 800 px, below which zoom on the product page generally has nothing extra to show.
What Shopify does to your file after upload
This part surprises people. The file you upload is not the file your customer downloads.
Shopify stores your original and its image CDN produces smaller versions on request. A theme asks for the width it needs (a 400 px thumbnail in a grid, 1000 px on the product page, more on a high-density phone screen), and the CDN resizes, compresses again and usually serves WebP or AVIF to browsers that accept them. So a 2048 px original might reach a phone as a 60 KB WebP without you doing anything.
That has two consequences. First, uploading WebP yourself isn't necessary; a good JPEG is a fine source and Shopify handles the conversion. Second, and here's the common mistake, crushing a photo to quality 40 before upload doesn't make the store faster. It just means Shopify recompresses an already damaged image, and the blocky edges get worse on the second pass.
Give it a clean original and let the CDN do the delivery work.
Why bother with a size target at all, then? Because the original still gets used. Zoom and lightbox views pull large versions, some apps and sales channels (marketplaces, feeds, social shops) fetch the full file, and a library of 8 MB images is slow to upload and awkward to manage on a weak connection. A sensible original keeps all of that quick.
Why 2048 px and not 5000
A product image column on desktop is typically somewhere around 600 to 1000 px wide. On a high-density screen the browser wants up to double that. So 2048 px covers the normal view at full sharpness and still leaves room for roughly 2x zoom.
A 5000 px square has about six times as many pixels as a 2048 px one. As a JPEG at quality 82 that's commonly 2 to 6 MB instead of 300 KB or so, depending on how busy the picture is. For a mug on a white background nobody will ever see the difference. I'd only go larger, say 3000 to 4000 px, for products where people really do inspect detail: jewellery, fabric weave, printed artwork, watch dials.
Going the other way is riskier. A 600 px upload looks soft on the product page and can't zoom, and no setting in the theme brings that detail back.
Pick one aspect ratio for the whole catalogue
Consistency matters more than the exact pixel count. If half your photos are square and half are portrait, the collection grid either crops some of them or leaves uneven gaps, and the store looks unfinished even when each photo is good.
Square (1:1) is the safe default for most goods. Portrait, 3:4 or 4:5, suits clothing and tall products because more of the item fits on a phone screen. Choose one and stick to it. Keep the product at about 80 to 85% of the frame so there's breathing room and thumbnails don't clip the edges, and crop every photo to the same ratio with the Image Cropper before you resize.
Backgrounds deserve the same discipline. If the store theme is white, use true white (#FFFFFF) behind the product so the photo edge disappears into the page. An off-white of 245 instead of 255 shows up as a faint grey box around every item. The Background Remover will cut a product out in the browser if the original backdrop isn't clean enough to fix by brightening.
JPEG, PNG or WebP for the upload?
JPEG for photographs. Nearly always.
PNG is lossless, which sounds better and is, for logos, icons and flat graphics. For a photo it's a poor trade: a 2048 px product photo saved as PNG is often 4 to 8 MB, ten times or more the JPEG, with no visible gain once Shopify has re-encoded it for delivery anyway. Use PNG when you need real transparency (a product floating over a coloured section, for instance) and for nothing else photographic.
WebP is accepted and works well if your editing tool exports it; a WebP at quality 80 is usually 25 to 35% smaller than the matching JPEG. It's optional, though. If your photos arrive from a phone as HEIC, convert them to JPEG first with the Format Converter so every app in your workflow can open them.
Hitting the compression target, step by step
The order matters, because resizing after compressing wastes quality.
- Crop to your catalogue ratio.
- Resize so the longest side is 2048 px with the Image Resizer. Never enlarge a smaller photo to reach 2048; upload it at its real size.
- Export as JPEG at quality 82 using the Image Compressor.
- Check the result. Between 200 and 500 KB, you're done.
- If it's above 500 KB, lower quality to about 75 before you think about reducing pixels.
Photos with plain backgrounds land at the low end, often 150 to 250 KB. Busy lifestyle shots with grass, fabric or wood grain sit higher and can reach 600 KB at the same settings. That's normal. Detail costs bytes, and a slightly heavier lifestyle image is better than a smeared one.
If a marketplace feed or an app gives you a strict cap instead of a range (some ask for files under 1 MB, for example), Compress to a File Size lets you type the limit in KB and works the quality out for you. It's free for up to five photos per job.
File names and alt text
Rename files before uploading. Shopify keeps the file name in the image URL, so blue-ceramic-mug-350ml-front.jpg tells a search engine something and IMG_4471.jpg doesn't. Lowercase, hyphens, no spaces. Keep names short, and put the product first and the angle last.
Alt text is added in the Shopify admin, per image. Describe what's in the picture in a short sentence (product, colour, angle). It helps screen-reader users first, and image search second.
What I'd actually upload
For a new store with ordinary products: square, 2048 px, JPEG at 82, white background at true white, descriptive file names. I wouldn't spend time on WebP exports or 5000 px masters unless zoom detail sells the product.
That covers most catalogues.
For an existing store with heavy images, I wouldn't re-upload everything at once either. Start with the best sellers and the collection pages that get traffic, since that's where page weight is felt, and replace the rest as products are updated.
When there are dozens of photos to prepare, doing them one at a time gets tedious. Product Photo Studio is the batch route: resize, add padding, compress and download a named ZIP in one pass. All of it runs in your browser, so the photos aren't uploaded anywhere. Batch tools are part of Premium (EUR 4.99 a month or EUR 49 lifetime), and the single-image tools above are free without an account, with a shared daily cap on some exports. Try two or three photos by hand first, look at them on your product page, and then process the rest the same way.
Frequently asked questions
What is the best image size for Shopify products?
2048 x 2048 px for square photos is the size Shopify itself recommends and it suits most stores. It's sharp on high-density screens and leaves room for zoom. Use the same ratio for every product so collection grids line up.
What is the maximum image size Shopify allows?
Shopify's help pages list a limit of 5000 x 5000 px (25 megapixels) and 20 MB per file. Files over either limit are rejected at upload. Very few stores need to go near that; an image that large mostly adds upload time.
Does Shopify compress images automatically?
Yes. Shopify keeps your original and its CDN serves resized, recompressed versions, typically as WebP or AVIF where the browser supports them. That's why a clean, moderately compressed original works better than one you've squeezed hard yourself.
Should Shopify product photos be JPEG or PNG?
JPEG for photographs, because the files are roughly a tenth the size of PNG at the same dimensions with no visible difference after delivery. Keep PNG for logos, flat graphics and product cut-outs that need a transparent background.
Why do my Shopify product images look blurry?
Usually the original is too small (under about 1000 px) and the theme is stretching it, or it was compressed heavily before upload and then compressed again by Shopify. Re-export from the original photo at 2048 px and quality 80 or higher and replace the file.