How to Resize Images for Shopify

Shopify suggests 2048 x 2048 for square product images. Its editor can resize after upload, but a file over the limits has to be fixed first.

Flat vector illustration in charcoal grey of a home studio at night: hands in the foreground hold a phone whose screen shows a coffee cup on white paper, in front of two desks with office chairs. A sneaker and an amber desk lamp sit on the left desk; a roll of tape, a laptop showing a grid of product thumbnails and a tissue box sit on the right, with shelves of folded clothes, a pegboard, a window onto a city skyline and a potted plant behind.

To resize images for Shopify, crop each product photo to a square and resize it to 2048 x 2048 pixels, which Shopify says usually displays best for square product images, and keep the file under 20 MB. Making every photo the same shape helps keep your product grid even. Photos already in your store can be resized in Shopify's own media editor. A photo too big to upload has to be resized first: Resize Image does that in your browser, and the file is never uploaded anywhere.

What size should Shopify product images be?

Shopify's help pages Product media types and Uploading images set these numbers:

RuleShopify's number
Recommended size2048 x 2048 px for square product images
File sizeUnder 20 MB
Largest dimensions5000 x 5000 px or 25 megapixels on one page, 20 megapixels on the other
ShapeBetween 100:1 and 1:100
Best formatsPNG, then JPEG

The two pages disagree on the megapixel cap, and Shopify doesn't say which one wins. A megapixel count is width times height in millions of pixels. Stay at or under 20 megapixels and you pass both. Shopify's own example drops a 5000 x 5000 image (25 megapixels) to 4000 x 4000 (16 megapixels). A 2048 x 2048 photo is about 4.2 megapixels, well inside either limit. No page sets a minimum size.

The shape matters as much as the size. Shopify says your main product images need the same aspect ratio to display at the same size side by side. A catalogue that mixes square, portrait and landscape shots can look uneven in a collection grid, depending on your theme. What aspect ratio means explains the numbers.

Mixed shapes compared with one shape in a product grid Two product grids side by side. On the left, labelled mixed shapes, three product images are a square, a tall portrait and a wide landscape, so they sit at different sizes in the row. On the right, labelled all square, three product images are the same square shape and line up evenly. Mixed shapes Uneven row All square Even row

How to resize an image in Shopify's media editor

For a photo already in your store, these steps follow Shopify's Using the media editor:

  1. In your Shopify admin, open the product, go to the image, and click its thumbnail to open the editor.
  2. To make it square, select Crop and transform, choose Square, then Apply.
  3. Select Resize and type a width, such as 2048. Lock aspect ratio is on by default; leave it on, because Shopify warns that turning it off can distort the image.
  4. Select Done, then Save.

Saving can replace the original. To keep it, Shopify's Adding product media page says to pick Save as new from the Save dropdown instead.

Resize before you upload when the photo is too big

The media editor only works on images Shopify has accepted. A file of 20 MB or more can't be added, and neither can one past the megapixel cap, so it never reaches the editor. Fix those on your computer first:

  1. Open Crop to Square, drop in your photos, and drag the square box over the product. It crops at full resolution, and the same box is applied to every photo in a batch, each one kept square.
  2. Open Resize Image, drop in the square files, and type 2048 as the width. With "Lock aspect ratio" ticked, the height follows, so a square photo comes out 2048 x 2048.
  3. Download the results and upload them to Shopify. Several files come back as one zip, so unzip it first.

Both tools take up to 50 images at once, each up to 50MB. A JPG stays a JPG, re-saved at quality 0.92, and a PNG stays a PNG, which suits Shopify's preference for PNG. HEIC, GIF and a few other formats come back as PNG from Resize Image. TIFF files don't open in either tool, though Shopify accepts them. Resize Image will also enlarge a photo smaller than 2048 pixels if you ask it to, which adds pixels but no detail. Leave a small photo at its own size instead. Resizing without losing quality covers why.

Preparing an oversized product photo for Shopify Three boxes from left to right joined by lines. First, crop the photo to a square at full resolution. Second, resize it to 2048 pixels wide, which makes it 2048 by 2048. Third, upload it to Shopify, where it is now well under the 20 MB limit. 1. Crop to square Full resolution 2. Resize to 2048 2048 x 2048 px 3. Upload Under 20 MB

Do you need to compress images for Shopify?

Usually not. Shopify's Uploading images page says images aren't compressed when you upload them, and the copies your store serves may be compressed and delivered as WebP or AVIF, depending on the shopper's browser. A 2048 x 2048 file saved by Resize Image can't reach 20 MB, even as a PNG. Compression only matters if you upload a photo larger than 2048 x 2048 and it is still 20 MB or more. If it's also past the megapixel cap, resize it instead, because compressing doesn't lower the pixel count unless it also shrinks the dimensions. Compress Image takes JPG, PNG and WebP and has an optional target size in MB. On a PNG it lowers the number of colours rather than the encoder quality. If that alone can't reach the target, it shrinks the dimensions too, so check the width of the result. Optimizing images for a website covers page weight on sites that don't do this for you.

Next steps

For a clean white backdrop across the catalogue, see how to remove a product photo background. If the square crop is cutting off part of the product, cropping to square covers framing. For a whole shoot at once, read bulk resizing images.

FAQ

What is the best image size for Shopify?
For square product images, Shopify says 2048 x 2048 pixels usually displays best. Keep every main product image the same shape so they line up in collection grids.

Why won't my image upload to Shopify?
The usual reasons are a file of 20 MB or more, or dimensions past the megapixel cap. Shopify's pages give that cap as 25 megapixels on one page and 20 on another, so resize to 20 megapixels or less.

Does Shopify resize my images automatically?
Shopify says it creates different sizes of each image for different areas of your theme. Theme sections can also crop an image to fit their own shape, so crop your photos to one aspect ratio yourself to control what gets cut.

Should I upload PNG or JPG to Shopify?
Shopify lists PNG as the best file type for most product images, followed by JPEG. Both work, and both stay in their own format when you resize them in Resize Image.

← All resizing & cropping guides