Shopify product images: the size to upload, the limits, and what Shopify does for you

For square product photos, Shopify recommends 2048 x 2048 px. A product image can be up to 5000 x 5000 px, or 25 megapixels, and must be under 20 MB. Upload one sharp file per photo with the same aspect ratio across the catalog. Shopify creates the smaller sizes and serves modern formats on its own.

Three overlapping flat rectangles of different sizes with crop marks at their corners and a small lime green dot, on a pale lilac background.

The size to upload

For a square product photo, 2048 x 2048 px is the size Shopify says usually displays best. It is large enough for a sharp image on a product page and for zoom, and small enough to handle easily.

If your photos are not square, keep the long side around the same length. A portrait photo for apparel at 1600 x 2000 px, or 2048 x 2560 px, works the same way.

You upload one file per photo. You do not need to prepare a small version for the collection page and a large one for the product page. Shopify does that part.

The limits Shopify sets

  • A product or collection image can be up to 5000 x 5000 px, or 25 megapixels.
  • The file must be smaller than 20 MB.
  • Images you upload elsewhere, for example for theme sections, have a lower cap of 20 megapixels and 20 MB.

Megapixels are width times height, divided by one million. A photo straight from a modern camera can exceed the limit even when the file weighs less than 20 MB. If Shopify tells you a file is too large and it is under 20 MB, the pixel dimensions are the problem. Export it smaller.

The format

Use JPEG for photographs. Use PNG when you need a transparent background, or for flat graphics such as logos and icons.

Shopify also accepts WebP, HEIC, GIF, SVG, TIFF and BMP. TIFF and BMP files are converted to JPEG or PNG when you upload them.

One more detail. Color profiles embedded in a file are removed when the image is shown on the store, and browsers then assume sRGB. If a product color looks different online than in your editing program, export the photo in sRGB before uploading.

What Shopify does on its own

  • It keeps your original. Images are not compressed when you upload them.
  • It creates the sizes. When you add an image, smaller versions are generated for the different places it appears, so a collection card does not load the product page file.
  • It chooses the format per visitor. If the browser supports WebP or AVIF, the image may be delivered in one of those formats, whatever you uploaded.
  • It may compress the image when the theme serves it.

Shopify’s own advice is that you do not need to compress images by hand before uploading, and that you should upload the best quality you have. We agree, with one condition: the theme has to ask for the right size.

What the theme has to do

Shopify can deliver a 400 px wide version of a photo, but only if the theme requests it. A theme that asks for the 2048 px file to fill a 180 px thumbnail makes the phone download far more than it shows.

When we audit a store’s theme, these are the things we check on images:

  • each image is requested at the size it is displayed, with larger versions offered only to larger screens,
  • images below the first screen load when the visitor scrolls to them,
  • the first product photo, the one the visitor sees first, loads with priority,
  • every image has its width and height set, so the page does not jump while it loads.

None of this depends on how you export your photos. It is theme code, and it is one of the parts we review in a Shopify audit.

Aspect ratio and consistency across a collection

The mistake we see most on collection pages is a mix of aspect ratios. One product shot square, the next in portrait, a third in landscape, and the grid looks uneven or crops products in odd places.

Pick one ratio for the main image of every product and keep it. Square is the safe choice. Portrait, 4:5 for example, gives apparel more room. A theme can crop everything to the same shape, but then it decides what gets cut. If you shoot and export in one ratio, you decide.

The same goes for the rest of the frame: the same background, the same margin around the product, the same angle for the first photo. A catalog shot that way looks designed before any design work starts.

If a few old photos do not match, the media editor in the Shopify admin can crop them to the same ratio.

Alt text

Alt text describes the image. Screen readers read it to customers who cannot see the photo, and it is shown if the image fails to load. Shopify allows up to 512 characters and recommends 125 or fewer.

Write what is in the picture, in plain words: “Navy wool overshirt, front view, worn open over a white t-shirt.” Do not repeat the product title on every image, and do not fill it with keywords. If a product has six photos, each one gets its own description.

What images do to speed on a phone

On a product page the largest thing on the screen is almost always the first photo. How quickly it appears is what Google measures as Largest Contentful Paint, and it is what your customer feels as “the page opened.”

A phone on mobile data downloads more slowly than the office wifi where the store gets tested. A collection page full of product cards, each loading an image larger than needed, adds up fast. So does a slider with many banners, where the visitor sees one.

Heavy images are one of the four causes we find most often on slow stores, next to too many scripts, too many apps and the theme code. Tacchettee’s store now opens 3 times faster. Before, people opening Tacchettee’s store on a phone waited more than 4 seconds to see the page. Now it’s just over one.

Home page of the Tacchettee Shopify store at tacchettee.it: the Sports icons collection banner

Case study

Tacchettee

A redesign and performance optimization of the Shopify store of Tacchettee, an Italian apparel brand inspired by football supporter culture.

  • Store design & build

A short checklist before you upload

  • One ratio for every main product photo.
  • Around 2048 px on the long side, never above 5000 x 5000 px or 20 MB.
  • JPEG for photos, PNG only where you need transparency.
  • sRGB color.
  • Alt text on every image, 125 characters or fewer.
  • Fewer, better photos on pages that show many products at once.

The rest is the theme’s job. If your photos follow this list and the store is still slow on a phone, the cause is in how the theme loads them, or elsewhere on the page.

Keep reading

Tell us what you are working on

Book a 15-minute call, or write to us.

Book a call (opens in a new tab)