Two questions bring most people here: "what size should my Shopify images be?" and "why does Shopify say my image exceeds 20 megapixels?" Both have short answers. The longer answer, which is what actually makes a store look sharp and load fast, is about what your theme asks the Shopify CDN for, and that part is rarely explained. So I measured it.
The short answer
| Where the image goes | Upload this | Ratio | Why |
|---|---|---|---|
| Product photos | 2048 × 2048 px, JPG, under 1 MB | 1:1 | Shopify's own recommendation for square product images. Dawn's product gallery asks for up to 1946 px wide, so 2048 covers it with nothing wasted. |
| Collection images | 2048 × 2048 px, or 1600 × 2000 px | 1:1 or 4:5 | Match whatever ratio your product photos use, so the cards line up. |
| Homepage banner, hero, slideshow | 2560 × 1440 px, JPG, under 1 MB. 3840 × 2160 if you have it. | 16:9 | Dawn and Horizon both request up to 3840 px wide for full-width images. 2560 is sharp on almost every screen; 3840 is for 4K and retina at full width. |
| Mobile banner (where the theme has a separate slot) | 1080 × 1350 px or 1080 × 1920 px | 4:5 or 9:16 | A 16:9 banner shown on a phone gets cropped to a thin strip or zoomed in. A portrait version keeps the subject in frame. |
| Image with text, side-by-side sections | 1500 × 1500 px | 1:1 or 4:5 | Dawn asks for up to 1500 px (1800 for retina) in these sections. |
| Logo | PNG or SVG, at least twice the width it's shown at | any | Dawn's header logo setting tops out at 300 px wide, so a 600 px PNG stays crisp on retina. SVG is sharp at any size. |
| Favicon | 512 × 512 px PNG | 1:1 | Shopify scales it down to 32 × 32. Upload a square with a simple shape; detail disappears at that size. |
| Social sharing image | 1200 × 628 px JPG | 1.91:1 | Shopify's recommended size for the image that appears when the store is shared. |
| Blog post images | 1600 × 900 px JPG | 16:9 | Wide enough for the article header, light enough to load fast. |
If your theme isn't Dawn or Horizon, the ratios still hold. The pixel widths are a safe default for every theme I've measured, and the checker below will tell you how a specific file compares.
Shopify's limits, and the "exceeds 20 megapixels" error
From the Shopify Help Center, these are the rules for product, collection and theme images:
- File size: 20 MB maximum.
- Resolution: 25 megapixels maximum, which is 5000 × 5000 px for a square image.
- Aspect ratio: between 100:1 and 1:100.
- Formats: JPEG, PNG, WebP, HEIC and GIF through Files, and also TIFF, BMP and SVG as product media. Animated GIF and WebP are accepted too.
- File names can't end in
pico,icon,thumb,small,compact,medium,largeorgrande. Those are reserved size names, and an upload likesofa-large.jpgfails for no obvious reason.
The "image exceeds 20 megapixels" message is Shopify's older limit wording; it still appears in some parts of the admin and in bulk imports. Whichever number you're shown, the fix is the same: the photo is bigger than it will ever be displayed. A 24-megapixel camera shot (6000 × 4000) trips it every time. Resize the longest side to 4000 px or less and it goes through. For product photos, go straight to 2048 and skip the problem entirely.
What your theme actually asks for
Shopify never shows your upload as-is. The theme asks the CDN for the image at specific widths and the browser picks the one that fits the screen. These are the widths in the two themes Shopify ships today, read from their source code:
| Theme and section | Widths requested (px) | Largest |
|---|---|---|
| Dawn: image banner, slideshow | 375, 550, 750, 1100, 1500, 1780, 2000, 3000, 3840 | 3840 |
| Dawn: product gallery | 246, 493, 600, 713, 823, 990, 1100, 1206, 1346, 1426, 1646, 1946 | 1946 |
| Dawn: image with text | 165, 360, 535, 750, 1070, 1500 (up to 1800 for retina) | 1800 |
| Horizon: image blocks, slides | 832, 1200, 1600, 1920, 2560, 3840 | 3840 |
| Horizon: product cards (live store) | 300 to 1800 | 1800 |
Three things follow from this:
- Anything wider than 3840 px is wasted. No theme section asks for more. A 6000 px upload is stored, counted and never shown.
- Anything narrower than the largest request gets upscaled. A 1200 px product photo on a 1946 px request looks soft on a big screen. That's the "my images look blurry" complaint, and no app fixes it. Only a larger original does.
- 2048 and 2560 are the sweet spots. 2048 clears every product-gallery request. 2560 clears every banner request except full-width 4K, which most stores can ignore.
Shopify resizes and converts for you. It never shrinks your upload.
This is the part that saves money on apps. I took four product images from a client's store, uploaded as PNGs between 0.5 and 2.3 MB, and asked the CDN for them the way a modern browser does. Here's what came back:
| Uploaded | Full size, modern browser | At 720 px (phone card) | Saving |
|---|---|---|---|
| PNG, 1254 × 1254, 2,120 KB | WebP, 110 KB | WebP, 65 KB | 95% |
| PNG, 1254 × 1254, 2,295 KB | WebP, 143 KB | WebP, 73 KB | 94% |
| PNG, 1000 × 1000, 1,909 KB | WebP, 156 KB | WebP, 104 KB | 92% |
| PNG, 553 KB | WebP, 115 KB | WebP, 86 KB | 79% |
So the shopper never downloads your 2 MB PNG. Shopify converts it to WebP on the fly for any browser that accepts WebP (all current ones), and resizes it to the width the theme requested. In my test it served WebP, not AVIF, even when the browser offered both.
Two caveats. First, this only happens for images that go through the theme's image tags or the CDN's size parameters. Some apps and page builders link the original file directly, and then the shopper really does get the 2 MB PNG. Second, a browser that doesn't accept WebP gets the original format at the requested width, so the 720 px version of that 2.1 MB PNG was still 849 KB as a PNG. That's rare now, but it's a reason to upload JPG for photos regardless.
What this means in practice: you don't need an image compression app to make the storefront fast. The CDN already does the compression. What apps can still help with is bulk resizing, alt text and file names. Upload at the right dimensions and ratio, and the file size takes care of itself.
Ratio matters more than pixels
The most visible image problem on Shopify stores isn't resolution. It's product cards of different heights because the photos have different ratios: one square, one portrait, one landscape. Shopify's help says it plainly: use a consistent aspect ratio for all featured images. Pick 1:1 or 4:5 for products and stick to it. Themes can crop to a fixed ratio in the card settings, but a crop that was never planned cuts off handles, labels and feet.
For banners, think about the phone first. A 16:9 banner on a phone is either a thin strip or a zoomed-in crop of the middle. If your theme offers a separate mobile image, use it. If not, keep the subject in the centre third of the banner, where every crop keeps it.
Which format to upload
- JPG for photos. At quality 80 to 85 a 2048 × 2048 product shot is 300 to 600 KB and looks identical to the 2 MB version.
- PNG only when you need transparency: logos, badges, product cut-outs on a coloured background. A PNG photo is 4 to 8 times bigger than the same JPG for no visible gain.
- WebP is fine to upload, but it gains you nothing: Shopify converts to WebP anyway.
- HEIC (iPhone's default) is accepted, but convert it first. Fewer tools can edit it, and some bulk importers reject it.
- Animated GIFs are the heaviest thing you can put on a page. A 5-second GIF is often 5 to 10 MB. Upload the clip as a video instead; it's a tenth of the size.
- SVG for logos and icons. Sharp at every size, usually under 20 KB.
Check and resize an image
Drop a file in. It reads the dimensions, megapixels, file size and ratio, compares them with Shopify's limits and the sizes above, estimates what shoppers would download, and can give you a resized copy. Everything runs in your browser; the file isn't uploaded anywhere.
The resized copy is saved as JPG at quality 85, or as PNG if the original is a PNG (to keep transparency). Metadata such as camera details and location is left out.
How to resize without an app
- One or two images: the checker above, or Preview on a Mac (Tools, Adjust Size) and Photos on Windows (Resize image). Set the longest side to 2048 for products or 2560 for banners.
- A folder of images: Squoosh handles one at a time with excellent JPG output. For dozens, Preview on a Mac can resize a whole selection at once (select all, then Tools, Adjust Size).
- Hundreds of products already in the store: the Files page won't resize anything, and re-uploading by hand isn't realistic. This is a script job: pull every product image, resize the ones over the limit, and replace them in place with backups. It's an afternoon of work on most catalogues. Ask me if you'd like it done.
Questions I get asked
Does Shopify compress images automatically?
For shoppers, yes. The CDN resizes to the width the theme requests and converts to WebP for browsers that accept it, which is why a 2 MB PNG upload arrives as a 110 KB WebP. Your original stays untouched in Files. What Shopify doesn't do is fix dimensions or ratios, and it can't add detail to a small image.
What is the best size for Shopify product images?
2048 × 2048 px, square, saved as JPG. That's Shopify's recommendation and it covers the largest width any current theme requests for a product gallery (1946 px in Dawn).
What size should a Shopify banner be?
2560 × 1440 px (16:9) for the desktop banner, and 3840 × 2160 if you want it sharp at full width on 4K and retina screens. If the theme has a mobile image slot, add a 1080 × 1350 portrait version so phones don't get a thin strip.
Why is my banner cropped on mobile?
A 16:9 banner doesn't fit a portrait phone screen, so the theme crops to the centre or shows a short strip. Keep the subject in the middle third, use a mobile image slot if your theme has one, or choose a taller banner ratio in the section settings.
How do I fix "image exceeds 20 megapixels"?
Resize it. The limit is 25 MP for most uploads today, but the old 20 MP message still appears in places. Anything at 4000 px or less on the longest side passes everywhere, and product photos only need 2048.
Do I need an image optimizer app?
Not for speed. The CDN already converts and resizes for shoppers. The apps earn their keep for bulk tasks: resizing hundreds of existing images, writing alt text, renaming files. If you only have a few dozen products, the checker above and an afternoon will do.
How this was measured
Limits: Shopify Help Center pages for product media types and file uploads, read 30 November 2026.
Theme widths: the widths lists in the public source of Shopify's Dawn and Horizon themes (image banner, slideshow, product thumbnail, image with text, image and slide blocks), plus the width parameters on a live Horizon store's homepage.
CDN output: four product images from a client's store, requested from the Shopify CDN with and without a WebP Accept header, at full size and at ?width=720, 30 November 2026. The browser estimate in the checker is a WebP encode at quality 80 in your own browser and will differ a little from Shopify's.
