Compress to KB topic guide

Compress images for Shopify: hit the 20 MB and megapixel upload limits

Direct answer

When you add product or collection images in Shopify admin, or upload images through Shopify’s Files tool, Shopify publishes hard file-size and resolution rules — not optional display recommendations alone. Shopify Help — Product media types states product and collection images can be any size up to 5000 × 5000 pixels or 25 megapixels, and that file size must be smaller than 20 MB to be added to Shopify. If your export exceeds those caps, compress and resize before you upload. This page is byte and megapixel prep for admin uploads — not the square canvas and recommended-shape workflow on shopify-product-image-resizer, and not TikTok, Pinterest, or Discord paths that also mention 20 MB on paper, and not compress-image-for-etsy (Etsy Help 1 MB listing upload-reliability and format guidance).

Try the Compress to KB

What this workflow handles

Treat Shopify’s published 20 MB ceiling as your byte budget for product, collection, and Files image uploads in admin. Shopify Help — Product media types: file size must be smaller than 20 MB; product and collection images up to 5000 × 5000 px or 25 megapixels; best file types for most product images PNG then JPEG, with TIFF, BMP, GIF, SVG, HEIC, WebP (and animated GIF/WebP) also listed; square 2048 × 2048 px usually displays best as a recommendation, not a hard cap. Shopify Help — Uploading and managing files (image requirements table): file size maximum 20 MB; resolution maximum 25 MP; aspect ratio between 100:1 and 1:100; formats JPEG, PNG, WEBP, HEIC, GIF. That Help article’s tip is explicit: if the error says the file is too large or needs to be 20 MB or less but the file is already under 20 MB, the issue is megapixels not megabytes — reduce pixel dimensions (for example 5000×5000 = 25 MP down to 4000×4000 = 16 MP). Shopify.dev — Manage media for products and collections documents MediaImage: PNG, GIF, JPEG, WEBP, HEIC; max 20 MB; max 4472 × 4472 px (20 MP); recommended 2048 × 2048 px; aspect ratio 100:1 to 1:100. Do not paper over the mismatch: Help Center product media cites 25 MP / 5000×5000; the Admin Files table cites 25 MP; Shopify.dev MediaImage cites 20 MP / 4472×4472. Trust the upload path you use and the error Shopify shows. Set Compress to KB comfortably under 20480 KB (20 × 1024); the limit is a ceiling, not a target. Quality-sweep at current dimensions first; downscale when megapixels or pixel edges exceed the row that applies to your path. compress-image-for-pinterest covers Pinterest Help web Image Pins at 20 MB with a different format list — same megabyte headline, Pin create not Shopify admin. compress-image-for-discord covers Discord Support 20 MB free chat attachments. compress-image-for-tiktok covers TikTok Content Posting API WebP/JPEG photo transfer (20 MB, max 1080p). shopify-product-image-resizer covers recommended square product canvas and shape presets — use this page when the blocker is bytes or megapixels before upload. Product video, 3D, and external video limits in Help are out of scope here. web.dev’s compress-images guide recommends experimenting with quality rather than assuming one universal setting. Beita’s Compress to KB uses a temporary analysis upload with no long-term storage; see the Privacy Policy for retention details.

Use Compress to KB with a target comfortably under 20480 KB (Shopify’s 20 MB cap is a ceiling, not a target) and downscale when megapixel rows block an otherwise small file. For recommended square product canvas sizing, see Shopify Product Image Resizer. For TikTok API WebP/JPEG photo transfer at 20 MB, see Compress image for TikTok.

How to use it

  1. Open Shopify Help — Product media types and Uploading and managing files; note 20 MB file size maximum, 25 MP resolution rows, and accepted formats for your upload path.
  2. Check pixel dimensions and megapixels — if the file is under 20 MB but upload fails, reduce dimensions per Help (megapixels, not megabytes).
  3. Pick PNG or JPEG for most product photos per Help; use WEBP or HEIC only when your admin path accepts them.
  4. Enter a Compress to KB target comfortably under 20480 KB, quality-sweep at current dimensions first, and downscale if megapixels or the quality floor still exceed Shopify’s published rows.
  5. Upload in Shopify admin; if validation fails, re-read the error against Help vs shopify.dev MediaImage rows for your path and adjust bytes or pixels accordingly.

Frequently asked questions

What file size limit does Shopify publish for product and collection images?

Shopify Help — Product media types states file size must be smaller than 20 MB to be added to Shopify. The Uploading and managing files image requirements table lists file size maximum 20 MB. Treat 20480 KB as the ceiling — set Compress to KB comfortably under that limit, not at it.

