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).
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
- 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.
- Check pixel dimensions and megapixels — if the file is under 20 MB but upload fails, reduce dimensions per Help (megapixels, not megabytes).
- Pick PNG or JPEG for most product photos per Help; use WEBP or HEIC only when your admin path accepts them.
- 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.
- 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
- Shopify Help — Product media types: https://help.shopify.com/en/manual/products/product-media/product-media-types — Product/collection images up to 5000×5000 or 25 MP; file size under 20 MB; format list; 2048×2048 square display recommendation.
- Shopify Help — Uploading and managing files (image requirements): https://help.shopify.com/en/manual/shopify-admin/productivity-tools/file-uploads — Image table: 20 MB max, 25 MP max, aspect 100:1–1:100, formats JPEG/PNG/WEBP/HEIC/GIF; megapixel vs megabyte troubleshooting tip.
- Shopify.dev — Manage media for products and collections: https://shopify.dev/docs/apps/build/product-merchandising/products-and-collections/manage-media — MediaImage: max 20 MB, max 4472×4472 (20 MP), recommended 2048×2048, formats PNG/GIF/JPEG/WEBP/HEIC.
- web.dev — Compress images: https://web.dev/articles/compress-images — Experiment with quality settings; there is no one universal compression setting.
- Pillow — Image.save (JPEG quality, optimize): https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html#jpeg — JPEG quality and optimize parameters used in the quality sweep behind Compress to KB.
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
-
Compress image to KB
General hard byte-budget workflow for forms and marketplaces.
-
Compress images for email
Gmail and Outlook.com 25 MB attachment caps.
-
Compress images for WhatsApp
Meta Cloud API 5 MB JPEG/PNG image-message cap.
-
Compress images for GitHub
GitHub Docs 10 MB cap for images and GIFs on issues and pull requests.
-
Compress images for Discord
Discord Support 20 MB free per-file upload cap.
-
Compress images for Telegram bots
Telegram Bot API sendPhoto 10 MB cap for inline bot photos.
-
Compress images for LinkedIn posts
LinkedIn Help 5 MB cap for share-box photo uploads.
-
Compress images for Instagram
Instagram Graph API 8 MB JPEG cap for feed, Story, and Reels cover.
-
Compress images for Twitter / X
X API 5 MB still-image cap for Posts and DMs (animated GIF 15 MB).
-
Compress images for Notion
Notion Help 5 MB cap for inline PNG/JPG display (all plans).
-
Compress images for WordPress
WordPress Media Library 2560 px big-image threshold and PHP upload_max_filesize limits.
-
Compress images for Wix
Wix Media Manager 50 MB images and 15 MB GIFs; Site Performance 25 MB upload note; SVG 250 KB; sRGB.
-
Compress images for Webflow
Webflow Help 4 MB Assets panel and CMS image fields; built-in Compress OG caveat; background images without responsive variants.
-
Compress images for Squarespace
Squarespace Help 20 MB upload cap, 500 KB performance recommendation, 120 MP and 2500 px width guidance; auto WebP display on site.
-
Compress images for Ghost
Ghost Help Ghost(Pro) per-file upload limits by plan (5 MB–1 GB); default self-hosted nginx 50 MB cap.
-
Compress images for beehiiv
beehiiv Help 5 MB post/media-library uploads, 1200×630 thumbnails; community posts up to 10 MB.
-
Compress images for Facebook
Meta Help Center 15 MB photo uploads; keep PNG under 1 MB to avoid pixelation.
-
Compress images for Pinterest
Pinterest Help 20 MB web Image Pin max; BMP, JPEG, PNG, TIFF, WEBP.
-
Compress images for YouTube
YouTube Help custom thumbnails: 50 MB on desktop; 50 MB mobile video, 10 MB mobile podcasts; JPG or PNG.
-
Compress images for Threads
Threads API image posts: 8 MB max JPEG or PNG; width 320–1440 px, aspect ratio up to 10:1.
-
Compress images for Bluesky
Bluesky post embeds: 2 MB max per image blob (image/*); up to 4 images; alt text required.
-
Compress images for TikTok
TikTok Content Posting API: 20 MB max WebP/JPEG per image; 1080p picture-size ceiling.
-
Compress images for Mastodon
Mastodon post attachments: 16 MB max still images; 8.3 MP downscale; up to 4 images per post.
-
Compress images for Slack
Slack Help 1 GB message files; inline image preview under 25,000 px longest side and 45 MP total.
-
Compress images for eBay listings
eBay Help 12 MB per listing photo; 500×500 minimum and ~1600×1600 recommendation.
-
Compress images for Etsy listings
Etsy Help 1 MB upload reliability tip; ≥2000 px recommendation; first photo ≥635 px.
-
Compress images for Gumroad
Gumroad Help 50 MB image cover cap, 1280×720 recommendation, 4096 px auto-resize; thumbnails ≥600×600.
-
Shopify Product Image Resizer
Recommended square product canvas and shape presets — not byte or megapixel caps.
-
Compress to KB tool
Set a KB target and download a file under budget.
All compress to kb guides
- Compress image to KB: hit a hard file-size limit
- Compress images for email: hit Gmail and Outlook attachment caps
- Compress images for WhatsApp: hit the 5 MB image message cap
- Compress images for GitHub: hit the 10 MB image and GIF cap
- Compress images for Discord: hit the 20 MB free upload cap
- Compress images for Telegram bots: hit the sendPhoto 10 MB cap
- Compress images for LinkedIn posts: hit the 5 MB photo share limit
- Compress images for Instagram: hit the 8 MB JPEG upload limit
- Compress images for Twitter / X: hit the 5 MB image upload limit
- Compress images for Notion: stay under the 5 MB inline limit
- Compress images for WordPress: Media Library size and big-image rules
- Compress images for Facebook: file size and format before upload
- Compress images for Pinterest: hit the 20 MB web Image Pin cap
- Compress images for YouTube: custom thumbnail file-size limits
- Compress images for Threads: hit the 8 MB image post limit
- Compress images for Bluesky: hit the 2 MB post embed limit
- Compress images for TikTok: hit the 20 MB photo upload limit
- Compress images for Mastodon: hit the 16 MB post attachment limit
- Compress images for Slack: byte size and inline preview limits
- Compress images for eBay: hit the 12 MB listing photo limit
- Compress images for Etsy: stay under the 1 MB upload reliability tip
- Compress images for Medium: hit the 25 MB story-editor limit
- Compress images for Google Business Profile: fit 10 KB–5 MB photo rules
- Compress images for Wix: Media Manager limits and practical upload ceilings
- Compress images for Webflow: 4 MB Assets limits and upload prep
- Compress images for Squarespace: 20 MB cap and 500 KB performance recommendation
- Compress images for Ghost: Ghost(Pro) plan caps (5 MB–1 GB) and self-hosted 50 MB nginx default
- Compress images for Gumroad: 50 MB cover limit and thumbnail prep
- Compress images for beehiiv: 5 MB newsletter uploads, 1200×630 thumbnails, and 10 MB community posts
- Compress images for Mailchimp: 1 MB Content Studio uploads, 1024 KB targets, and legacy vs new builder widths
- Compress images for Kit: smaller-than-25 MB gallery, form/LP sizes, and email look-best width
- Compress images for Klaviyo: 10 MB email ceiling, 1024 KB load targets, form 5120 KB, and full-width dimensions
- Compress images for MailerLite: 10 MB File manager, 1024 KB campaign prep, GIF 4 MB, and width rules
- Compress images for Brevo: 5 MB Content library, layout widths, and HTML/attachment contrast
- Compress images for Substack: official sizes, PNG email banners, and dimension-first prep
- Compress images for Google Ads: 5120 KB JPG/PNG assets, aspect ratios, and surface-specific rows