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.
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:
| Rule | Shopify's number |
|---|---|
| Recommended size | 2048 x 2048 px for square product images |
| File size | Under 20 MB |
| Largest dimensions | 5000 x 5000 px or 25 megapixels on one page, 20 megapixels on the other |
| Shape | Between 100:1 and 1:100 |
| Best formats | PNG, 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.
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:
- In your Shopify admin, open the product, go to the image, and click its thumbnail to open the editor.
- To make it square, select Crop and transform, choose Square, then Apply.
- 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.
- 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:
- 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.
- 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.
- 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.
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.