What resolution or megapixel limits apply to Shopify product images?

Shopify Help — Product media types allows product and collection images any size up to 5000 × 5000 pixels or 25 megapixels. The Files image requirements table lists resolution maximum 25 MP. Shopify.dev MediaImage documents max 4472 × 4472 px (20 MP) for app API context — a lower megapixel row than Help product media. If admin rejects an under-20-MB file, Help says to reduce pixel dimensions because megapixels, not megabytes, triggered the error.

Why does Shopify reject my image when the file is already under 20 MB?

Shopify Help — Uploading and managing files explains that when the error mentions 20 MB or less but your file is already under 20 MB, the problem is megapixels. Example from Help: 5000×5000 equals 25 MP; resizing to 4000×4000 equals 16 MP can fix the upload. Compress for bytes and downscale for megapixels when either row fails.

Which image formats does Shopify accept for product media and Files uploads?

Product media types lists PNG and JPEG as best for most product images, plus TIFF, BMP, GIF, SVG, HEIC, WebP, and animated GIF/WebP. The Files image table lists JPEG, PNG, WEBP, HEIC, and GIF. Shopify.dev MediaImage lists PNG, GIF, JPEG, WEBP, HEIC. Match the format list for the path you upload through.

How is this page different from Shopify Product Image Resizer?

shopify-product-image-resizer focuses on recommended product image shapes and square canvas sizing (Help notes 2048 × 2048 px square usually displays best). This page focuses on file size and megapixel prep before admin upload when Shopify’s 20 MB or resolution rows block the file — use both when you need correct dimensions and a byte budget that passes validation.

How is Shopify’s 20 MB cap different from Pinterest, Discord, Mastodon, or TikTok limits?

Different products. Pinterest Help web Image Pins allow up to 20 MB with BMP, JPEG, PNG, TIFF, WEBP — see compress-image-for-pinterest. Discord Support documents 20 MB per free chat attachment — see compress-image-for-discord. Mastodon user docs describe 16 MB post attachment images with 8.3 MP downscaling — see compress-image-for-mastodon. Bluesky post embeds cap each blob at 2 MB — see compress-image-for-bluesky. TikTok Content Posting API Image restrictions allow WebP and JPEG only, 1080p max, 20 MB per image — see compress-image-for-tiktok. Shopify admin product, collection, and Files uploads use Help’s 20 MB plus 25 MP (or Shopify.dev 20 MP for MediaImage) rules — this page. compress-image-for-ebay covers eBay Help listing photo uploads at 12 MB each with separate 500×500 minimum and ~1600×1600 recommendation — marketplace listing prep, not Shopify admin. compress-image-for-etsy covers Etsy Help listing photos where images over 1 MB may not finish uploading, with ≥2000 px and first-photo ≥635 px guidance — not Shopify admin megapixel rows. compress-image-for-webflow covers Webflow Help 4 MB Assets panel and CMS image fields — site-builder prep, not Shopify admin. compress-image-for-wix covers Wix Media Manager 50 MB images and Site Performance 25 MB upload guidance — not Shopify. Same megabyte number on paper for some destinations; different format lists, megapixel rows, and upload surfaces.

What KB target should I use in Compress to KB?

Start from 20 MB = 20 × 1024 = 20480 KB as the byte ceiling. Enter a budget comfortably under 20480 KB. If upload still fails below 20 MB, follow Help and reduce megapixels (for example toward 16 MP or the 4472×4472 row if your API path cites Shopify.dev). Quality-sweep first; downscale only when bytes or megapixels still exceed the applicable row.

Does this page cover Shopify product video or 3D upload limits?

No. Help documents separate limits for video and 3D product media. This guide focuses on still product, collection, and Files image uploads where Help and Shopify.dev publish byte and megapixel rules for images.

Sources

Explore the compress to kb topic cluster

This guide covers Shopify admin product, collection, and Files image byte and megapixel limits before upload. Related guides cover general KB budgets, email, WhatsApp, LinkedIn share photos, Instagram Graph JPEG caps, Twitter / X still-image caps, Threads API image posts, Bluesky post embeds, TikTok Content Posting API photo transfer, Notion inline image caps, WordPress Media Library caps, Facebook Help photo uploads, Pinterest web Image Pins, YouTube custom thumbnails, Discord chat attachments, Shopify recommended product shapes (shopify-product-image-resizer), and the Compress to KB tool.

Related guides

All compress to kb guides