Compress to KB topic guide
Compress images for WhatsApp: hit the 5 MB image message cap
Direct answer
WhatsApp treats a photo sent as an image differently from a file sent as a document. Meta’s WhatsApp Cloud API Image messages docs list JPEG and PNG image messages at a maximum of 5 MB each (8-bit RGB or RGBA). If you need the bytes to travel as a normal image message — not a download-only document — compress to a deliberate budget under that 5 MB ceiling first.
What this workflow handles
Use the published image-message limit as the hard budget, then leave headroom for mobile networks. Meta’s Image messages page (developers.facebook.com/docs/whatsapp/cloud-api/messages/image-messages/) and the Cloud API Media reference both state JPEG (.jpeg, image/jpeg) and PNG (.png, image/png) max size 5 MB, with images required to be 8-bit RGB or RGBA. The same Media reference separately notes that media message downloads on Cloud API support up to 100 MB before error 131052 — that is a different constraint from the 5 MB image-message send table; do not confuse the two. WhatsApp Help Center’s “How to send media, contacts, or location” article documents a 2 GB maximum for documents on WhatsApp Web/Desktop when you attach a file as a document instead of as Photos & Videos — useful when you must preserve an original that cannot fit under 5 MB as an image. Prefer JPEG for continuous-tone photographs when sending as an image; keep PNG for sharp graphics or required transparency. Enter a target safely under 5120 KB (for example 4000–4800 KB) in Compress to KB, quality-sweep at the original dimensions first, and downscale only if the quality floor still misses the budget. Consumer chat apps may also recompress media after send; the Cloud API 5 MB table is still the clearest published image-message ceiling to aim under before you hit send.
Use Compress to KB with a target under 5120 KB (for example 4000–4800 KB) before you send a WhatsApp image message. For email attachment caps instead, see Compress image for email.
How to use it
- Confirm you need an image message (inline photo) rather than a Document file transfer; read Meta’s Image messages 5 MB JPEG/PNG table and WhatsApp Help’s Document option (up to 2 GB) if you need the original.
- Convert photographs to JPEG when you are sending as an image; keep PNG only for graphics or required transparency (Cloud API image table lists JPEG and PNG).
- Enter a Compress to KB target under 5120 KB (commonly 4000–4800 KB), quality-sweep at the original dimensions first, and allow stepped downscale only if the quality floor still exceeds the budget.
- Confirm the output is JPEG or PNG, at or under 5 MB, then send as Photos & Videos / image — not as Document — when you want a normal image message.
- If the client still rejects or heavily recompresses the file, lower the KB target further, or switch that file to Document per WhatsApp Help when fidelity matters more than inline preview.
Frequently asked questions
What is WhatsApp’s image file size limit?
For WhatsApp Business Cloud API image messages, Meta’s documentation lists JPEG and PNG at a maximum of 5 MB each. Images must be 8-bit RGB or RGBA. Treat 5 MB (5120 KB) as the hard ceiling for files you intend to send as image messages, and prefer a slightly lower Compress to KB target so encoding and mobile upload headroom remain.
Is the 5 MB limit the same as the 100 MB media limit?
No. The Image messages / Supported media types tables cap JPEG and PNG image payloads at 5 MB. The Cloud API Media reference separately describes a 100 MB maximum for media message downloads, with webhook error 131052 when a customer sends a larger file. Use 5 MB when preparing an image message; do not plan image sends against the 100 MB download figure.
When should I send a photo as a Document instead of compressing?
When you must keep original fidelity and the file will not fit under the 5 MB image-message table after a reasonable quality sweep. WhatsApp Help documents sending files as Document on WhatsApp Web/Desktop with a maximum allowed document size of 2 GB. A document arrives as a file transfer, not a normal inline image preview workflow — compress when you need a regular image message.
What KB target should I use in Compress to KB?
Start from 5120 KB (5 MB) and leave headroom: 4000–4800 KB is a practical per-image target for a single photo image message. If you are bundling several images in a short sequence, keep each under that same ceiling independently — the Cloud API table is per image message, not a shared email-style message total.
JPEG or PNG for WhatsApp image messages?
Meta’s image-message table accepts JPEG and PNG only for those rows. Prefer JPEG for photographs; use PNG when you need sharp edges or transparency. WebP is not listed in that JPEG/PNG image table — if a path only accepts those MIME types, convert before you send.
Will WhatsApp still recompress my photo after I upload?
Consumer WhatsApp clients often recompress media for delivery. Compressing under the published 5 MB image-message ceiling still matters so the upload is accepted as an image and so you control the starting file. For archival originals, use Document (Help Center 2 GB document path) instead of chasing lossless image-message delivery.
How is this different from the email and general KB guides?
compress-image-for-email covers Gmail/Outlook.com 25 MB message attachment caps. compress-image-for-github covers GitHub Docs 10 MB image and GIF attachments on issues and pull requests. compress-image-for-discord covers Discord Support 20 MB free per-file chat uploads (Nitro tiers higher). compress-image-for-telegram covers Telegram Bot API sendPhoto 10 MB inline photos. compress-image-for-linkedin covers LinkedIn Help 5 MB share-box photo uploads — same 5 MB number, different product (consumer post vs Meta Cloud API image messages). compress-image-for-instagram covers Instagram Graph API 8 MB JPEG feed, Story, and Reels cover uploads. compress-image-for-twitter covers X API 5 MB tweet_image/dm_image still images (animated GIF 15 MB separately). compress-image-for-notion covers Notion Help 5 MB inline PNG/JPG display. compress-image-for-wordpress covers WordPress Media Library upload limits and the 2560 px big-image threshold. compress-image-for-facebook covers Meta Help Center Facebook photo upload size, format, and PNG guidance. compress-image-for-pinterest covers Pinterest Help web Image Pin uploads (20 MB; BMP, JPEG, PNG, TIFF, WEBP). compress-image-for-youtube covers YouTube Help custom thumbnails (50 MB desktop; 50 MB mobile video, 10 MB mobile podcasts; JPG or PNG). compress-image-for-threads covers Threads API 8 MB JPEG/PNG image posts (width 320–1440, aspect up to 10:1). compress-image-for-bluesky covers Bluesky post embeds at 2,000,000 bytes per image blob. compress-image-to-kb covers forms and marketplaces (GOV.UK, LinkedIn profile, Shopify). This page isolates WhatsApp image-message rules from Meta’s Cloud API docs and the Help Center document path. Same Compress to KB tool; different destination budget.
Sources
- Meta — WhatsApp Cloud API Image messages: https://developers.facebook.com/docs/whatsapp/cloud-api/messages/image-messages/ — JPEG and PNG image messages max 5 MB; images must be 8-bit RGB or RGBA.
- Meta — WhatsApp Cloud API Media reference: https://developers.facebook.com/docs/whatsapp/cloud-api/reference/media/ — Supported media types repeat JPEG/PNG 5 MB for images; media message download constraint up to 100 MB (error 131052) is separate from the image send table.
- WhatsApp Help — How to send media, contacts, or location: https://faq.whatsapp.com/453914586839706 — Document attachment path on WhatsApp Web/Desktop; maximum allowed document size 2 GB when sending as a document rather than Photos & Videos.
- 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 WhatsApp image-message size. Related guides cover general KB budgets, email, LinkedIn share photos, Instagram Graph JPEG caps, Twitter / X still-image caps, Notion inline image caps, WordPress Media Library caps, Facebook Help photo upload caps, Pinterest web Image Pin caps, Discord, Telegram, and GitHub attachment caps, and format choice.
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 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 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.
-
JPEG vs PNG vs WebP
Pick a format WhatsApp image messages accept.
-
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 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 Shopify: hit the 20 MB and megapixel upload limits
- 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