Shopify product image size: the numbers that matter

Shopify recommends 2048 × 2048 px for square product images, allows up to 5000 × 5000 px (25 megapixels) and 20 MB, and picks the delivery format for you.

By
Picture Optimizer team
Published
Type
How-to

Shopify recommends 2048 × 2048 px for square product images, according to its help center. Images can be any size up to 5000 × 5000 px (or 25 megapixels) and must be under 20 MB. Use one aspect ratio across your catalog so product grids line up, and let Shopify pick the delivery format: it serves each shopper the best format their browser supports.

Key takeaways

  • Target: 2048 × 2048 px for square images.
  • Limits: 5000 × 5000 px or 25 megapixels, and under 20 MB.
  • Format: Shopify recommends PNG, then JPEG. WebP, HEIC, TIFF, BMP, GIF and SVG are accepted; AVIF isn't listed.
  • Consistency: one aspect ratio per collection keeps grids even.
  • Alt text: up to 512 characters, but 125 or fewer recommended.

The numbers from Shopify's help center

What

Shopify's guidance

Recommended size (square)

2048 × 2048 px "usually displays best"

Maximum dimensions

5000 × 5000 px, or 25 megapixels

Maximum file size

Smaller than 20 MB

Best file types

PNG, followed by JPEG

Also accepted

TIFF, BMP, GIF, SVG, HEIC, WebP

Aspect ratio

Use a consistent ratio so images display the same size

Alt text

Up to 512 characters; 125 or fewer recommended

Checked on Shopify's help center in October 2026. Shopify updates its documentation, so confirm the limits before a large catalog upload.

Why 2048 px?

Shopify doesn't spell out the reasoning, but a 2048 px square (about 4.2 megapixels) leaves room for zoom and high-density screens while staying far under the 25 megapixel cap. Photos from modern cameras and phones are often much larger, so resizing to 2048 px before upload also saves you upload time and storage, even though Shopify will create smaller versions for display.

If your products are not square, keep the long side around 2048 px and use the same ratio for every product in a collection.

Which aspect ratio?

Shopify's guidance is about consistency rather than a single ratio: images display at the same size when they share an aspect ratio. Square (1:1) is the simplest choice because it works in most themes' grids. If your theme is designed for portrait images, use its ratio everywhere instead. Mixing ratios is what makes grids look uneven.

Do you need to compress images for Shopify?

Shopify's image service picks the best format for each browser, so you don't need to convert to WebP yourself, and AVIF isn't an accepted upload type anyway. What still helps:

  • Resize before upload so you are not storing and processing oversized originals.
  • Remove camera metadata you don't want to publish, such as GPS location.
  • Upload a clean master. A high-quality JPEG (or PNG for graphics and transparent backgrounds) at 2048 px gives Shopify a good source to work from. Avoid uploading an already heavily compressed file, since every later conversion starts from its artifacts.

Name and describe each image

File names. Rename IMG_4382.jpg to something like grey-leather-sectional-sofa-with-ottoman.jpg before upload. Google's image guidance says a file name gives it only light clues about the subject, but it's free to do and makes your own media easier to manage.

Alt text. In the Shopify admin, open a product, click a media item and choose "Add alt text". Shopify notes alt text is shown when media can't load and is read by assistive technology. Describe what distinguishes this image from the product's other photos: the color, the angle, the detail shown.

  • Weak: alt="sofa"
  • Better: alt="Grey leather sectional sofa with matching ottoman, front view"
  • For a variant image: alt="Sectional sofa in charcoal fabric, close-up of stitching"

Common mistakes on Shopify

  • Mixing ratios in one collection. Shopify's own guidance is that a consistent aspect ratio is what makes images display at the same size.
  • Uploading screenshots of products or images with baked-in text. Text inside images can't be read by screen readers or search, and it often looks blurry when resized.
  • Leaving alt text empty on variant images. Shoppers using screen readers need to know which color or angle each image shows.
  • Uploading heavily compressed files. A file that has already lost detail can't get it back when Shopify serves it in a different format.
  • Huge originals "just in case". Anything far above 2048 px adds upload time without improving what customers see in most themes.

A quick workflow for a new product

  1. Shoot on a plain, consistent background, at your catalog's chosen ratio.
  2. Resize to 2048 px on the long side.
  3. Export as high-quality JPEG (PNG only if you need transparency or exact pixels).
  4. Strip GPS and camera metadata.
  5. Rename the file descriptively.
  6. Upload, then add alt text to each media item.

Steps 2 to 5 in one pass

Picture Optimizer doesn't connect to Shopify, but it can prepare the files you upload. It resizes and compresses product photos and strips metadata; from Starter up it also writes a descriptive file name and alt text you can paste into Shopify. The Free plan exports JPG or AVIF for your first 15 photos, once (use JPG for Shopify); note that Free resizes photos over 3 MB to 1,920 px, a little under Shopify's 2048 px recommendation, while Starter keeps originals up to 5 MB. PNG output is on Pro. See how it works for stores on the e-commerce stores page, or the e-commerce image optimization feature page.

Keep reading

Sources

Questions

Short answers to what people ask about this.

Shopify's help center says 2048 × 2048 px usually displays best for square product images. Images can be up to 5000 × 5000 px or 25 megapixels.