Shopify image size and file format guide
Which dimensions should you upload, which format should you use, and what does Shopify do to your files after you do?
The short version
- Upload photos as JPEG and graphics with transparency or sharp text as PNG.
- Upload at a size comfortably larger than your largest display slot, not at camera-original size.
- Use a consistent aspect ratio across a collection so the layout does not jump.
- Let Shopify's CDN handle delivery sizes and modern formats; you do not need to upload multiple versions.
Choosing dimensions
There is no single correct number. Shopify publishes limits on file size and pixel dimensions for uploads, and it has been common to suggest square product images around 2048 by 2048 pixels, but check Shopify's current documentation and your own theme before settling. The real question is the largest size your theme ever displays that image, including any zoom or lightbox feature.
A useful rule of thumb: take the largest displayed width in CSS pixels and allow roughly double for high-density screens. If the biggest slot is 1000 CSS pixels wide, an upload around 2000 pixels on the long edge covers sharp rendering on most devices. Going far beyond your largest zoom size adds weight without adding anything shoppers can see.
Keep aspect ratios consistent within a collection. When some images are square and others are tall, themes either crop them or reserve differing heights, which can cause layout shift. That affects the Cumulative Layout Shift metric covered in our Core Web Vitals guide.
JPEG, PNG and WebP in practice
JPEG is the default choice for photographs: small files, no transparency. PNG is lossless and supports transparency, which suits logos, icons and graphics, but photographs saved as PNG tend to be very large. WebP and similar newer formats are typically smaller than JPEG at similar visual quality and are widely supported by current browsers.
You rarely need to upload WebP yourself on Shopify, because of what the CDN does next.
What Shopify's CDN does for you
Images in a Shopify store are served from Shopify's content delivery network. In general, the CDN can deliver resized versions of an image on request (themes ask for the width they need, usually through responsive srcset markup), and it can serve a more efficient format such as WebP to browsers that support it, while keeping the file you uploaded as the stored original. Exactly which formats and transformations are applied depends on how the theme requests the image, so treat this as how things generally work and confirm against Shopify's documentation.
The practical consequence: the file you upload is the source for everything else. A bloated source is not fixed by the CDN resizing it for display, because the original is still what gets stored, downloaded when you export, and used by zoom features in some themes. Starting with a sensible, well-compressed source is still worthwhile.
Why a JPEG stays a JPEG when a file is replaced
When an image in your store is optimised by replacing the file, the replacement keeps the same format as the original. That is a deliberate and safe choice, not a limitation to work around. Converting a JPEG to PNG or WebP at the file level would change the file type behind a URL that your products, collections, blog posts and external links may already reference. Keeping the format means references keep working, transparency in PNGs is never lost, and nothing downstream has to guess.
It is also why the CDN is the right place for format negotiation: it can serve WebP to a browser that supports it without you changing what you stored. Your job is to store the right kind of file for the content (JPEG for photos, PNG where you need transparency or crisp graphics) and keep it a sensible size.
A practical size and format checklist
- Photos: export as JPEG, 2000 pixels or so on the long edge unless your theme needs more.
- Logos, icons and text graphics: PNG, at the size needed plus headroom.
- Do not upload a PNG when a JPEG would do and there is no transparency.
- Do not upload camera originals; resize first.
- Never enlarge a small image to meet a target size.
- Keep aspect ratios consistent within a collection.
- Write descriptive file names before upload; they are cheap and help organisation.
Checking what your store is actually serving
Open a product page, open your browser's developer tools, go to the Network tab, filter by images and reload. You can see each image's type, transferred size and, by hovering, its pixel dimensions. Compare the pixel width of the file delivered with the width it is displayed at. A big mismatch suggests oversized sources or a theme that is not requesting appropriately sized variants. Our guide to finding oversized or duplicate images covers the next step.
Where ImgTulip fits
ImgTulip works with this approach rather than against it. It compresses and resizes the JPEG, PNG and WebP files already in your store, never upscales, keeps formats as they are, and backs up each original so you can restore it with one click. Its audits flag oversized and low-resolution images so you can decide what to change. See the ImgTulip page for details and the free plan.